Geolocation immediate breaks website

By: Jim Bynum | Asked: 11/24/2022
ForumsCategory: General questionsGeolocation immediate breaks website
Jim BynumJim Bynum asked 2 years ago

Not sure what is going on with Geolocation. I have a couple of websites using Formidable and whenever I try to activate the plugin it immediately breaks all of my sites. I do use Nicepage for all of my templating, but I'm not sure how it would cause a critical error. I have to go into safe mode and deactivate the plugin for the site to come back.

This is the error message I get when in safe mode.

This plugin failed to load properly and is paused during recovery mode.

An error of type E_PARSE was caused in line 108 of the file /phxtransportation/wp-content/plugins/formidable-geo/classes/controllers/FrmGeoAppController.php. Error message: syntax error, unexpected ')'

Rob LeVineRob LeVine replied 2 years ago

What do the logs (either WordPress or browser) display for errors?

Jim BynumJim Bynum replied 2 years ago

<p>This plugin failed to load properly and is paused during recovery mode. An error of type E_PARSE was caused in line 108 of the file /phxtransportation/wp-content/plugins/formidable-geo/classes/controllers/FrmGeoAppController.php. Error message: syntax error, unexpected ')'</p>

Rob LeVineRob LeVine replied 2 years ago

Is it possible your PHP version changed behind the scenes? I suggest you find out what version is being used. I have no idea if that's the issue, but it's worth looking into.

Rob LeVineRob LeVine replied 2 years ago

Also strange is that's not the path that I have for my geolcation addon installation. Mine is /plugins/formidable-geolocation

Jim BynumJim Bynum replied 2 years ago

Yeah, I have no idea. I didn't do anything but click the Install button.

Rob LeVineRob LeVine replied 2 years ago

The only two suggestions I have are: 1. Check your PHP version and 2. Navigate to that file and look at the line it's crapping out on and see if tells a story.

Rob LeVineRob LeVine replied 2 years ago

I think I know why the paths are different. I have the plugin Formdiable Geolocation, rather than the Geolocation addon from formidable. https://formidablegeolocation.com/

Jim BynumJim Bynum replied 2 years ago

Correct. I have that on one of my sites and it works perfectly. I was hoping the built-in one would work for my others so I didn't have to buy another license, but for some reason I haven't been able to install it without the site breaking.

2 Answers
Best Answer
Jim BynumJim Bynum answered 2 years ago
There was a comma after the false statement which was causing the syntax error. The website is working after removing it now.
Attachments
Steven MSteven M answered 2 years ago
This is still an issue 7 months later! I wonder why Formidable fixed this one?

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right