Enrique Benitez
Enrique Benitez

Reputation: 679

Wordpress custom theme issue (It shows the same theme on admin)

i migrated from a standard website to a wordpress theme, but after a day, when i try to login on wp-admin, it shows the theme and a lot of errors like "headers already sent" on pluggable.php.

How can i do to show my custom template without the admin site changes ?

Upvotes: 0

Views: 63

Answers (1)

Mihai Stancu
Mihai Stancu

Reputation: 16107

The "headers already sent" warning indicates that the error display settings you have on the new server are stricter.

Because the errors are being showed the website cannot redirect you correctly.

Add the following to wp-config:

error_reporting(E_NONE);
ini_set('display_errors', FALSE);

This should help overcome that problem.

Also you should not be outputting anything in your functions.php file because the admin area includes it because you may want to make a complex theme that adds admin menu buttons for theme-configurations, kind-of like a plug-in

Upvotes: 1

Related Questions