forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 upgrading => Topic started by: typomaniac on April 06, 2022, 06:57:21 pm

Title: Update Woes
Post by: typomaniac on April 06, 2022, 06:57:21 pm
Hi, I have a self-made dilemma for which I take responsibility. I currently have version 1.5.40 and is showing  fatal errors when I try to open the script. Is it possible to update with the latest version and fix things? I know I have to get up to date and holding my breath. The database is intact and the images are still in place. I almost went for it but decided to ask first. I’m searching out info in the readme file at this time. I guess I'm just looking for a "reassuring shove".



Title: Re: Update Woes
Post by: ron4mac on April 06, 2022, 10:58:15 pm
Follow the instructions here (https://forum.coppermine-gallery.net/index.php/topic,79013.msg383037.html#msg383037). Make sure to click on the button to run the update after all the files have been upgraded.
Title: Re: Update Woes
Post by: typomaniac on April 07, 2022, 06:37:00 pm
I can't thank you enough for your help. I shouldn't get so worried about things. The update took only seconds and was a success.
Title: Re: Update Woes
Post by: typomaniac on April 07, 2022, 08:55:33 pm
All seemed to go well with the update and the page opened up with all the individual albums appearing with the thumbs included and random files at the bottom of the page appeared but, when I clicked on an album to open it up I got the following error (the letters “sir”stands for server directories removed):

Fatal error: Uncaught Error: Call to undefined function ctype_alpha() in sdr/include/inspekt.php:478 Stack trace: #0
sdr/include/inspekt/cage.php(287): Inspekt::isAlpha('227') #1
sdr/thumbnails.php(60): Inspekt_Cage->testAlpha('album') #2
{main} thrown in /sdr/include/inspekt.php on line 478

Something I noticed in the include/config.php file was that it said the db type was mysqli and the server dbtype is mysql, if that makes any difference.

The site in question is https://www.praisenpray.org/pics (https://www.praisenpray.org/pics)

I can find the lines in the files but I don't have a clue as to what is meant.
Title: Re: Update Woes
Post by: ron4mac on April 07, 2022, 10:28:13 pm
It would seem that the ctype extension is not being included in your PHP configuration. Depending on your hosting, you may be able to turn that on in a PHP configuration panel or you will have to have your hosting provider resolve it.
Title: Re: Update Woes
Post by: typomaniac on April 08, 2022, 01:21:19 am
I contacted the server host and they enabled ctype and the gallery came right to life. Once again I would like to thank you for all the help and hopefully no more problems. :) :) :) :) :)