Support » Theme: Customizr » PHP Fatal error: Can’t use function return value in write context in

  • PHP Fatal error: Can’t use function return value in write context in …/wp-content/themes/customizr/inc/czr-init.php on line 441
    if ( ! function_exists( ‘czr_fn_has_social_links’ ) ) {
    function czr_fn_has_social_links() {
    return !empty( czr_fn_get_opt(‘tc_social_links’) );
    }
    }

Viewing 7 replies - 1 through 7 (of 7 total)
  • “return false;” is work.

    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.

    Fixed, thanks.

    For me this was on line 877 to 889 of that file, although the site error reported it as being line 441 as above.

    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

    Thank you!

    Thanks for the info!

    Ditto for me. Your solution worked like a charm.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Fatal error: Can’t use function return value in write context in’ is closed to new replies.