• robcnz

    (@robcnz)


    Hi there,

    All of a sudden the custom header in my WP site is giving a 404 error and I can’t log into the site to post content/update it/etc.

    This is the error I am getting when I try to log in:
    404
    Warning: Cannot modify header information – headers already sent by (output started at /home/learni67/public_html/wordpress/wp-content/themes/customizr-child/functions.php:1) in /home/learni67/public_html/wordpress/wp-includes/pluggable.php on line 896

    Also the custom footer has lost some of it’s content.

    How do I get it so that I can log into my site again, then start fixing the footer and header?

Viewing 7 replies - 1 through 7 (of 7 total)
  • rdellconsulting

    (@rdellconsulting)

    Looks like you may have set up your child theme functions.php incorrectly (things don’t tend to happen suddenly!)

    To get your Admin back, rename the CT functions.php (eg functions.old) and the core functions.php will take over.

    Check this snippet re: CT

    Come back if still any problems.

    Thread Starter robcnz

    (@robcnz)

    Dear rdellconsulting,

    Thank you for that – I’m now back in and can post which is good. The footer is still broken. I’m guessing I need to completely re-make the functions.php file in the child theme?

    Do you have any tips on how to do this? I’m a newbie and may have ‘overstretched’ myself in this somewhat!

    Rob

    rdellconsulting

    (@rdellconsulting)

    Did you see the snippet in my last post? Don’t give up, it really is very simple when you realise what to do.

    Here’s another snippet from @electricfeet which shows how easy it is.

    Thread Starter robcnz

    (@robcnz)

    Crikey – now my entire site has crashed and I can’t seem to get it up and running again.

    The error I am getting is:
    “exhausted (tried to allocate 71 bytes) in /home/learni67/public_html/wordpress/wp-includes/meta.php on line 578”

    I’ve tried taking out the child theme header.php and the meta.php files but that doesn’t work.

    I’ve looked at the meta.php file and it has the following code in it:

    // Force subkeys to be array type:
    			if ( !isset($cache[$mpid]) || !is_array($cache[$mpid]) )
    				$cache[$mpid] = array();
    			if ( !isset($cache[$mpid][$mkey]) || !is_array($cache[$mpid][$mkey]) )
    				$cache[$mpid][$mkey] = array();

    But I have literally no idea where to start, the line which the error refers to is the last one:

    $cache[$mpid][$mkey] = array();

    help!

    Thread Starter robcnz

    (@robcnz)

    Sorry I’ve had to change the theme template temporarily so that the site stays up – I have customers who will be looking at it.

    I wonder if something went wrong with the WP main install files, as the errors appeared to be coming from the includes folder in the main /wordpress/ folder, and not the child theme?

    rdellconsulting

    (@rdellconsulting)

    I’ve tried taking out the child theme header.php and the meta.php files but that doesn’t work.

    Looks like you may have moved header.php and meta.php into your child theme? The CT only needs 2 files (unless you’re doing some heavy customisation) – style.css and functions.php. And functions.php should start with just <?php on line 1 and then add incremental code from snippets if needed.

    Thread Starter robcnz

    (@robcnz)

    Thanks @ rdellconsulting, I’ve tried deleting the files in the CT folder and leaving the style.css only but to no avail – still getting the same errors.

    I’ve switched to an alternate theme in the meantime and will devote more time to this tomorrow.

    I appreciate your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Customizr header & footer stopped working’ is closed to new replies.