Title: Illegal offset type in .php file
Last modified: August 21, 2016

---

# Illegal offset type in .php file

 *  Resolved [chichi2109](https://wordpress.org/support/users/chichi2109/)
 * (@chichi2109)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/)
 * Hi,
    I’ve recently updated WordPress and WooCommerce, and received an error that
   keeps appearing on top of my pages: Warning: Illegal offset type in /home/content/
   80/11769180/html/wp-admin/includes/template.php on line 1135
 * What does it mean, and what should I do?
 * Any help wlil be much appreciated.
    Thanks! Chi.

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

 *  Thread Starter [chichi2109](https://wordpress.org/support/users/chichi2109/)
 * (@chichi2109)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058013)
 * by the way, the text on line1135 in the above file is:
    $wp_settings_sections[
   $page][$id] = array(‘id’ => $id, ‘title’ => $title, ‘callback’ => $callback);
 * thanks in advance,
    Chi.
 *  Thread Starter [chichi2109](https://wordpress.org/support/users/chichi2109/)
 * (@chichi2109)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058020)
 * So I’ve just gone to delete a spam comment on the website, and the same warning
   came up. Except, there is a 2nd warning now, and it says:
    Warning: Cannot modify
   header information – headers already sent by (output started at /home/content/
   80/11769180/html/wp-admin/includes/template.php:1135) in /home/content/80/11769180/
   html/wp-includes/class-wp-ajax-response.php on line 129
 * Please help! 🙂
    Chi.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058028)
 * Try re-uploading all files & folders – **except** the root wp-config.php & .htaccess
   files and the wp-content folder – from a **fresh** download of WordPress. Make
   sure that you delete the old copies of files & folder before uploading the new
   ones.
 *  Thread Starter [chichi2109](https://wordpress.org/support/users/chichi2109/)
 * (@chichi2109)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058064)
 * Thx esmi…
    Do I upload them via FTP? As in I’ll just replace those files in my
   FTP folder? Or do I upload them via cPanel? Also, more importantly. This would
   mean that none of the progress I’ve made so far on the website will be deleted
   right? Everything will function as normal when I re-upload these files?
 *  [tiffjones611](https://wordpress.org/support/users/tiffjones611/)
 * (@tiffjones611)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058165)
 * I am having the SAME issue. I think it is a WordPress issue. I called Go Daddy-
   they reverted me to the default template. I am STILL having the same error coming
   up. Again, I think it is definitely an issue with WordPress.
 * I use WordPress through Godaddy and do not have access to templates.php. So I
   hope they (WP) fix this bug quickly!
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058169)
 * chichi2109, upload them via whichever method you’re most comfortable with, but
   it’s important that you delete the files before replacing, as simply overwriting
   them could cause more problems. As long as you don’t delete or replace the `wp-
   config.php` & `.htaccess` files and the `wp-content` folder, you won’t lose any
   existing content.
 * tiffjones611, please open your own thread: [https://wordpress.org/support/forum/how-to-and-troubleshooting#postform](https://wordpress.org/support/forum/how-to-and-troubleshooting#postform)
 *  [tiffjones611](https://wordpress.org/support/users/tiffjones611/)
 * (@tiffjones611)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058170)
 * YAY! Go Daddy walked me through it.
 * The issue is in the WP database backup – if you have this plugin activated, deactivate
   it!
 *  Thread Starter [chichi2109](https://wordpress.org/support/users/chichi2109/)
 * (@chichi2109)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058188)
 * Hey tiffjones and MacManX,
    thank you both for your suggestions!
 * I went with tiff’s suggestion first as it seems simple enough. It did get rid
   of the warning message, thank you! But then I switched it back on, and the warning
   message is still there. As I’m quite clueless about WP still, I can’t remember
   why I downloaded that plugin. But I’m thinking I might need it again when I need
   to backup WP before another update. Is that correct? If it is, then it means 
   I’ll need that activated.
 * I might try replacing those files suggested by esmi and MacManX… but I just need
   to know that there won’t be any issues of deleting any work I’ve done so far 
   on the site?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058195)
 * If deactivating the plugin removed the errors, and reactivating it brought them
   back, then it’s the plugin. 😉
 * The good news is, there are plenty of other backup plugins [http://wordpress.org/plugins/tags/backup](http://wordpress.org/plugins/tags/backup)
   and ways to do it manually too [http://codex.wordpress.org/WordPress_Backups](http://codex.wordpress.org/WordPress_Backups)
 *  Thread Starter [chichi2109](https://wordpress.org/support/users/chichi2109/)
 * (@chichi2109)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058199)
 * Oh ok… Thx for the tip MacManX 😉
    Will do just that!
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058213)
 * You’re welcome!
 *  [rsderrickgmail.com](https://wordpress.org/support/users/rsderrickgmailcom/)
 * (@rsderrickgmailcom)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058291)
 * I had the same problem with WP Database Backup and these instructions fixed the
   issue. Thanks everyone!
 *  [cesarausan](https://wordpress.org/support/users/cesarausan/)
 * (@cesarausan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058350)
 * Thank you so much to everyone! I had the same problem and I fixed it!

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

The topic ‘Illegal offset type in .php file’ is closed to new replies.

## Tags

 * [illegal](https://wordpress.org/support/topic-tag/illegal/)
 * [illegal offset type](https://wordpress.org/support/topic-tag/illegal-offset-type/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 13 replies
 * 6 participants
 * Last reply from: [cesarausan](https://wordpress.org/support/users/cesarausan/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/illegal-offset-type-in-php-file/#post-5058350)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
