Parser error after theme update

  • Author
    Posts
  • #45659

    Hello all,

    Just updated my Nirvana theme today and now am unable to access the Dashboard without getting the following error:

    Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /home/content/82/11964382/html/TheTechInformist/wp-content/themes/nirvana/admin/sanitize.php on line 211

    Any suggestions on what I can do, or correct via FTP so I can get back in?

    Thanks

    Website: www.thetechinformist.com

    #45690

    What I did was made this modification on line 211 of sanitize.php:

    if ( !isset($input[$key][$subkey]) ) $input[$key] = array( $subkey => ” );

    (I removed the [ ] around $subkey in array() )

    But I would expect a fix real soon from Cryout, this is quite severe.

    #45724
    Zed
    Cryout Creations mastermind

    We’re sorry the issue affected your sites. We’ve published the update correcting it today.

    The problem only manifests on PHP 5.3 and older, which do not support the array( [$key] => 'value' ) format.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #45739

    still can’t access to dashboard, so how can I update the theme?

    #45740

    Same here.

    #45823

    Hello zed
    Any news for this issue?
    I can’t access to the dash board so I cannot update the theme with your fix
    Can you help me?

    #45844

    Waiting here as well for any tips since we are unable to access the dashboard to install the update. I’m familiar with FTP and can get into the site that way, but would rather not try overwriting the theme and lose all customizations.

    #45937
    Zed
    Cryout Creations mastermind

    It is safe to entirely delete the theme folder via FTP (if you are comfortable with FTP). You can then access the dashboard (as WordPress will re-set to the default Twenty theme) and reinstall Nirvana. All configured options will remain as they were (being stored in the database).

    Nirvana 1.4.1 resolves this problem with PHP <5.3


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #46157

    Thanks. I just downloaded the theme again from the website and uploaded the Nirvana folder and all appears well again.

    Thank you all for getting this squared away so quickly.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Parser error after theme update’ is closed to new replies.