Hi,
I integrated Ja Amazon S3 on my Joomla website (3.9.22).
I obtained this message :
Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/administrator/components/com_jaamazons3/jaamazons3.php on line 82
How can i resolve it ?
Regards,
jp
Warning : count () -- jaamazons3.php on line 82
May I know which PHP version are you using?
- Edited
I also have an error that looks like it.
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/administrator/components/com_jaamazons3/lib/aws/GuzzleHttp/Handler/CurlFactory.php on line 67, referer: http://xx.xx.xx.xx/administrator/index.php?option=com_jaamazons3&view=bucket
For me this occurs when trying to update the S3 files.
PHP version 7.4
- Edited
Try to open that file: administrator/components/com_jaamazons3/jaamazons3.php on line 82
Replace:
if (!count($sessionQueue)) {
With:
if (!is_countable($sessionQueue) && !count($sessionQueue)) {
Remember to backup this file first.
Thanks for your response.
The warning for com_jaamazons3/lib/aws/GuzzleHttp/Handler/CurlFactory.php on line 67
does not go away.
Should I implement the same "fix" on this file?
triplejaimy May I know which section you access to have that warning?
saguaros
For me this occurs when trying to update the S3 files.
"update s3 file list" in the list of the bucket display.
Actually, these warnings due to the new PHP version and it doesn't affect functions of S3 component, you can hide them by going to Global configuration and set 'Error Reporting' to None.
contact-joomlart Could you try my suggestion above?
Hi, i change but now i have this warning : Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/administrator/components/com_jaamazons3/lib/aws/GuzzleHttp/Handler/CurlFactory.php on line 67
Do you have any idea ?
Regards,
Yes, it's works but i have a new warning : Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/administrator/components/com_jaamazons3/lib/aws/GuzzleHttp/Handler/CurlFactory.php on line 67
When Update S3 list, i have the warning above
Do you have any idea ?
Regards,
- Edited
contact-joomlart
Hi,
This is new JA Amazon S3 package. Could you give it a try?
https://drive.google.com/file/d/1myMOoLOXO8c5K5uOJc8CjRMP1CXDeL_c/view?usp=sharing