برگزیده های پرشین تولز

آموزش بهینه کردن قالب [رفع ارورهای قالب]

MihanV

مدیر بازنشسته
تاریخ عضویت
29 جولای 2010
نوشته‌ها
11,831
لایک‌ها
30,312
محل سکونت
کرج

از خط 282 ایراد گرفته
توی بخش پر بازدیدترین مطالب بعد هر li یک
< اضافه درج میشه که باید حذف بشه
 

8song

Registered User
تاریخ عضویت
24 ژوئن 2013
نوشته‌ها
1,310
لایک‌ها
1,302
سن
26
محل سکونت
تبریز
از این اروز سر در نمیارم :
ارور:
کد:
Line 63, Column 242: cannot generate system identifier for general entity "src"

…ntent/themes/toopmedia-005/timthumb/?&src=http://www.8song.ir/wp-content/uploa…

An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed

ارور دوم :
کد:
…ntent/themes/toopmedia-005/timthumb/?&src=http://www.8song.ir/wp-content/uploa…

This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details
کد اصلی :
کد:
<a target="_blank"  title="<?php the_title(); ?>" href="<?php the_permalink(); ?>" class="dlnob"></a>
<div class="tpicbox"><img title="<?php the_title(); ?>" alt="<?php the_title(); ?>" width="140px" height="140px" src="<?php $timthumb_mp3= get_post_meta($post->ID, "timthumb", $single = true);  if (empty($timthumb_mp3)) { ?><?php bloginfo('template_url'); ?>/timthumb/?&src=<?php echo get_image() ?><?php ; } else {  echo $timthumb_mp3 ; } ?>" class="tpicb"></div>
<div class="botttbox"><span class="bottomtpb" > <?php $timthumb_name= get_post_meta($post->ID, "timthumb_name", $single = true);  if (empty($timthumb_name)) { ?> <?php ; } else {  echo $timthumb_name ; } ?> </span></div>

کد در مرورگر:
کد:
<div class="tpicbox"><img title="دانلود آهنگ جدید مرتضی پاشایی به نام قلبم رو تکراره" alt="دانلود آهنگ جدید مرتضی پاشایی به نام قلبم رو تکراره" width="140px" height="140px" src="http://www.8song.ir/wp-content/themes/toopmedia-005/timthumb/?&src=http://www.8song.ir/wp-content/uploads/Morteza-Pashaei-Ghalbam-Roo-Tekrare.jpg" class="tpicb"></div>
<div class="botttbox"><span class="bottomtpb" > مرتضی پاشایی - قلبم رو تکراره </span></div>
 

MihanV

مدیر بازنشسته
تاریخ عضویت
29 جولای 2010
نوشته‌ها
11,831
لایک‌ها
30,312
محل سکونت
کرج
از این اروز سر در نمیارم :
ارور:
کد:
Line 63, Column 242: cannot generate system identifier for general entity "src"

…ntent/themes/toopmedia-005/timthumb/?&src=http://www.8song.ir/wp-content/uploa…

An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed

ارور دوم :
کد:
…ntent/themes/toopmedia-005/timthumb/?&src=http://www.8song.ir/wp-content/uploa…

This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details
کد اصلی :
کد:
<a target="_blank"  title="<?php the_title(); ?>" href="<?php the_permalink(); ?>" class="dlnob"></a>
<div class="tpicbox"><img title="<?php the_title(); ?>" alt="<?php the_title(); ?>" width="140px" height="140px" src="<?php $timthumb_mp3= get_post_meta($post->ID, "timthumb", $single = true);  if (empty($timthumb_mp3)) { ?><?php bloginfo('template_url'); ?>/timthumb/?&src=<?php echo get_image() ?><?php ; } else {  echo $timthumb_mp3 ; } ?>" class="tpicb"></div>
<div class="botttbox"><span class="bottomtpb" > <?php $timthumb_name= get_post_meta($post->ID, "timthumb_name", $single = true);  if (empty($timthumb_name)) { ?> <?php ; } else {  echo $timthumb_name ; } ?> </span></div>

کد در مرورگر:
کد:
<div class="tpicbox"><img title="دانلود آهنگ جدید مرتضی پاشایی به نام قلبم رو تکراره" alt="دانلود آهنگ جدید مرتضی پاشایی به نام قلبم رو تکراره" width="140px" height="140px" src="http://www.8song.ir/wp-content/themes/toopmedia-005/timthumb/?&src=http://www.8song.ir/wp-content/uploads/Morteza-Pashaei-Ghalbam-Roo-Tekrare.jpg" class="tpicb"></div>
<div class="botttbox"><span class="bottomtpb" > مرتضی پاشایی - قلبم رو تکراره </span></div>


بخاطر وجود & توي url هست
 

leopoldjobs

Registered User
تاریخ عضویت
15 اکتبر 2013
نوشته‌ها
377
لایک‌ها
92
محل سکونت
همسایه امام رضا (ع) م
سلام
اولی میگه اتریبیوت اکشن اضافه کنید
دموی میگه پلیس هلدر نمیخواد
سومی هم میگه الت لازم نیست
بعدیش مال بستن اسپن هست
بعدیش بستن تگ تسکریپت هست
بعدیش هم به نظر یک اشتباه توی استایل داشتید
اگه نتونستید اطلاعات لاگین رو بفرستید من درست کنم واستون
در ضمن اگه با وردپرس هست باید با تم چک هم چک بشه و اصل ارور هاش رفع بشه این تازه ولید کردن HTML هست.
 

MihanV

مدیر بازنشسته
تاریخ عضویت
29 جولای 2010
نوشته‌ها
11,831
لایک‌ها
30,312
محل سکونت
کرج
سلام مجدد
اطلاعات لاگین رو خصوصی کنید

اگر میخواید مشکلات کاربرا رو اینجوری حل کنی در پیام خصوصی این کار رو انجام بدید
اینجا انجمن هست و راهنمایی در تاپیک انجام میشه
 

tak-site.ir

Registered User
تاریخ عضویت
12 دسامبر 2014
نوشته‌ها
184
لایک‌ها
72
سن
28
محل سکونت
یزد
سلام . میخواستم بدونم حداقل هزینه برطرف کردن این مشکلات چقدره ؟ هیچکدوم از ارور های سایت من تو این لیست نبود :(
 

MihanV

مدیر بازنشسته
تاریخ عضویت
29 جولای 2010
نوشته‌ها
11,831
لایک‌ها
30,312
محل سکونت
کرج
هنوز کسی قالب سایتشو ولید میکنه ؟ :)
 
بالا