media Posted August 14, 2022 Posted August 14, 2022 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
Jim M Posted August 14, 2022 Posted August 14, 2022 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?
media Posted August 14, 2022 Author Posted August 14, 2022 2 hours ago, Jim M said: 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....
Marc Posted August 15, 2022 Posted August 15, 2022 Please ensure you are using the PHP version you wish for us to look into the issue on
media Posted August 15, 2022 Author Posted August 15, 2022 2 hours ago, Marc Stridgen said: Please ensure you are using the PHP version you wish for us to look into the issue on I'll do that...
Marc Posted August 15, 2022 Posted August 15, 2022 Please let us know as soon as you have that, and have something logged we can look at
media Posted August 15, 2022 Author Posted August 15, 2022 I have already switched back to PHP 8.1.9 I will watch and let you know Thx
media Posted August 15, 2022 Author Posted August 15, 2022 54 minutes ago, Marc Stridgen said: 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
Solution Marc Posted August 15, 2022 Solution Posted August 15, 2022 I have created a ticket on this for you, so we can look closer at this
media Posted August 15, 2022 Author Posted August 15, 2022 1 hour ago, Marc Stridgen said: I have created a ticket on this for you, so we can look closer at this Thx
Droidz Posted August 17, 2022 Posted August 17, 2022 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)
Marc Posted August 17, 2022 Posted August 17, 2022 59 minutes ago, Droidz said: 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
media Posted August 17, 2022 Author Posted August 17, 2022 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.... Marc and Daniel F 2
Myr Posted August 26, 2022 Posted August 26, 2022 (edited) 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, 2022 by Myr
Marc Posted August 29, 2022 Posted August 29, 2022 On 8/26/2022 at 8:42 AM, Myr said: 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
Myr Posted August 29, 2022 Posted August 29, 2022 (edited) 5 hours ago, Marc Stridgen said: 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, 2022 by Myr
Jim M Posted August 29, 2022 Posted August 29, 2022 Please be advised I have moved this to a ticket to obtain further information from you. Please watch your email for further correspondence.
Recommended Posts