إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


إضافة رد
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 02-12-2010, 12:30 AM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,613
عدد الـنقاط :3341
 تقييم المستوى : 2139

Today, in working to migrate our applications to work with vB4, I ran across something that looks like a bug but wanted to see if anyone else has run across anything like this.

In my testing I installed a clean copy of vB4.0.1 then did the following:

1. AdminCP >> Styles & Templates >> Add a Template
2. Name the template "bugtest"
3. For the body of bugtest copy the following:

PHP Code:




4. Save the template and you will get the following error:
Quote:
The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected ';' in /Users/mferguson/Sites/vb4clean/includes/adminfunctions_template.php(4667) : eval()'d code on line 5

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

5. Click Go Back and change the body to the following:

PHP Code:




5. Save the template and it will save successfully.

The only difference as the // on the line immediately before the variable definition.

Any insight into this issue, workarounds, etc. would be appreciated. Given that some of our products include javascript functions that are just relative to the body of the template we would prefer to leave the function definitions inline. That said its also not efficient to have to put // before each line contained in a given function.

Thanks

Mark
__DEFINE_LIKE_SHARE__
رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)


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

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 08:10 AM


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML