Support » Fixing WordPress » wordpress php error

  • Resolved mxpimp47


    i have an error that i cant seem to figure out. i had this setup on a sub domain and never got an error. now on the domain its giving me this error. could anyone take a look and guide me in the correct direction for a fix?

    thanks in advance for any help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • esmi


    Forum Moderator

    Have you tried:

    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Ten theme to rule out any theme-specific problems?

    resetting the plugins folder by FTP or PhpMyAdmin? Sometimes, an apparently inactive plugin can still cause problems.

    thanks, ive tried all of that. it goes away when i use twenty ten theme. but like i said it doesnt have the error on the other domain i have the theme activated on. any other suggestions?



    Forum Moderator

    It’s obviously a theme issue. Do both servers use the same version of WordPress & PHP?

    From the looks of the error there’s a function in the theme’s functions.php file at fault.

    Can you post the contents of that file into a pastebin then report the link back here please and we’ll see about fixing the function causing the problem.

    here is a link thanks for you help! functions file

    Try commenting out this line and see if the error then disappears.

    add_custom_image_header('header_style', 'admin_header_style');

    Commenting out simply means placing two forward slashes infront of it, like so..

    //add_custom_image_header('header_style', 'admin_header_style');

    If that fixes the problem, either leave it commented out, or determine why PHP thinks the admin_header_style function does not exist.

    commenting it out seemed to work. whats weird was i removed that whole line of code and it fixed it prior but messed up the layout somehow…. hmmmmmmm thank you for your time and help i really appreciate it a lot!

    You’re welcome.. 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘wordpress php error’ is closed to new replies.