New Landing How can we help? Atelier URGENT PLEASE: Parse error: syntax error

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Atelier
  • #271577
    Kate789
    Member
    Post count: 14

    Hi, I have just applied the latest updates and now have this error come up whenever I try to edit any page:

    Parse error: syntax error, unexpected ‘&’ in /websites/sm/smileiq.com.au/wp-content/themes/atelier/includes/meta-box/inc/fields/choice.php on line 99

    Additionally, some content is now not visible on some pages e.g. Blog posts, FAQs and products in Shop page.

    Can you please assist?

    Thanks.

    #271588
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me FTP login detail to check and resolve the issue.
    Thanks
    Mohammad

    #271655
    Kate789
    Member
    Post count: 14
    This reply has been marked as private.
    #271662
    David Martin – Support
    Moderator
    Post count: 20834

    Please ask your host to upgrade you to the latest PHP version.

    To amend whilst they do this, please locate the file /wp-content/themes/atelier/includes/meta-box/inc/fields/choice.php and on line 99 change this from foreach ( (array) $options as &$option ) to foreach ( (array) $options as $option ).

    Related to this: http://www.swiftideas.com/forums/topic/syntax-error-after-update/

    Thanks.

    #271666
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have managed to resolve the issue so please check it now. I edited the choice.php file at /atelier/includes/meta-box/inc/fields/.
    Find this code at line 99 :-
    foreach ( (array) $options as &$option )

    Change to:-
    foreach ( (array) $options as $option )
    Thanks
    Mohammad

    #271671
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have managed to resolve the issue so please check it now. I edited the choice.php file at /atelier/includes/meta-box/inc/fields/.
    Find this code at line 99 :-
    foreach ( (array) $options as &$option )

    Change to:-
    foreach ( (array) $options as $option )
    Thanks
    Mohammad

    #271676
    Kate789
    Member
    Post count: 14

    Hi, thank you, I am able to get into edit pages now without the error coming up but there is still content missing from pages e.g. Blog posts, FAQs and products in Shop page. The content is still in the back end, but doesn’t show on the pages…

    Thanks.

    #271736
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Can you provide a link to those pages so I can check?

    – Kyle

    #271848
    Kate789
    Member
    Post count: 14
    This reply has been marked as private.
    #271854
    Kate789
    Member
    Post count: 14

    Update: I have updated the PHP to 5.6 and cleared the cache and everything appears to be working again. Thank you all for your help.

    #271865
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Great, glad it’s sorted. FYI we have just released v2.1.1 to resolve this if you are unable to update your PHP version.

    – Ed

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register