Website link: /
error message:
Parse error: syntax error, unexpected '[' in /home/belmont.perth.anglican/htdocs/wp-content/plugins/photo-gallery/framework/WD_BWG_Theme.php on line 1092
Hi, i am new to wordpress. The page was working for a few months. Recently receive this error message. Does anyone know how to reset the template for the page. i dont mind starting from zero. it is for a church website? thanks
cheers angeline
Website link: http://belmont.perth.anglican/
error message:
Parse error: syntax error, unexpected '[' in /home/belmont.perth.anglican/htdocs/wp-content/plugins/photo-gallery/framework/WD_BWG_Theme.php on line 1092
Hi, i am new to wordpress. The page was working for a few months. Recently receive this error message. Does anyone know how to reset the template for the page. i dont mind starting from zero. it is for a church website? thanks
cheers angeline
Share Improve this question edited Apr 2, 2020 at 7:24 Chetan Vaghela 2,4084 gold badges10 silver badges16 bronze badges asked Apr 2, 2020 at 1:41 Angie ChiaAngie Chia 1 1- Hi fellow West Australian. I checked if your wp-admin was available for login and it wasn't due to the error. Do you have access to the back-end database through a tool such phpmyadmin or similar. You might have to disable the photo gallery plugin manually. Junaid's answer should also get you going again. – Admiral Noisy Bottom Commented Apr 2, 2020 at 3:11
1 Answer
Reset to default 0There's an error in the plugin Photo Gallery that your site is using. In order to fix this, you'll have to deactivate or delete this plugin. In order to deactivate or delete this plugin, please follow the following steps:
- Log in to your website's cPanel or use FTP to access your website's files.
- Navigate to
/wp-content/plugins/
- Look for directory called
photo-gallery
and rename it to something else.
Now, that faulty plugin will be deactivated and your website should work properly considering nothing else is broken.
To get back the gallery plugin, I recommend you backup and delete the directory you just renamed. Then go to /wp-admin
of your website > Plugins > New and search for "Photo Gallery by 10Web". Install the plugin with title "Photo Gallery by 10Web – Mobile-Friendly Image Gallery" and you should have your gallery plugin back.
While doing so, I recommend you update all the plugins and the core WordPress while you are at it. To do so:
- Backup your website.
- Go to
/wp-admin/
> Dashboard > Updates to update WordPress, plugins and themes.
I hope this will solve your issues and if you have any questions regarding this solution, you can ask in comments to this answer.