• I recently added a theme options section under the appearance menu in the WP back end.

    It loads fine but as soon as I click save or reset I get the white screen of death… although the changes are implemented.

    Turning off plugins did nothing, I have checked tables etc and can’t see anything obvious. I am developing it locally through MAMP if that helps.

    The theme options file is included at the bottom of the functions.php file. The really strange thing is that if I move the include code from the bottom of the functions.php file to the top I no longer get a white screen but instead get a “you do not have permission…” message. Move it back down and it’s a blank white screen again on submit or reset.

    At one point other back end pages were failing on submit also but I seemed to have fixed that for now… everything was 100% fine until I added this theme options page and it was pasted from a tutorial.

    I am out of ideas.

Viewing 4 replies - 1 through 4 (of 4 total)
  • It sounds like you have a serious error somewhere in your theme options code. If you’re running this on a local or development install, try adding define('WP_DEBUG', true); near the top of the wp-config.php file to output any output any plugin or theme errors.

    Thread Starter brad8985

    (@brad8985)

    I get the following errors…

    Notice: Undefined offset: 0 in /Applications/MAMP/htdocs/Click/wp-includes/plugin.php on line 747

    Notice: Undefined offset: 0 in /Applications/MAMP/htdocs/Click/wp-includes/plugin.php on line 765

    Notice: Undefined variable: wp_ver in /Applications/MAMP/htdocs/Click/wp-content/plugins/wordpress-popular-posts/wordpress-popular-posts.php on line 113

    Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. in /Applications/MAMP/htdocs/Click/wp-includes/functions.php on line 3323

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /Applications/MAMP/htdocs/Click/wp-includes/functions.php on line 3321

    Notice: Undefined index: action in /Applications/MAMP/htdocs/Click/wp-content/themes/Click/theme-options.php on line 41

    Notice: Undefined index: action in /Applications/MAMP/htdocs/Click/wp-content/themes/Click/theme-options.php on line 52

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /Applications/MAMP/htdocs/Click/wp-includes/functions.php on line 3321

    Notice: Undefined index: saved in /Applications/MAMP/htdocs/Click/wp-content/themes/Click/theme-options.php on line 71

    Notice: Undefined index: reset in /Applications/MAMP/htdocs/Click/wp-content/themes/Click/theme-options.php on line 72

    Thread Starter brad8985

    (@brad8985)

    and here is the code…

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter brad8985

    (@brad8985)

    see code here

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Theme Options save causes blank screen’ is closed to new replies.