Title: wordpress php error
Last modified: August 19, 2016

---

# wordpress php error

 *  Resolved [mxpimp47](https://wordpress.org/support/users/mxpimp47/)
 * (@mxpimp47)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-php-error/)
 * 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.
 * [http://homesintheheartoftexas.com/](http://homesintheheartoftexas.com/)

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-php-error/#post-1870715)
 * 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](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or PhpMyAdmin? Sometimes, an apparently inactive plugin can still cause
   problems.
 *  Thread Starter [mxpimp47](https://wordpress.org/support/users/mxpimp47/)
 * (@mxpimp47)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-php-error/#post-1870753)
 * 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?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-php-error/#post-1870786)
 * It’s obviously a theme issue. Do both servers use the same version of WordPress&
   PHP?
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-php-error/#post-1870800)
 * 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 ](http://wordpress.pastebin.com/)
   then report the link back here please and we’ll see about fixing the function
   causing the problem.
 *  Thread Starter [mxpimp47](https://wordpress.org/support/users/mxpimp47/)
 * (@mxpimp47)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-php-error/#post-1870805)
 * here is a link thanks for you help! [functions file](http://pastebin.com/raw.php?i=r0Qkig6M)
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-php-error/#post-1870807)
 * 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.
 *  Thread Starter [mxpimp47](https://wordpress.org/support/users/mxpimp47/)
 * (@mxpimp47)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-php-error/#post-1870808)
 * 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!
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-php-error/#post-1870811)
 * You’re welcome.. 🙂

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

The topic ‘wordpress php error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-php-error/#post-1870811)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
