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

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

MihanV

مدیر بازنشسته
تاریخ عضویت
29 جولای 2010
نوشته‌ها
11,827
لایک‌ها
30,305
محل سکونت
کرج
کد:
there is no attribute "prefix"
این ارور رو چجوری رفع کنیم؟
دنبالش گشتم تو سایت های فارسی یه نفر پرسیده بود و جوابش در حدی نبود که بشه فهمید..لطفا شما توضیح بدین

متن کامل ارور + چند خط بالا و پایین خطی که ارور بهش اشاره میکنه رو بزارید
 

8song

Registered User
تاریخ عضویت
24 ژوئن 2013
نوشته‌ها
1,309
لایک‌ها
1,302
سن
26
محل سکونت
تبریز

فایل های ضمیمه

  • error.PNG
    error.PNG
    54.6 KB · نمایش ها: 12
  • code.PNG
    code.PNG
    37.6 KB · نمایش ها: 11

bz4d1245

Registered User
تاریخ عضویت
28 فوریه 2013
نوشته‌ها
105
لایک‌ها
17
این ارور مربوط به چیه؟؟
Line 83, Column 94: meta element between head and body.
…gle-site-verification" content="gq0_mS9n25q06xEjDHvOSSIGVSMgmvRJMlccE92vh_E" />
و این ارور؟؟
Line 83, Column 94: Cannot recover after last error. Any further errors will be ignored.
…gle-site-verification" content="gq0_mS9n25q06xEjDHvOSSIGVSMgmvRJMlccE92vh_E" />
 

8song

Registered User
تاریخ عضویت
24 ژوئن 2013
نوشته‌ها
1,309
لایک‌ها
1,302
سن
26
محل سکونت
تبریز
1 ) استفاده از id بیش از یکبار در قالب
ارور :


نحوه رفع :
اگر در استایل قالب کلاسی به صورت زیر تعریف شده بود , از این کلاس فقط یک بار باید در قالب استفاده کنیم

HTML:
#class
{

}

اگر نیاز به چند بار استفاده هست باید در استایل به جای # , . قرار دهیم
اینجوری :

HTML:
.class{


}


خب اگه کلاسی درون کلاس دیگر به این صورت تعریف بشه چطور:
کد:
.post #post-title
به جای # چه چیزی قرار بدیم؟
 

MihanV

مدیر بازنشسته
تاریخ عضویت
29 جولای 2010
نوشته‌ها
11,827
لایک‌ها
30,305
محل سکونت
کرج
این ارور مربوط به چیه؟؟
Line 83, Column 94: meta element between head and body.
…gle-site-verification" content="gq0_mS9n25q06xEjDHvOSSIGVSMgmvRJMlccE92vh_E" />
و این ارور؟؟
Line 83, Column 94: Cannot recover after last error. Any further errors will be ignored.
…gle-site-verification" content="gq0_mS9n25q06xEjDHvOSSIGVSMgmvRJMlccE92vh_E" />

کد متا تگ گوگل وبمسترتولز رو باید بین تگ هد بزارید :
<head>

</head>

هر دو ارور مربوط به همین هست
 

MihanV

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

barcanews

Registered User
تاریخ عضویت
22 سپتامبر 2013
نوشته‌ها
840
لایک‌ها
128
ارور شما برای این هست که وسط صفحه تگ html باز شده ....
ممنون بابت پاسخگویی . الان این عکسی از کدهای قالب من هست . اون تگ اول قالبه

s56d_yuig.jpg
 

barcanews

Registered User
تاریخ عضویت
22 سپتامبر 2013
نوشته‌ها
840
لایک‌ها
128
منظورم همون خط هست
سایتتون رو باز کنید
view source رو بزنید
سمت چپ شماره خط ها رو زده , 444 رو ببینید
چه جالب . اون کدها رو میهن بلاگ اضافه کرده . تغییرشون دست من نیست . ممنون که وقت گذاشتید .
 

parsipersian

Registered User
تاریخ عضویت
20 سپتامبر 2012
نوشته‌ها
1,153
لایک‌ها
1,776
سلام
این ارور رو میده :

HTML:
Warning Line 352, Column 64: The first occurrence of ID tab was here.

…href="#view1" title="pc games" id="tab" rel="view1">بازی های کامپیوتری</a></li>
ممنون میشم بگید چی کار کنم
 

MihanV

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

HTML:
Warning Line 352, Column 64: The first occurrence of ID tab was here.

…href="#view1" title="pc games" id="tab" rel="view1">بازی های کامپیوتری</a></li>
ممنون میشم بگید چی کار کنم

از id بیشتر از یکبار استفاده شده
برای حل مشکل توی پست اول توضیح دادم
 

parsipersian

Registered User
تاریخ عضویت
20 سپتامبر 2012
نوشته‌ها
1,153
لایک‌ها
1,776
الان من چند تا سوال دارم ، میشه همشون رو اینجا بپرسم ؟ محدودیت نداره دیگه :D
 

MihanV

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

8song

Registered User
تاریخ عضویت
24 ژوئن 2013
نوشته‌ها
1,309
لایک‌ها
1,302
سن
26
محل سکونت
تبریز
من تا زمانی که 100 تا ارور قالبمو رفع نکنم دست بردار نیستم:D
کد:
کد:
<meta property="og:locale" content="fa_IR" />
ارور :
کد:
 Line 20, Column 16: there is no attribute "property"
<meta property="og:locale" content="fa_IR" />
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash
 

MihanV

مدیر بازنشسته
تاریخ عضویت
29 جولای 2010
نوشته‌ها
11,827
لایک‌ها
30,305
محل سکونت
کرج
سلام برای من اصلا نتیجه ای نشون نمیده
ارور زیر رو میده
Sorry! This document cannot be checked.

آدرس سایت رو بدید

من تا زمانی که 100 تا ارور قالبمو رفع نکنم دست بردار نیستم:D
کد:
کد:
<meta property="og:locale" content="fa_IR" />
ارور :
کد:
 Line 20, Column 16: there is no attribute "property"
<meta property="og:locale" content="fa_IR" />
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash

این کد جایگزین بشه :

کد:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 
بالا