سوالف اندرويد




العودة   سوالف سوفت > سوالف برمجة المواقع وتطويرها > PHP
التسجيل المدوّنات البحث مشاركات اليوم جعل الأقسام مقروءة

الرد على الموضوع
 
LinkBack أدوات الموضوع
عضو نشيط
#1  
ما هو الخطأ هنا ( 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->
احترت مع هذا الخطأ منذ ساعات ... هل من مجيب






MaJoOoDy is offline   قديم 20-01-2012, 06:44 PM
الرد مع إقتباس
عضو نشيط
#2  

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






doctor9 is offline   قديم 20-01-2012, 07:26 PM
الرد مع إقتباس
عضو نشيط
#3  

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






MaJoOoDy is offline   قديم 20-01-2012, 07:42 PM
الرد مع إقتباس
عضو نشيط
#4  

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



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






MaJoOoDy is offline   قديم 20-01-2012, 08:47 PM
الرد مع إقتباس
الرد على الموضوع



أدوات الموضوع

قوانين المشاركات
لا يمكنك كتابة مواضيع جديدة
لا يمكنك إضافة ردود
لا يمكنك إرسال مرفقات
لا يمكنك تعديل مشاركاتك

كود vB متاح
كود [IMG] متاح
كود HTML غير متاح
Trackbacks are متاح
Pingbacks are متاح
Refbacks are متاح


المواضيع المشابهه
الموضوع كاتب الموضوع القسم الردود آخر مشاركة
Parse error: syntax error, unexpected '<' in /home1/user/public_html/vb/global.php(83 طه فهد الويب والويب 2.0 والـ Semantic Web 26 28-05-2011 01:02 AM
عند الترقية يظهر Parse error: syntax error, unexpected T_STRING in /home/*****/public bishoe الإصلاح والصيانة 14 21-12-2009 05:57 PM
Parse error: syntax error, unexpected T_OBJECT_OPERATOR ما سبب هذي المشكلة؟؟ elkaser PHP 2 20-01-2009 08:57 PM
كيف احل هدا المشكل Parse error: syntax error, unexpected T_STRING in flache-net PHP 4 17-11-2008 08:31 AM
مشكلة : Parse error: syntax error, unexpected عرب تايم الإصلاح والصيانة 1 16-06-2008 11:53 AM


جميع الأوقات بتوقيت غرينتش +3. الوقت الآن هو 10:29 PM.