markaspot / mark-a-spot

Public Civic Issue Tracking and Crowdsourcing / Mapping Platform based on Drupal. Open311 Server and Client Software
http://mark-a-spot.com
55 stars 30 forks source link

Fatal error: Class 'Polygon\Polygon' not found in /home/d2idl/www/modules/contrib/markaspot_validation/src/Plugin/Validation/Constraint/ValidLatLonConstraintValidator.php on line 70 #56

Closed fishfree closed 6 years ago

fishfree commented 6 years ago

I test this distribution on simplytest.me, when I add a report, it shows error as below: Fatal error: Class 'Polygon\Polygon' not found in /home/d2idl/www/modules/contrib/markaspot_validation/src/Plugin/Validation/Constraint/ValidLatLonConstraintValidator.php on line 70 I also tried local install by following the instructions on the github readme. The same error!

markaspot commented 6 years ago

Thanks for reporting! This seems to be a duplicate of this issues on d.o.

re031014 commented 6 years ago

I get the following error when submitting a status report. I made a mistake before and did not actually save clearing the WKT field. After clearing, the service request is able to save without a problem. Regardless, the polygon check failed with the default polygon defined.

Error: Class 'Polygon\Polygon' not found in Drupal\markaspot_validation\Plugin\Validation\Constraint\ValidLatLonConstraintValidator::polygonCheck() (line 52 of /var/www/html/Athens311.com/public_html/markaspotUpdated/markaspot/web/modules/contrib/markaspot_validation/src/Plugin/Validation/Constraint/ValidLatLonConstraintValidator.php)

markaspot commented 6 years ago

Could reproduce this via simplytest.me. I will try to dig deeper into this.

markaspot commented 6 years ago

Please comment, if this error still occurs. This should be fixed with the commit above, tagged rc5. composer update your installation.