By ugenda on Friday, 07 October 2022
Replies 18
Likes 0
Views 853
Votes 0
I've updated JEvents to the latest version (3.6.42). Now I get an error when trying to edit or create an event:

0 version_compare(): Argument #3 ($operator) must be a valid comparison operator


It seems to have to do something with the edit form override. The default template works fine. Is there anything that has changed so my template doesn't work anymore?

Edit: it has some the to do with the lay-out override. If I leave the lay-out for editing events empty, it will use the default. This works fine. If I change anything to the lay-out, i.e. just adding a x, the lay-out is broken when rendering.
This issue apparently has to do with PHP 8.0 or 8.1. I am getting this error message too when creating a new event. The temporary solution is: switch back to PHP 7.4

Kind regards
Chris
·
Saturday, 08 October 2022 07:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Please try this version - it resolved the PHP 8.x issue and will be the basis of a new release tomorrow.
·
Monday, 17 October 2022 17:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Does not work here with PHP 8.1. Error
0 version_compare(): Argument #3 ($operator) must be a valid comparison operator


With PHP 7.4 it's ok.
·
Monday, 17 October 2022 17:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you enable Joomla debug mode so I can see where the error is being called? I had found one potential problem area but it looks as though there may be another
·
Monday, 17 October 2022 17:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Error reporting set to «Maximum»

Deprecated: strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /home/sites/4a/d/d2cdc27060/public_html/libraries/src/MVC/Model/ListModel.php on line 543

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/sites/4a/d/d2cdc27060/public_html/components/com_jevents/libraries/dbmodel.php on line 470

Deprecated: Function strftime() is deprecated in /home/sites/4a/d/d2cdc27060/public_html/components/com_jevents/libraries/jevdate.php on line 276

Debug mode

error - Uncaught Throwable of type ValueError thrown with message "version_compare(): Argument #3 ($operator) must be a valid comparison operator". Stack trace: #0 [ROOT]/administrator/components/com_jevents/views/abstract/abstract.php(491): version_compare('4.2.3', '4.0', 'lt ') #1 [ROOT]/administrator/components/com_jevents/views/icalevent[TMP]l/edit_uikit.php(753): JEventsAbstractView->loadEditFromTemplate('icalevent.edit_...', Object(jIcalEventDB), 0, Array, Array, Array) #2 [ROOT]/libraries/src/MVC/View/HtmlView.php(410): include('/home/sites/4a/...') #3 [ROOT]/administrator/components/com_jevents/views/icalevent[TMP]l/edit.php(26): Joomla\CMS\MVC\View\HtmlView->loadTemplate(NULL) #4 [ROOT]/libraries/src/MVC/View/HtmlView.php(410): include('/home/sites/4a/...') #5 [ROOT]/libraries/src/MVC/View/HtmlView.php(203): Joomla\CMS\MVC\View\HtmlView->loadTemplate(NULL) #6 [ROOT]/administrator/components/com_jevents/views/abstract/abstract.php(131): Joomla\CMS\MVC\View\HtmlView->display(NULL) #7 [ROOT]/administrator/components/com_jevents/controllers/icalevent.php(511): JEventsAbstractView->display() #8 [ROOT]/libraries/src/MVC/Controller/BaseController.php(672): AdminIcaleventController->edit() #9 [ROOT]/administrator/components/com_jevents/jevents.php(268): Joomla\CMS\MVC\Controller\BaseController->execute('edit') #10 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/home/sites/4a/...') #11 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}('/home/sites/4a/...') #12 [ROOT]/libraries/src/Component/ComponentHelper.php(355): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() #13 [ROOT]/libraries/src/Application/AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent('com_jevents') #14 [ROOT]/libraries/src/Application/AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication->dispatch() #15 [ROOT]/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\AdministratorApplication->doExecute() #16 [ROOT]/administrator/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute() #17 [ROOT]/administrator/index.php(32): require_once('/home/sites/4a/...') #18 {main}
·
Monday, 17 October 2022 17:45
·
0 Likes
·
0 Votes
·
0 Comments
·
I have got same error on PHP 8.1. Using Jevents 3.6.42.
When going back to jevents 3.6.39 I can edit and make new events without error and still using PHP 8.1.
·
Monday, 17 October 2022 18:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Just installed jevents 3.6.43dev and got this error:
Hope it can help :-)

