Home Forums WoodMart support forum Parse error after updating the theme from 5.2 to 5.3

Parse error after updating the theme from 5.2 to 5.3

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #238555

    Sara_1990
    Participant

    Hello! See private content box.

    #238565

    finetuning
    Participant

    I get an error too when trying to upgrade from 5.2 to 5.3:

    [Wed Nov 04 11:49:43.950495 2020] [php7:error] [pid 20817] [client xxx.xxx.xxx.xxx:57415] PHP Parse error: syntax error, unexpected ‘)’ in /var/www/html/xxxxx.xxx/wp-content/themes/woodmart/inc/integrations/elementor/elementor.php on line 46, referer: https://xxxxx.xxx/wp-admin/update-core.php?action=do-theme-upgrade

    There is an extra comma “,” at the end of line 45 that breaks the PHP parser.

    #238567

    Sara_1990
    Participant

    Ok, thanks! How can I fix it?

    #238573

    finetuning
    Participant

    You need to edit the PHP file: I removed the comma and I was back online.
    I think Xtemos will need to release a fix.

    Basically look for these lines and change from this:

    
                                    'label'           => esc_html__( 'Footer', 'woodmart' ),
                                    'edit_in_content' => false,
                            ],
                    );
    

    to this

    
                                    'label'           => esc_html__( 'Footer', 'woodmart' ),
                                    'edit_in_content' => false,
                            ]
                    );
    

    (you need to remove the extra comma after the ])

    #238577

    Sara_1990
    Participant

    Many Thanks!🙂 It works! Will it be fixed with the next update?

    #238580

    finetuning
    Participant

    I hope so, it seems like a critical error for the ones of us using Elementor.
    Anyway I am a customer like you and not an Xtemos employee, so I cannot say for sure what they are going to do.

    #238601

    Artem Temos
    Keymaster

    Hello,

    Thank you very much for your reports. We have just released a new update 5.3.1 with a fix.

    Kind Regards

    #238615

    Sara_1990
    Participant

    Thanks, @finetuning for helping me!🙂 And thank Artem Temos for updating us about the future fix!

    #238629

    Artem Temos
    Keymaster

    Great, you are welcome!

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

The topic ‘Parse error after updating the theme from 5.2 to 5.3’ is closed to new replies.