SMen Posted November 15, 2022 Share Posted November 15, 2022 I read a similar post regarding an error on older images and a null, however, there was no follow-up on that report. I have hundreds of categories and albums and tens of thousands of images. This has been a recent recurring error in seemingly older images, affecting a few in a category or album, but not all. I am not competent at reading what the error is trying to tell me. Perhaps it is a setting I can adjust to correct, or is it something that requires further investigation? Thank you for any help.... Details TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given (0) #0 /var/www/vhosts/xyz.com/httpdocs/system/Dispatcher/Controller.php(118): IPS\gallery\modules\front\gallery\_view->manage() #1 /var/www/vhosts/xyz.com/httpdocs/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #2 /var/www/vhosts/xyz.com/httpdocs/applications/gallery/modules/front/gallery/view.php(65): IPS\Content\_Controller->execute() #3 /var/www/vhosts/xyz.com/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\gallery\modules\front\gallery\_view->execute() #4 /var/www/vhosts/xyz.com/httpdocs/index.php(13): IPS\_Dispatcher->run() #5 {main} Backtrace #0 /var/www/vhosts/xyz.com/httpdocs/init.php(1029): IPS\_Log::log() #1 [internal function]: IPS\IPS::exceptionHandler() #2 {main} Link to comment Share on other sites More sharing options...
Jim M Posted November 15, 2022 Share Posted November 15, 2022 We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you. Link to comment Share on other sites More sharing options...
SMen Posted November 15, 2022 Author Share Posted November 15, 2022 10 minutes ago, Jim M said: We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you. Thank you. I have updated the new server information. Link to comment Share on other sites More sharing options...
Jim M Posted November 15, 2022 Share Posted November 15, 2022 Please be advised I have transferred this to a ticket for you. Please watch your email for further correspondence. Link to comment Share on other sites More sharing options...
Solution Richard Arch Posted November 15, 2022 Solution Share Posted November 15, 2022 @SMen @Jim M I've had the very same error trace also with some old images last week or so. It turned out that a column contained the string null instead of being null. I've no idea what caused it but our forum was upgraded from v2 to v4 back in 2019, I assumed something went wrong but maybe the latest version is using the "image_metadata" in a different way. This sql will identify if its the same issue, it return 187 records in my case: SELECT * FROM `gallery_images` where image_metadata='null'; The fix in my case was to update them to null. Link to comment Share on other sites More sharing options...
SMen Posted November 15, 2022 Author Share Posted November 15, 2022 24 minutes ago, Richard Arch said: @SMen @Jim M I've had the very same error trace also with some old images last week or so. It turned out that a column contained the string null instead of being null. I've no idea what caused it but our forum was upgraded from v2 to v4 back in 2019, I assumed something went wrong but maybe the latest version is using the "image_metadata" in a different way. This sql will identify if its the same issue, it return 187 records in my case: SELECT * FROM `gallery_images` where image_metadata='null'; The fix in my case was to update them to null. THANK YOU! 1406 found for me. Updated all and error seems to be resolved. Link to comment Share on other sites More sharing options...
Richard Arch Posted November 15, 2022 Share Posted November 15, 2022 Your welcome. Not just me then, I wonder what caused it. Did it fix your other error, stepping through images? Link to comment Share on other sites More sharing options...
SMen Posted November 15, 2022 Author Share Posted November 15, 2022 3 minutes ago, Richard Arch said: Your welcome. Not just me then, I wonder what caused it. Did it fix your other error, stepping through images? No, I checked right away... but that seems to be a different issue. Link to comment Share on other sites More sharing options...
Richard Arch Posted November 15, 2022 Share Posted November 15, 2022 9 minutes ago, SMen said: No, I checked right away... but that seems to be a different issue. Ok, pity. We will leave that one for the experts. Link to comment Share on other sites More sharing options...
Recommended Posts