Comments (5)
Thank you for reporting the issue!
With the provided information, I can not reproduce the error. Can you provide more information, e.g. the log in the PHP error log file or the complete call stack, which is usually shown after the error message?
What did you do immediately before the error occured?
The version 4.1.0 is outdated. You should install the latest version 4.1.5 of the plugin. You should be able to find the latest version with the Joomla update management system and install it from there.
With an internet search, I could find the error message twice. In both of these cases, the error was related to the plugin "edsanimate", which is not running with PHP8. Could you check for this plugin in your Joomla installation?
https://forum.joomla.org/download/file.php?id=134081&mode=view
https://forum.joomla.de/thread/17072-php7-4-auf-8-1-zeigt-fehler-0-version-compare-argument-3-operator-must-be-a-vali/
from joomla_plugin_sexypolling_reloaded.
Hi
My site is running on PHP 8.2
the plug in edsanimate is not present
And I have version 4.1.5
However, I have dropped back to PHP8 and the sexy polling is now working fine
from joomla_plugin_sexypolling_reloaded.
Thank you for the additional information.
I can reproduce the error now, if switching to PHP 8.1. I have no environment available to test PHP 8.2; but should be the same issue.
Reproduced with version 4.1.5, Joomla 3.10.11, PHP 8.1.13 after opening a sexy polling page in the backend.
Error message:
0 version_compare(): Argument #3 ($operator) must be a valid comparison operator
/www/htdocs/v134494/administrator/components/com_sexypolling/sexypolling.php:26
Call stack:
Function Location
1 () JROOT/administrator/components/com_sexypolling/sexypolling.php:26
2 version_compare() JROOT/administrator/components/com_sexypolling/sexypolling.php:26
3 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
4 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
5 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101
6 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159
7 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:225
8 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/index.php:51
from joomla_plugin_sexypolling_reloaded.
Since PHP 8.1 is more strict on the version_compare function, it created an error. With the commited adaptions in the code, it now runs fine with PHP 8.1; hopefully also on 8.2.
The bugfix will be included in the next release, which is planned in the next days.
from joomla_plugin_sexypolling_reloaded.
Bugfix included in newly released version 4.1.6
from joomla_plugin_sexypolling_reloaded.
Related Issues (20)
- No changelog link shown for plugin Button - Sexypolling Polls
- Ínvalid token (Joomla 5.1.0) HOT 9
- Polls not working/showing HOT 2
- Bug report: All location information shows as "Unknown" in Votes HOT 6
- Confirmation of technical requirements HOT 4
- End date of poll is not correctly handled if option "Show Results During Poll" is set to "no" HOT 1
- Inserting a poll into an article using shortcode [sexypolling id="id"] HOT 27
- Setting for poll width 100% is not used; instead fixed value for poll width is used
- Creating a new poll based on the settings of an existing poll HOT 2
- Add a button to the article editor in order to embed polls into articles HOT 2
- Issue with "Show Results During Poll" to "no” HOT 4
- Poll animation is shown although setting "Show Results During Poll" is set to "No"
- Date defaults to 2024-01-11 if an empty start date or end date is saved in poll settings
- Warning message about start time of vote shows wrong time delta until vote will start HOT 11
- No warning message is shown if user votes again and vote is rejected due to voting period setting HOT 1
- No animation of voted poll although setting "Autoanimate For Voted Polls" is set to "yes" HOT 1
- Plugin name not translated if plugin is deactivated or after new installation
- PHP error if opening the statistics for a poll: "An error has occurred. 0 Class "JHtmlSidebar" not found"
- SQL error when adding count to field Insert votes in Answers HOT 3
- PHP error in template view: com_sexypolling/helpers/footer.php: No such file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joomla_plugin_sexypolling_reloaded.