By crimle on Monday, 03 October 2022
Replies 11
Likes 0
Views 2.3K
Votes 0
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
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.
·
Wednesday, 16 November 2022 08:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you enable Joomla debug mode so we can see where this is being incorrectly used
·
Tuesday, 04 October 2022 16:05
·
0 Likes
·
0 Votes
·
0 Comments
·
This is being displayed when debug mode is enabled
Fehler_ 0 version_compare()_ Argument 3 ($operator) must be a valid comparison.png
·
Wednesday, 05 October 2022 12:59
·
0 Likes
·
0 Votes
·
0 Comments
·
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.
·
Thursday, 06 October 2022 11:36
·
0 Likes
·
0 Votes
·
0 Comments
·
thanks skurvish - that is indeed the problem. I'll fix it for the next release (tomorrow probably)
·
Thursday, 06 October 2022 15:40
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Wednesday, 02 November 2022 16:37
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Wednesday, 02 November 2022 18:09
·
0 Likes
·
0 Votes
·
0 Comments
·
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.
·
Thursday, 03 November 2022 09:01
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Thursday, 03 November 2022 14:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the hint! I updated all the plugins - and the JEvents Pages work now
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
·
Thursday, 03 November 2022 15:19
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Tuesday, 15 November 2022 16:05
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post