An error has occurred.
0 version_compare(): Argument #3 ($operator) must be a valid comparison operator
/customers/a/c/9/site.dk/httpd.www/administrator/components/com_jevents/views/abstract/abstract.php:491
Call stack
# Function Location
1 () JROOT/administrator/components/com_jevents/views/abstract/abstract.php:491
2 version_compare() JROOT/administrator/components/com_jevents/views/abstract/abstract.php:491
3 JEventsAbstractView->loadEditFromTemplate() JROOT/administrator/components/com_jevents/views/icalevent/tmpl/edit_uikit.php:753
4 include() JROOT/libraries/src/MVC/View/HtmlView.php:701
5 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_jevents/views/icalevent/tmpl/edit.php:26
6 include() JROOT/libraries/src/MVC/View/HtmlView.php:701
7 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:230
8 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_jevents/views/abstract/abstract.php:131
9 JEventsAbstractView->display() JROOT/administrator/components/com_jevents/controllers/icalevent.php:511
10 AdminIcaleventController->edit() JROOT/libraries/src/MVC/Controller/BaseController.php:702
11 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_jevents/jevents.php:268
12 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
13 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101
15 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159
16 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:225
17 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/index.php:51
·
Monday, 17 October 2022 18:50
·
0 Likes
·
0 Votes
·
0 Comments
·
I was trying to make a new event, when I got the error.
·
Monday, 17 October 2022 18:53
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm really embarrassed to say that the package I uploaded yesterday was built BEFORE I'd fixed the problem - more haste less speed . This version definitely resolves the issue at this point
·
Tuesday, 18 October 2022 09:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, upgrade on JEvents is working for me. (Joomla 3.10.11)
·
Tuesday, 18 October 2022 17:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Also thumbs up from me. It is working with PHP 8.1 and Joomla 3.10.11.
Thank You :-)
·
Tuesday, 18 October 2022 18:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Not a thumbs up from me. I am currently running Joomla version, 3.10.11 and running JEvents v3.6.43rc1. Any help will be appreciated.

Thank you
·
Tuesday, 18 October 2022 20:04
·
0 Likes
·
1 Votes
·
0 Comments
·
The package published yesterday works fine with Joomla 4.2.3 and PHP.

Thank you very much and kind regards
Chris
·
Wednesday, 19 October 2022 07:20
·
0 Likes
·
0 Votes
·
0 Comments
·
ssteinel
Not a thumbs up from me. I am currently running Joomla version, 3.10.11 and running JEvents v3.6.43rc1. Any help will be appreciated.


Can you enable Joomla debug mode and give me a screenshot of the errors you get please so we can see what file and line number is causing the problem.
·
Wednesday, 19 October 2022 09:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Not a thumbs up from me. I am currently running Joomla version, 3.10.11 and running JEvents v3.6.43rc1. Any help will be appreciated.


Can you enable Joomla debug mode and give me a screenshot of the errors you get please so we can see what file and line number is causing the problem.


I hate to be the newb here but I have found out how to enable the debug mode but where do I find the errors?

Sorry
·
Monday, 07 November 2022 14:45
·
0 Likes
·
0 Votes
·
0 Comments
·
I may have figured out how to run debug, can you send me a link that I can send my php error log to?
·
Monday, 07 November 2022 15:55
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm sorry for being so slow to reply to this - it didn't appear in my notifications for some reason

I've made this post private so you can attach a screenshot without the content being public
·
Thursday, 17 November 2022 12:36
·
0 Likes
·
0 Votes
·
0 Comments
·
p.s. I can't make it private since its someone else's thread. Can you start a new topic describing your problem and attach the screenshot there. Remember to click the 'private post' checkbox
·
Thursday, 17 November 2022 12:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post