Code Monkey home page Code Monkey logo

Comments (5)

Jefferson49 avatar Jefferson49 commented on September 26, 2024

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.

dedworthdog avatar dedworthdog commented on September 26, 2024

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.

Jefferson49 avatar Jefferson49 commented on September 26, 2024

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.

Jefferson49 avatar Jefferson49 commented on September 26, 2024

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.

Jefferson49 avatar Jefferson49 commented on September 26, 2024

Bugfix included in newly released version 4.1.6

from joomla_plugin_sexypolling_reloaded.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.