You need to be logged in to view a user's profile.
  1. ugenda
    Gold Member
  2. JEvents 3.4 (Free Access)
  3. Friday, 07 October 2022
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.
Accepted Answer
Accepted Answer Pending Moderation
0
Votes
Undo
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
geraint
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
Please try this version - it resolved the PHP 8.x issue and will be the basis of a new release tomorrow.
Attachments (1)
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
Accepted Answer Pending Moderation
0
Votes
Undo
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.
geraint
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
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
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
Accepted Answer Pending Moderation
0
Votes
Undo
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}
Accepted Answer Pending Moderation
0
Votes
Undo
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.
Accepted Answer Pending Moderation
0
Votes
Undo
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/http://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
Accepted Answer Pending Moderation
0
Votes
Undo
I was trying to make a new event, when I got the error.
geraint
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
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
Attachments (1)
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
muziek
Silver Member
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks, upgrade on JEvents is working for me. (Joomla 3.10.11)
Accepted Answer Pending Moderation
0
Votes
Undo
Also thumbs up from me. It is working with PHP 8.1 and Joomla 3.10.11.
Thank You :-)
Accepted Answer Pending Moderation
0
Votes
Undo
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
Accepted Answer Pending Moderation
0
Votes
Undo
The package published yesterday works fine with Joomla 4.2.3 and PHP.

Thank you very much and kind regards
Chris
geraint
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
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.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!