parselearn گفت:
البته اين راهنمايي شما مربوط به اين خطاست:
Allowed memory size
اما خطاي استارتر (اطلاعات خودم هست. شايد اشتباه باشه)
زماني كه صفحه اي در php اجرا ميشه تا زماني كه خروجي خاصي توليد نكنه. نوع خاصي نداره. اما زماني كه خروجي مانند html,تصوير،ويدئو توليد كرد. به آن نوع تغيير ميكنه
دستور header مياد تغييراتي در header صفحه ميده. اما وقتي كه نوع صفحه معين شده، ديگه نميشه اون رو تغيير داد.
البته در وردپرس ميشه header را تغيير داد. اما بايد در جاي صحيح فراخواني بشه
ميتونيد از دستور window.location جاوا اسكريپت استفاده كنيد
جايگزين كد بالايي:
echo '<script language="javascript">
window.location="'.$location.'";
</script>';
دوست عزیز
با این کار کمی صفحه ی ورود اومد. ولی 2 تا مشکل دیگه هم بوجود اومد. اول اینکه یه سری خطای دیگه اول صفحه اضافه شد:
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-login.php on line 353
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-login.php on line 365
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 754
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 755
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 756
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 757
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 758
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 759
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 762
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 763
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 764
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 765
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 768
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 769
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 770
Warning: Cannot modify header information - headers already sent by (output started at /home/arianamo/public_html/wp-content/themes/androidiha/functions.php:1) in /home/arianamo/public_html/wp-includes/pluggable.php on line 771
و دوم هم اینکه یوزر و پسورد رو از من قبول نمیکنه و وارد سایت نمیشه. خطا نمیده که اشتباهه. فقط وارد نمیشه و همین صفحه ی ورود refresh میشه!