grappler / polylang-slug

A unique post slug within the language in Polylang. This allows for a page to have same/identical slug in multiple languages.
275 stars 84 forks source link

Please upgrade to PHP 8.1, 8.2 #54

Closed iWpress closed 1 year ago

iWpress commented 1 year ago

Hello, I am so used to your plugin that I have a problem. Please upgrade to PHP 8.1, 8.2.

------ Error PHP 8.1.16
Fatal error: Uncaught ValueError: version_compare(): 
Argument #3 ($operator) must be a valid comparison operator in 
/home/awmdbox/iwpress.eu/wp-content/plugins/polylang-slug-master/polylang-slug.php:31 
Stack trace: #0 /home/awmdbox/iwpress.eu/wp-content/plugins/polylang-slug-master/polylang-slug.php(31): 
version_compare('3.3.1', '1.7', '=<') 
#1 /home/awmdbox/iwpress.eu/wp-admin/includes/plugin.php(2314): include_once('/home/awmdbox/i...') 
#2 /home/awmdbox/iwpress.eu/wp-admin/plugins.php(192): plugin_sandbox_scrape('polylang-slug-m...') 
#3 {main} thrown in /home/awmdbox/iwpress.eu/wp-content/plugins/polylang-slug-master/polylang-slug.php
 on line 31
------

Best Regards.

SeoDeveloper01 commented 1 year ago

Just update the plugin. This bug was fixed in the latest version 0.2.3.

iWpress commented 1 year ago

Sorry to distract you with my stupidity. I was sure the plugin was up to date. Checked on the local server, the plugin works without this error. Now I updated the hosting once again, it also works. I recently updated the site from a backup, maybe there was an old plugin there. Thank you very much for your help. Regards.