The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] wordpress php error (9 posts)

  1. mxpimp47
    Posted 5 years ago #

    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.


  2. esmi
    Forum Moderator
    Posted 5 years ago #

    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.

  3. mxpimp47
    Posted 5 years ago #

    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?

  4. esmi
    Forum Moderator
    Posted 5 years ago #

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

  5. Mark / t31os

    Posted 5 years ago #

    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.

  6. mxpimp47
    Posted 5 years ago #

    here is a link thanks for you help! functions file

  7. Mark / t31os

    Posted 5 years ago #

    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.

  8. mxpimp47
    Posted 5 years ago #

    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!

  9. Mark / t31os

    Posted 5 years ago #

    You're welcome.. :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.