WordPress Syntax Error (Astra)

Website URL

https://maryamsbakery.ml

Error Message

**Parse error : syntax error, unexpected end of file, expecting ‘)’ in **
/home/vol14_8/epizy.com/epiz_28519929/htdocs/wp-content/themes/astra/inc/class-astra-dynamic-css.php on line 2465

There has been a critical error on this website.

Hey there @maryamsbakery!
Check out this KB article and let me know if it works.

1 Like

That article is fairly relevant, but it seems the error is in the file of your theme, not the WordPress core itself. So reinstalling the theme is probably necessary to fix this.

yea ik its my theme problem so reninstalling workpress wont help but if i reinstall my theme then ill lose all the progress of making my website using that theme

then why don’t you just try to add )
on that line 2465 and file

or check the part of the code above or below
to keep everything adequately closed

you can use monsta FTP ( file manager) from client area as editor

as well as copy the entire code and pass it through some PHP validator and fix it.

3 Likes

Good idea…
:thinking: Why did I not think of that?

1 Like

i did and then it said unexpected well it was blank. i will try putting it through a validator though. Thank You!

Another idea is to delete ALL (I mean ALL) the files from the /htdocs/wp-content/themes/astra and see if it works. If not, then you will probably have to reinstall WordPress.

Just revert to WP default theme will confirm it is a theme issue. It is good to always use a child theme.
Anytime a theme update will wipe out all customisation made to the theme. Child theme should maintain all the changes

@maryamsbakery
compare your code with the original here

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.