Home » Topics » Priority Support » Parse error in version 1.3 multisite install

Parse error in version 1.3 multisite install

ACF Widgets Support Priority Support Parse error in version 1.3 multisite install

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1841
    Jolt Design
    Participant

    Hi. I’m running this plugin in a multisite install. I updated to 1.3 yesterday and since then have been seeing the following error at the top of every page, both front and back ends.

    Parse error: syntax error, unexpected 's' (T_STRING), expecting ')' in W:\home\cleanand\public_html\wp-content\plugins\acf-widgets\includes\helper-functions.php(178) : eval()'d code on line 6

    Please let me know if you need any further information. Great plugin by the way – really takes the pain out of rapidly creating widgets.

    #1842
    Daron Spence
    Keymaster

    Hi Jonathan, glad you enjoy the plugin!

    In regards to your error, are you using an apostrophe or double quote in any of your widget names? That may be what is causing the error.

    Sorry you’re having issues! 🙁

    #1843
    Daron Spence
    Keymaster

    Yepp just verified it. Due to the nature of how widgets are instantiated, I have to run every new ACFW through an eval() function. Eval works by executing a string as if it were PHP. I’m currently still looking into other options, but there aren’t many in this area of WordPress. Point being, the ' ends the eval function early so it doesn’t get to finish parsing the rest of the widget. If you want a workaround, you can place a \ before the apostrophe and that will escape the character and everything will work as intended. You will only see the backslash on the “Add New Widgets” screen.

    I’ll be pushing a bugfix soon that will hopefully escape those characters. Although, if that implementation isn’t possible, I will likely just strip them from the title instead.

    Let me know if that works!

    #1849
    Daron Spence
    Keymaster

    Bugfix has been released as of v1.3.1

    Navigate to your network dashboard to update.

    #1856
    Jolt Design
    Participant

    Apologies for the late reply. Just wanted you to know this has fixed my problem. Many thanks for the fast response!

    #1857
    Daron Spence
    Keymaster

    No problem!

    I’m closing this ticket. If you want to continue you can post a new reply to reopen it. 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Parse error in version 1.3 multisite install’ is closed to new replies.