-
AuthorPosts
-
November 5, 2015 at 6:45 am #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 ago by Donkies11. Reason: (i forgot to check email notify)
November 5, 2015 at 7:17 am #530542We 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,
GregNovember 5, 2015 at 7:28 am #530546i 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.
November 5, 2015 at 7:29 am #530547actually the enfold theme loads ok, its when we try and load up the child theme that it happens.
November 5, 2015 at 7:30 am #530548no my mistake its the enfold theme. it just wasnt activated.
November 5, 2015 at 7:33 am #530549this is a fresh wp install
November 5, 2015 at 7:55 am #530555Yes; 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.November 5, 2015 at 8:45 am #530580Hi 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.
November 5, 2015 at 11:07 am #530657Hi 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!
November 5, 2015 at 11:20 am #530663Hey!
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,
YigitNovember 5, 2015 at 11:27 am #530673yes that works for me. thanks.
November 5, 2015 at 11:40 am #530688Thanks, that solved it.
November 5, 2015 at 11:43 am #530690Hi!
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,
YigitNovember 5, 2015 at 11:55 am #530701Yes that works for me. Thanks
November 6, 2015 at 1:56 am #531301Hello 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?
~ GregNovember 7, 2015 at 10:55 pm #531942I 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,
GregNovember 10, 2015 at 6:14 am #533058Hi Greg,
Not sure about your memory issue, is something not functioning as it should?
Thanks,
RikardNovember 10, 2015 at 6:43 am #533066Hello Rikard/Support,
I think we can close out all my open support tickets/items. Everything is currently resolved.
FYI,
Greg -
AuthorPosts
- The topic ‘Parse error: syntax error, unexpected’ is closed to new replies.