Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 14, 20222 yr 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
August 14, 20222 yr 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?
August 14, 20222 yr 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....
August 15, 20222 yr Community Expert Please ensure you are using the PHP version you wish for us to look into the issue on
August 15, 20222 yr Author Please ensure you are using the PHP version you wish for us to look into the issue on I'll do that...
August 15, 20222 yr Community Expert Please let us know as soon as you have that, and have something logged we can look at
August 15, 20222 yr Author I have already switched back to PHP 8.1.9 I will watch and let you know Thx
August 15, 20222 yr 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
August 15, 20222 yr Community Expert Solution I have created a ticket on this for you, so we can look closer at this
August 15, 20222 yr Author I have created a ticket on this for you, so we can look closer at this Thx
August 17, 20222 yr 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)
August 17, 20222 yr 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
August 17, 20222 yr 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....
August 26, 20222 yr 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 August 26, 20222 yr by Myr
August 29, 20222 yr 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
August 29, 20222 yr 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 August 29, 20222 yr by Myr
August 29, 20222 yr 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.