رفتن به مطلب

اخطار pluggable.php و wp-login.php هنگام ورود به مدیریت


پست های پیشنهاد شده

سلام. وقتی صفحه ورود به مدیریت رو میارم این اخطار بالای اون نوشته شده:


Warning: Cannot modify header information - headers already sent by (output started at /home3/premiumi/public_html/wp-content/themes/eBlog/functions.php:1) in /home3/premiumi/public_html/wp-login.php on line 384
Warning: Cannot modify header information - headers already sent by (output started at /home3/premiumi/public_html/wp-content/themes/eBlog/functions.php:1) in /home3/premiumi/public_html/wp-login.php on line 396

و در این دو لاین به ترتیب این کدها وجود دارند:


header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);

بعد هنگام زدن دکمه ورود این اخطار میاد:


Warning: Cannot modify header information - headers already sent by (output started at /home3/premiumi/public_html/wp-content/themes/eBlog/functions.php:1) in /home3/premiumi/public_html/wp-login.php on line 384
Warning: Cannot modify header information - headers already sent by (output started at /home3/premiumi/public_html/wp-content/themes/eBlog/functions.php:1) in /home3/premiumi/public_html/wp-login.php on line 396
Warning: Cannot modify header information - headers already sent by (output started at /home3/premiumi/public_html/wp-content/themes/eBlog/functions.php:1) in /home3/premiumi/public_html/wp-includes/pluggable.php on line 678
Warning: Cannot modify header information - headers already sent by (output started at /home3/premiumi/public_html/wp-content/themes/eBlog/functions.php:1) in /home3/premiumi/public_html/wp-includes/pluggable.php on line 679
Warning: Cannot modify header information - headers already sent by (output started at /home3/premiumi/public_html/wp-content/themes/eBlog/functions.php:1) in /home3/premiumi/public_html/wp-includes/pluggable.php on line 680
Warning: Cannot modify header information - headers already sent by (output started at /home3/premiumi/public_html/wp-content/themes/eBlog/functions.php:1) in /home3/premiumi/public_html/wp-includes/pluggable.php on line 875

در این لاین ها نیز به ترتیب این کدها وجود دارند:


header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
setcookie($auth_cookie_name, $auth_cookie, $expire, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN, $secure, true);
setcookie($auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, $secure, true);
setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, COOKIEPATH, COOKIE_DOMAIN, $secure_logged_in_cookie, true);
header("Location: $location", true, $status);

و داخلم نمیره!

ممنون میشم کمکم کنید. درضمن یه مدت بود که هنگام save کردن تنظیمات تو پنلم اخطار pluggable میومد و با رفرش صفحه درس میشد. اما دیروز که افزونه wordpress seo by yoast رو نصب کردم دیگه اینجور شد و دیگه داخل نرفت!

اینم فایل

functions.php :

functions.php

ویرایش شده توسط yas_wp
لینک به ارسال
مهمان
این موضوع برای عدم ارسال قفل گردیده است.
×
×
  • اضافه کردن...