I have a website on WordPress and I developed some theme options in my functions.php file of the theme folder.
Everything it`s fine on my localhost, but on server I get a white page when I save the options and also some url’s don’t work anymore.
I developed this code from some tutorials and the problem might be the php functions used, might be to old, or to new?
Here it is, not long!
http://pastebin.com/mKJYuUE2
OW, and the admin shows my options and saves them in database!
Edit after debug on!
I get an error like this Notice: Undefined index: action in “blabla” on line 63 and 93, 94 same error. I think this $_REQUEST[‘saved’] is the problem, but I don’t even know what this does.
Thank you very much!
Edit after debug the code
Now I fixed all my wordpress errors. Everything looks fine in my admin options, but now the problem is that if I try to delete a post, or some submit actions, I will get a white screen. On localhost I dont have this problem.
On my functions.php even if I add an echo line will give me this white page. What can I doo???
UPDATE:
Since you now know the error message. On line 63 it says “save,” but line 93 says “saved.” Might this inconsistency be the error?
To show error messages, add the following line to your .htaccess file:
That way you will see the specific error message so you will know where the problem lies specifically. Alternately you can add the following line to your wp-config.php file:
That should also display error messages. This will help pinpoint the problem.