• I was updating my website this morning using the WordPress app (www.growchiswick.org). There was a WordPress update (to 4.7.2) and a customizr update. I tried installing them both but got the following message:

    Fatal error: Can’t use function return value in write context in /var/sites/g/growchiswick.org/public_html/wp-content/themes/customizr/inc/czr-init.php on line 441.

    I now get this whenever I look at the website or try to log into wp-admin. Please can somebody help me get my website back?

    Thank you!

    Jo

Viewing 9 replies - 1 through 9 (of 9 total)
  • same here, for now rename customizer folder in someelse u want and do girect to adminpanel and swtich to another theme

    Use FTP to get to your site’s files.
    Browse to /wp-content/themes/customizr/inc and locate the files czr-init.php
    Download and open the PHP file in a text editor (notepad) and find lines 439 through 443:

    if ( ! function_exists( 'czr_fn_has_social_links' ) ) {
      function czr_fn_has_social_links() {
        return ! empty ( czr_fn_get_opt('tc_social_links') );
      }
    }

    Add /* before the if on line 439 and */ after the bracket on line 443.
    Save the file and upload it, overwriting the existing czr-init.php file.

    That’s what I did to get my site back online ??

    Thank u Roland, it works !

    thank Roland working!!

    Thread Starter johodges

    (@johodges)

    Worked for me too – thank you very much for your help. What a relief!

    Hi all,
    thanks for reporting the problem. This occured with server with a version of php < 5.5
    Has been fixed in version 3.5.1.

    Cheers

    Worked for me too. However I did not understand Rocco Aliberi comment on PHP version. Did you mean “Has fixed in version 5.5.1?

    • This reply was modified 7 years, 9 months ago by jodelson.

    @jodelson he meant the PHP version that’s running on your server. The current PHP version is 7 and versions up to 5.6 aren’t supported anymore. I’ve already asked the host of the affected website to upgrade the working PHP version asap, which I advise anyone affected by this issue to do as well.

    THANK YOU SO MUCH ROLAND! @pmcbrabant!
    You are a lifesaver! ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal error updating this morning’ is closed to new replies.