This topic has 6 replies, 2 voices, and was last updated 7 years ago ago by Olga Barlow
Hello there, after last update there seems to be a syntax error in the theme on my platform.
Parse error: syntax error, unexpected ‘[‘ in ……mywebsite……/public_html/wp-content/themes/xstore/theme/custom-styles.php on line 313
This is the line of code:
$menu_links_border_style = etheme_get_option(‘menu-border-style’)[‘border-style’];
$menu_links_border_style_hover = etheme_get_option(‘menu-border-style-hover’)[‘border-style’];
$menu_dropdown_border_style = etheme_get_option(‘menu_dropdown_border_style’)[‘border-style’];
$header_bg = etheme_get_custom_field(‘header_bg’, $post_id[‘id’]);
$header_bg_transparent = etheme_get_custom_field(‘header_transparent’, $post_id[‘id’]);
if ( $header_bg_transparent ) {
$header_bg = ‘transparent’;
}
After removing [‘border-style’]from above code my website seems to be functioning again.
Is this going to be resolved in future updates or is this something I can resolve myself?
As I am running on a somewhat older PHP version as my previous (live) website can’t handle a higher version. Once I completed this new website I am upgrading the php version.
Hello,
Tell me what version of PHP do you use?
Regards
Cant see this right now. But can this give this syntax error? Because then all I need is to upgrade my php version once completing the website.
Hello,
PHP version can be the reason but we want to be sure and need to test. So, go to WooCommerce > Status > check the version and let me know.
Regards
Its low i know, but it is 5.3.29 currently.
I have this version because its the latest version my current website is working on right now.
Also the reason why im creating a new website.
Hello,
Yes, it could be the reason. If you plan to update PHP version then inform me if you still have this problem after the update. Because you are the first who reported such error.
Regards
You must be logged in to reply to this topic.Log in/Sign up