Jump to content

4.7.4 Gallery Recurring Error


Go to solution Solved by Richard Arch,

Recommended Posts

Posted

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}

 

Posted

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. 

 

Posted
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.

  • Solution
Posted

@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.

Posted
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.

 

Posted
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.

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...