logo

$25
Adding a Theme Options Page causes a white screen on site?

Hey Guys,

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

Functions.php

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

Functions.php

---LINK UPDATED---

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

Thanks.

Keith Donegan | 06/26/10 at 11:15am | Edit


(4) Possible Answers Submitted...

  • avatar
    Last edited:
    06/26/10
    11:22am
    Utkarsh Kukreti says:

    In the second link, change line 54 from

    	  if ( $_GET['page'] == basename(__FILE__) ) 


    to

    	  if ( isset($_GET['page']) && $_GET['page'] == basename(__FILE__) ) 

    • 06/26/10 11:41am

      Keith Donegan says:

      Just added, it makes the error go away but I still see a white screen :(

      http://www.eirestudio.net/themeforest/psd-planet-wp/

  • avatar
    Last edited:
    06/26/10
    11:29am
    Darrin Boutote says:

    The second link just has the theme options. Do you have a link with your entire functions.php file?

    • 06/26/10 11:43am

      Keith Donegan says:

      sorry, http://pastie.org/private/jk4v6c72e35trzmmtpwt3w

  • avatar
    Last edited:
    06/26/10
    11:33am
    Rashad Aliyev says:

    contact with me..

  • avatar
    Last edited:
    06/26/10
    12:27pm
    Oleg Butuzov says:

    Insert this code at the beginning of your functions.php after <?php
    ref: http://php.net/manual/en/function.error-reporting.php

    error_reporting(E_ALL ^ E_NOTICE);

    Previous versions of this answer: 06/26/10 at 11:35am | 06/26/10 at 11:37am | 06/26/10 at 11:37am | 06/26/10 at 11:38am

    • 06/26/10 11:41am

      Oleg Butuzov says:

      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);

    • 06/26/10 11:43am

      Oleg Butuzov says:

      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 butuzov@made.com.ua ?

    • 06/26/10 11:45am

      Oleg Butuzov says:

      btw - its JS error =)

    • 06/26/10 11:47am

      Oleg Butuzov says:

      Here is like it looks without activated JS.

      Attached Image

    • 06/26/10 11:47am

      Keith Donegan says:

      Just emailed you with functions.php file.

    • 06/26/10 12:21pm

      Oleg Butuzov says:

      1) delete the google ad sence code from the 125x125 adds menu
      2) trim the bottom of the bottom pf the functions.php

This question has expired.





Current status of this question: Completed