النتائج 1 إلى 4 من 4

الموضوع: ما هو الخطأ هنا ( syntax error )

  1. #1
    عضو نشيط
    تاريخ التسجيل
    Jan 2008
    المشاركات
    118

    ما هو الخطأ هنا ( syntax error )



    شباب ،، منذ ساعات وأنا أنظر إلى هذه الكود ، ولا أدري ما العلة ،، ( لعل العلة في عيني لعدم ارتداء النظارات ^_^ ).

    الخطأ الظاهر في ملف ( comments.php ) في السطر الـ53
    نص الخطأ :
    كود:
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in C:\xampp\htdocs\word\wp-content\themes\3thoob\comments.php on line 57
    كود PHP:
    <?php
    /**
     * @package WordPress
     * 
     */
    ?>

    <div id="commentreplycontainer">
    <?php if ( post_password_required() ) : ?>
        <div class="must-log-in"><?php _e'هذه التدوينة محمية ، أدخل كلمة المرور لمشاهدة هذه التدوينة' ); ?></div>
        </div><!--END commentreplycontainer -->
    <?php
            
    /* Stop the rest of comments.php from being processed,
             * but don't kill the script entirely -- we still have
             * to fully load the template.
             */
            
    return;
        endif;
    ?>

    <?php
        
    // You can start editing here -- including this comment!
    ?>
    <?php 
    if ( have_comments() ) : ?>
        <div id="commentscontainertitle">
        <h2>التعليقات على هذه التدوينة :  <?php comments_number'0''1''%' ); ?></h2>
        </div>

                <ul class="replycomment">
                    <?php wp_list_comments( array( 'callback' => 'athoob_comment' ) ); ?>
                </ul>
        
            
        <?php else : // this is displayed if there are no comments so far ?>
        
            <?php if ( comments_open() ) : // If comments are open, but there are no comments ?>
            
            <?php else : // or, if we don't have comments:
            
                /* If there are no comments and comments are closed,
                 * let's leave a little note, shall we?
                 * But only on posts! We don't want the note on pages.
                 */
                
    if ( ! comments_open() && ! is_page() ) :
                
    ?>
                <p class="must-log-in"><?php _e'التعليقات مغلقة' ); ?></p>
                <?php endif; // end ! comments_open() && ! is_page() ?>
            <?php endif; ?>
            
        <?php endif; ?>
    <?php comment_form
    (
    array( 
    'fields' => apply_filters'comment_form_default_fields'
    array(
        
    'author' => '<div class="namespace">'.
                    
    '<input id="" name="namespace" type="text" value="' .
                    
    esc_attr$commenter['comment_author'] ) '"  />' .
                    
    '<div class="alertcomment">حقل ضروري</div>'.
                    
    '</div>',
        
    'email'  => '<div class="email">'.
                    
    '<input id="email" name="email" type="text" value="' esc_attr(  $commenter['comment_author_email'] ) . '"  />' .
                    
    '<div class="alertcomment">حقل ضروري</div>'.
                    
    '</div>',
        
    'url'    => '<div class="commentorwebsite">' .
                    
    '<input id="url" name="commentorwebsite" type="text" value="' esc_attr$commenter['comment_author_url'] ) . '"  />' .
                    
    '</div>',
        
    'comment_field' => '<div class="commentarea">'.
                    
    '<textarea name="commentarea" id="commentarea"></textarea> ' .
                    
    '</div>'),
                    
        
    'must_log_in' => '<div class="must-log-in">' .  sprintf__'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_urlapply_filters'the_permalink'get_permalink$post_id ) ) ) ) . '</div>',
        
    'logged_in_as' => '<div class="logged-in-as">' sprintf__'Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Log out?</a></div>' ), admin_url'profile.php' ), $user_identitywp_logout_urlapply_filters'the_permalink'get_permalink$post_id ) ) ) ),
        
    'comment_notes_before' => '<div id="commentparttitle">
                                                <h2>اكتب تعليقك</h2>
                                                </div><!--END commentparttitle-->'
    ,
        
    'comment_notes_after' => ' ',
        
    'id_form' => 'commentform',
        
    'id_submit' => 'submit',
        
    'title_reply' => 'الرد على التعليق',
        
    'title_reply_to' =>  'رد على هذا التعليق',
        
    'cancel_reply_link' =>  'إلغاء الرد',
        
    'label_submit' => 'إضافة التعليق',
    ); 
    ?>

    </div><!--END commentreplycontainer->
    احترت مع هذا الخطأ منذ ساعات ... هل من مجيب







  2. #2
    عضو نشيط
    تاريخ التسجيل
    Jun 2008
    المشاركات
    180


    الخطا اعتقد انك نسيت نقطة فالسطر 57
    اللي هي بعد دالة esc_attr
    كود PHP:
    esc_attr$commenter['comment_author'] ) .'"  />' 







  3. #3
    عضو نشيط
    تاريخ التسجيل
    Jan 2008
    المشاركات
    118


    ظهر خطأ آخر بعد التعديل في السطر 57 ..
    نص الخطأ :
    كود:
    Parse error: syntax error, unexpected T_DOUBLE_ARROW in C:\xampp\htdocs\word\wp-content\themes\3thoob\comments.php on line 71







  4. #4
    عضو نشيط
    تاريخ التسجيل
    Jan 2008
    المشاركات
    118


    تم حل الخطأ ،،،
    الخطأ كان في إغلاق أقواس المصفوفات ... لم تكن كلها مغلقة ..×__×



    وشكرا على المساعدة ..










ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | دليل الكويت العقاري | مقروء | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض