• Resolved chichi2109

    (@chichi2109)


    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

    (@chichi2109)

    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

    (@chichi2109)

    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.

    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

    (@chichi2109)

    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?

    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

    (@macmanx)

    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://www.ads-software.com/support/forum/how-to-and-troubleshooting#postform

    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

    (@chichi2109)

    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

    (@macmanx)

    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 https://www.ads-software.com/plugins/tags/backup and ways to do it manually too https://codex.www.ads-software.com/WordPress_Backups

    Thread Starter chichi2109

    (@chichi2109)

    Oh ok… Thx for the tip MacManX ??
    Will do just that!

    Moderator James Huff

    (@macmanx)

    You’re welcome!

    I had the same problem with WP Database Backup and these instructions fixed the issue. Thanks everyone!

    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.