• Two days ago I updated my theme (Flat). This morning it asked me to do the same, which I did. All pages on my site then came up empty (white) and it was impossible to access the admin area as it too came up empty (white). I logged into the server and renamed the folder containing the Flat theme, which then allowed me to login into the admin area with an error message appearing about the theme files not found. I have changed my theme for now, but wish to return to Flat. I have tried the advice of a complete rewrite of hooks.php, with the same issue occurring. Does anyone have any other solutions or is it going to be a case of waiting for the next release and crossing my fingers that it isn’t broken again?

Viewing 15 replies - 1 through 15 (of 25 total)
  • I’ve got the same problem. WordPress becomes completely inaccesible when 1.5.7 is installed.

    What is your WordPress version? Flat 1.5.7 is working fine with latest version of WordPress.

    Thread Starter Jason Chong

    (@dantianhealth)

    I’m using the latest WordPress 4.1.1

    Could you please help me enable debug on your wp-config.php file and give me results?

    Change from:
    define( 'WP_DEBUG', false );
    To:
    define( 'WP_DEBUG', true );

    Thread Starter Jason Chong

    (@dantianhealth)

    Hi thanhlt
    I enabled debug and reactivated the theme. Same issue arose but with this message:
    Parse error: syntax error, unexpected T_FUNCTION in D:\sites\dantianhealth\dantianhealth.com.au\home\blog\wp-content\themes\flat\functions.php on line 63
    I have reenabled a working theme as I need to keep my website live

    All three of you (@DantianHealth, @daribbah76, and @thanhlt), which version of PHP are you running? You can find out by asking your hosting provider or by running phpinfo().

    Hi,

    @stephencottontail
    PHP Version 5.2.17

    @thanhlt
    I get the following error message:
    “Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /mnt/webq/e1/99/5392399/htdocs/spotting_blog/wp-content/themes/flat/inc/customize.php on line 449”

    Regards
    Philipp

    @thanhlt
    Sorry, copy/paste error… I get the same message as DantianHealth:

    Parse error: syntax error, unexpected T_FUNCTION in /mnt/webq/e1/99/5392399/htdocs/spotting_blog/wp-content/themes/flat/functions.php on line 63

    I’m getting the same issue since I updated to 1.5.7 theme version. I had to ftp in and rename the theme folder to be able to access my site and admin area again.

    Edit – checked my PHP version and it is 5.4.24.

    Edit 2 – Enabled debug and got the following error:

    Parse error: syntax error, unexpected T_FUNCTION in **** /wp-content/themes/flat/functions.php on line 63

    Yeap, I had the exactly same problem here. I temporarily fixed it locally by changing line #63 in functions.php from:

    add_filter( 'comments_popup_link_attributes', function() { return ' itemprop="discussionUrl"'; } ); # schema.org property on comments links

    to

    add_filter( 'comments_popup_link_attributes', "return ' itemprop=\"discussionUrl\"';" ); # schema.org property on comments links

    @luigivieira

    Thanks – that did the trick!

    You’re welcome @bambam944! ??

    @luigivieira: What version of PHP are you running?

    @bambam944: I’m surprised to read that you’re receiving the error on PHP version 5.4.24. I suspected that the OP’s issue was due to the use of an anonymous function, but your version of PHP should support it.

    @stephencottontail My version is 5.2.172.0

    Thread Starter Jason Chong

    (@dantianhealth)

    @luigivieira your solution appears to have fixed the problem for now, thanks for that
    @stephenconttontail my php version is 5.2.13

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘1.5.7 broke wordpress’ is closed to new replies.