Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #530535

    I just updated the theme (auto update), and I am using a Child Theme,
    After the update, I now receive the following error:

    Parse error: syntax error, unexpected ‘[‘ in /home/voxmaxus/public_html/gurleysfoods/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 1495

    Any help?
    ~ Greg

    • This topic was modified 9 years, 1 month ago by Donkies11. Reason: (i forgot to check email notify)
    #530542

    We can close this out – I compared the class-framework-widgets.php throwing an error with another version from a working live theme and they were different.
    I deleted Enfold directory from the broken site and reloaded a “working” version – all is well.
    FYI,
    Greg

    #530546

    i am getting the same error, we deleted the directory and downloaded latest from themeforest and uploaded and still got same error. Any ideas what we might be doing wrong? Thanks.

    #530547

    actually the enfold theme loads ok, its when we try and load up the child theme that it happens.

    #530548

    no my mistake its the enfold theme. it just wasnt activated.

    #530549

    this is a fresh wp install

    #530555

    Yes; I think their new update has a bug.
    Do you have the version before this update? If so, you can delete the newest one and re-upload the previous one.

    #530580

    Hi Donkies11, thanks for the message, actually we had an older version of the theme which we uploaded first and the same thing happened so we deleted it and downloaded the new one and unfortunately got the same result. I think the error must be linked to the new wp version as we had the old version of the theme installed for other sites with no issues. Thanks.

    #530657

    Hi everyone,

    I can’t login anymore to the WP-backend after the latest update (going to the login URL gives the parsing error on line 1495). The website itself is still up and usable.

    Can someone explain how I solve this and replace the files? (using ftp? Which directories do I replace, and where do I find the replacements?)

    Many thanks!

    #530663

    Hey!

    Can you please go to enfold/framework/php/class-framework-widgets.php and go to line 1495 and replace

    $last_id  = end($media_array)['id'];

    with

    $last_id  = end($media_array);
    $last_id  = $last_id['id'];

    Please let us know if that fixes the problem

    Best regards,
    Yigit

    #530673

    yes that works for me. thanks.

    #530688

    Thanks, that solved it.

    #530690

    Hi!

    You are welcome, we will keep the thread open to hear from the OP.
    If you have any other questions or issues, please feel free to start a new thread :)

    Best regards,
    Yigit

    #530701

    Yes that works for me. Thanks

    #531301

    Hello Yigit,
    It looks like you pulled this latest release.
    I still have the Version: 3.4 directory – is it helpful to you if I reload it live and test the assigned fix?
    ~ Greg

    #531942

    I never heard back about reloading the directory release that “broke” sites.
    Today I see there is a new release out. I updated a site with it (Version: 3.4.1) and except for a memory fatal error, everything seems to be fine – and i don’t think the memory error has to do with the theme update – though it might.
    Anyway, I think we can close this one out.
    Thanks,
    Greg

    #533058

    Hi Greg,

    Not sure about your memory issue, is something not functioning as it should?

    Thanks,
    Rikard

    #533066

    Hello Rikard/Support,

    I think we can close out all my open support tickets/items. Everything is currently resolved.

    FYI,
    Greg

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘Parse error: syntax error, unexpected’ is closed to new replies.