Jump to content

Featured Replies

Posted

When a guest clicks on an image this error message shows up on admin and front end

TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given (0)
#0 /home/media/public_html/forum/system/Dispatcher/Controller.php(118): IPS\gallery\modules\front\gallery\_view->manage()
#1 /home/media/public_html/forum/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute()
#2 /home/media/public_html/forum/applications/gallery/modules/front/gallery/view.php(65): IPS\Content\_Controller->execute()
#3 /home/media/public_html/forum/system/Dispatcher/Dispatcher.php(153): IPS\gallery\modules\front\gallery\_view->execute()
#4 /home/media/public_html/forum/index.php(13): IPS\_Dispatcher->run()
#5 {main}

Backtrace

#0 /home/media/public_html/forum/init.php(1029): IPS\_Log::log('TypeError: coun...', 'uncaught_except...')
#1 [internal function]: IPS\IPS::exceptionHandler(Object(TypeError))
#2 {main}

What would be the problem????

IPB version: 4.7.1 PHP version 8.1.9

Solved by Marc

Go to solution
  • Community Expert

Unfortunately, I am not seeing any errors on your community since the 8th and are unrelated to what you mentioned here. Has this since been resolved?

  • Author
 

Unfortunately, I am not seeing any errors on your community since the 8th and are unrelated to what you mentioned here. Has this since been resolved?

This is when I switched to PHP 8.1 comes up....

I rolled back to PHP 7.4 and clean the error log to see if anything comes up....

  • Community Expert

Please ensure you are using the PHP version you wish for us to look into the issue on

  • Author
 

Please ensure you are using the PHP version you wish for us to look into the issue on

I'll do that...

  • Community Expert

Please let us know as soon as you have that, and have something logged we can look at

  • Author

I have already switched back to PHP 8.1.9

I will watch and let you know

Thx

  • Author
 

Please let us know as soon as you have that, and have something logged we can look at

Ok @Marc Stridgen

New error log just came in.... error is on the log file

TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given (0)
#0 /home/media/public_html/forum/system/Dispatcher/Controller.php(118): IPS\gallery\modules\front\gallery\_view->manage()
#1 /home/media/public_html/forum/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute()
#2 /home/media/public_html/forum/applications/gallery/modules/front/gallery/view.php(65): IPS\Content\_Controller->execute()
#3 /home/media/public_html/forum/system/Dispatcher/Dispatcher.php(153): IPS\gallery\modules\front\gallery\_view->execute()
#4 /home/media/public_html/forum/index.php(13): IPS\_Dispatcher->run()
#5 {main}

Backtrace

#0 /home/media/public_html/forum/init.php(1029): IPS\_Log::log('TypeError: coun...', 'uncaught_except...')
#1 [internal function]: IPS\IPS::exceptionHandler(Object(TypeError))
#2 {main}

Thank you for your help

  • Community Expert
  • Solution

I have created a ticket on this for you, so we can look closer at this

  • Author
 

I have created a ticket on this for you, so we can look closer at this

Thx

Hello,

I get similar error since I switched to PHP 8.1.2 (from 7.x)  (when me or one member check his account credit) :

TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given (0)
#0 /home/sites/w/site/www/system/Dispatcher/Controller.php(118): IPS\nexus\modules\front\clients\_credit->manage()
#1 /home/sites/w/site/www/applications/nexus/modules/front/clients/credit.php(49): IPS\Dispatcher\_Controller->execute()
#2 /home/sites/w/site/www/system/Dispatcher/Dispatcher.php(153): IPS\nexus\modules\front\clients\_credit->execute()
#3 /home/sites/w/site/www/index.php(13): IPS\_Dispatcher->run()
#4 {main}

But it's strange, I haven't this problem on my second community (same os/apache/php version and upgraded at the same time with same commands)

  • Community Expert
 

Hello,

I get similar error since I switched to PHP 8.1.2 (from 7.x)  (when me or one member check his account credit) :

TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given (0)
#0 /home/sites/w/site/www/system/Dispatcher/Controller.php(118): IPS\nexus\modules\front\clients\_credit->manage()
#1 /home/sites/w/site/www/applications/nexus/modules/front/clients/credit.php(49): IPS\Dispatcher\_Controller->execute()
#2 /home/sites/w/site/www/system/Dispatcher/Dispatcher.php(153): IPS\nexus\modules\front\clients\_credit->execute()
#3 /home/sites/w/site/www/index.php(13): IPS\_Dispatcher->run()
#4 {main}

But it's strange, I haven't this problem on my second community (same os/apache/php version and upgraded at the same time with same commands)

I have created a ticket for you on this

  • Author

my problem has been fixed by support team. Problem was specific to my forum from a previous upgrade left some problem metas on my database....

  • 2 weeks later...

I also seem to have a fair number of images (~1250) in my gallery with null (or a square) in the image_metadata database column.  It's throwing the same error above.

@Marc Stridgen, is that something you could assist me with please?

Edited by Myr

  • Community Expert
 

I also seem to have a fair number of images (~1250) in my gallery with null (or a square) in the image_metadata database column.  It's throwing the same error above.

@Marc Stridgen, is that something you could assist me with please?

Please disable 2 factor authentication, or provide answers in the notes in your client area

 

Please disable 2 factor authentication, or provide answers in the notes in your client area

It is in the notes in the client area with the other access information 

Edited by Myr

  • Community Expert

Please be advised I have moved this to a ticket to obtain further information from you. Please watch your email for further correspondence.

Recently Browsing 0

  • No registered users viewing this page.