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

    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

      triplejaimy

      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?

        saguaros
        For me this occurs when trying to update the S3 files.
        "update s3 file list" in the list of the bucket display.

          triplejaimy

          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.

          15 days later

          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,

          saguaros

          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,

            a month later
            Write a Reply...
            You need to Login to view replies.