Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Adding a Theme Options Page causes a white screen on site? WordPress

  • SOLVED

Hey Guys,

Here is my following functions.php file without theme options:

[[LINK href="http://pastie.org/private/wawa6p57adg2lw0og9plg"]]Functions.php[[/LINK]]

This works great and everything works as it should.

But when I added the theme options code to the bottom of the above functions.php file, the front end of the site shows a white screen and I get the following error in the admin dashboard

Notice: Undefined index: page in /usr/local/pem/vhosts/103503/webspace/httpdocs/eire/themeforest/psd-planet-wp/wp-content/themes/planet-psd/functions.php on line 294

Here is a link to the entire functions.php file with theme options

[[LINK href="http://pastie.org/private/jk4v6c72e35trzmmtpwt3w"]]Functions.php[[/LINK]]

---LINK UPDATED---

Oh and here is the site with white screen: http://www.eirestudio.net/themeforest/psd-planet-wp/

Thanks.

Answers (4)

2010-06-26

Oleg Butuzov answers:

Insert this code at the beginning of your functions.php after <strong><em><?php</em></strong>
ref: http://php.net/manual/en/function.error-reporting.php
error_reporting(E_ALL ^ E_NOTICE);


Oleg Butuzov comments:

this is debug code from your other functions.php with same options witch related to the error reporting. as you see you have here defined error reporting level. you can comment this stuff to to stop showing notices.

ini_set('display_errors', 1);
ini_set('log_errors', 1);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
error_reporting(E_ALL);


Oleg Butuzov comments:

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pem/vhosts/103503/webspace/httpdocs/eire/themeforest/psd-planet-wp/wp-content/themes/planet-psd/functions.php:473) in /usr/local/pem/vhosts/103503/webspace/httpdocs/eire/themeforest/psd-planet-wp/wp-includes/pluggable.php on line 890

can you sent your original functions.php to the [email protected] ?


Oleg Butuzov comments:

btw - its JS error =)


Oleg Butuzov comments:

Here is like it looks without activated JS.