Monday, 03 October 2022
  11 Replies
  2.1K Visits
0
Votes
Undo
I have a number of Joomla 3 and Joomla 4 websites and PHP 8. Creating a new event results in this error message
version_compare(): Argument #3 ($operator) must be a valid comparison operator


Thank you and kind regards
Chris
2 years ago
·
#228569
Accepted Answer
0
Votes
Undo
It was the Image Slider Module (image swoop)...
I exchanged the module for a new slide module and it's working again.
Thanks for your support.
2 years ago
·
#227905
0
Votes
Undo
Can you enable Joomla debug mode so we can see where this is being incorrectly used

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!

2 years ago
·
#227930
0
Votes
Undo
This is being displayed when debug mode is enabled
Fehler_ 0 version_compare()_ Argument 3 ($operator) must be a valid comparison.png
2 years ago
·
#227944
0
Votes
Undo
geraint you have a space after the lt in the third operand on this line.

Also, I noticed a number of version_compares for PHP_VERSION of 5.3 where the comparison operator is not present. This is OK based on what is allowed however you might consider changing these for consistency. I haven't looked at RSVP.
2 years ago
·
#227947
0
Votes
Undo
thanks skurvish - that is indeed the problem. I'll fix it for the next release (tomorrow probably)

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!

2 years ago
·
#228339
0
Votes
Undo
Hello there,
I have a Problem with my Joomla 3.10.11 page - JEVents 3.6.43 and PHP 8.

When I use 7.X everything is fine, when I change to 8 there ist only a note:
count(): Argument #1 ($value) must be of type Countable|array, int given

How can I fix this?

Thanks for Help!
K
2 years ago
·
#228341
0
Votes
Undo
Please can you :
1. Enable Joomla debug mode
2. Recreate the problem
3. Give us the full context of the error - i.e. what you are doing to create the problem and also what the debug output tells you about the file where the problem arises

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!

2 years ago
·
#228357
0
Votes
Undo
Thanks - here what I did:

updatedet JEvents -

On PHP 7 there is the debug info:

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/11/d470601799/htdocs/cms2017/plugins/jevents/jevfiles/jevfiles.php on line 1200

When I switch to PHP 8 there is just a blanc screen (on all the pages with JEvents AND the index.php!!!) with the info:
count(): Argument #1 ($value) must be of type Countable|array, int given


Nothing else.
2 years ago
·
#228369
0
Votes
Undo
KKunz Is your version of the standard images and files addon up to date? There is no use of the count() function near line 1200 of jevfiles.php

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!

2 years ago
·
#228376
0
Votes
Undo
Thanks for the hint! I updated all the plugins - and the JEvents Pages work now :D
strangely the error stays on the index page though... which wasn't the case before..
count(): Argument #1 ($value) must be of type Countable|array, int given


PHP Version : 7.4.32
MySQL Version : 5.7.38-log
Server Information : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : Yes
Max Input Vars ? : 5000
Club code set? : Yes
User Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
Joomla : 3.10.11
component_com_jevents : 3.6.43
component_com_jce : 2.9.32
module_mod_jevents_cal : 3.6.43
module_mod_jevents_categories : 3.6.2
module_mod_jevents_custom : 3.6.43
module_mod_jevents_dynamiclegend : 3.6.4
module_mod_jevents_filter : 3.6.43
module_mod_jevents_latest : 3.6.43
module_mod_jevents_legend : 3.6.43
module_mod_jevents_switchview : 3.6.43
plugin_actionlog_jevents : 3.6.43 (not enabled)
plugin_content_jevents : 3.6.43
plugin_finder_jevents : 3.6.43
plugin_installer_jeventsinstaller : 3.6.43
plugin_jevents_jevcustomfields : 3.7.6
plugin_jevents_jevfiles : 3.10.7
plugin_search_eventsearch : 3.6.43
plugin_system_gwejson : 3.6.43
2 years ago
·
#228552
0
Votes
Undo
If you can enable Joomla debug mode it would tell you where the

"count(): Argument #1 ($value) must be of type Countable|array, int given"

error is coming from

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!

2 years ago
·
#228569
Accepted Answer
0
Votes
Undo
It was the Image Slider Module (image swoop)...
I exchanged the module for a new slide module and it's working again.
Thanks for your support.
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.