forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: Hanna. on September 24, 2022, 12:47:17 pm

Title: Unable to create album
Post by: Hanna. on September 24, 2022, 12:47:17 pm
Hi all - I'm stuck with an unusual issue today. I'm unable to create a new album to my gallery @ https://bit.ly/3LD6T6R

Recently I migrated a couple of sites, so I'm sure there could be some crappy code somewhere left out or maybe even database related. Site is currently running PHP 8.0. I deactivated plugins (only have the online stats one right now) but no luck. July 30, 2022 was the last time I was able to successfully create albums + add photos.

When I go to Update Databse it gives this error:

Code: [Select]
Fatal error: Uncaught TypeError: fread(): Argument #1 ($stream) must be of type resource, bool given in /home/u501720888/domains/kristindaily.org/public_html/gallery/update.php:478 Stack trace: #0 /home/u501720888/domains/kristindaily.org/public_html/gallery/update.php(478): fread() #1 /home/u501720888/domains/kristindaily.org/public_html/gallery/update.php(405): update_tables() #2 /home/u501720888/domains/kristindaily.org/public_html/gallery/update.php(151): start_update() #3 {main} thrown in /home/u501720888/domains/kristindaily.org/public_html/gallery/update.php on line 478
Thanks in advance.
Title: Re: Unable to create album
Post by: ron4mac on September 24, 2022, 01:30:26 pm
You are likely missing at least one file. Run Check Version with Only show potential errors to see where the issues are.
If your site does not have any modified core files, you could use the CPG installer stub (https://forum.coppermine-gallery.net/index.php/topic,79168.msg383813.html#msg383813) to make sure you have all the files and upgrade the database.
Title: Re: Unable to create album
Post by: Hanna. on September 24, 2022, 03:08:45 pm
Wow, that definitely solved the issue! I should run this script on all my installations!