Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fatal Error suddenly showing up  (Read 578 times)

0 Members and 1 Guest are viewing this topic.

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • Skolai Images - Nature, Travel and Adventure stock photos
Fatal Error suddenly showing up
« on: June 16, 2021, 01:55:36 am »

hey folks,

I realize this is an older version of CPG, but I just don't have time to update it at the moment. Google just pointed me to an error that uddeny started showing up pn m cpg galleries. Shows up as

Quote
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/skolai5/public_html/stock/include/functions.inc.php:183 Stack trace: #0 /home/skolai5/public_html/stock/include/init.inc.php(171): cpg_db_connect() #1 /home/skolai5/public_html/stock/index.php(26): require('/home/skolai5/p...') #2 {main} thrown in /home/skolai5/public_html/stock/include/functions.inc.php on line 183

Can anyone please point to a quick fix for this? hopefully, thanks.

Site is www.skolaiimages.com .. all cpg stuff is inside www.skolaiimages.com/stock/

Thank you.
Cheers
Carl
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1713
Re: Fatal Error suddenly showing up
« Reply #1 on: June 16, 2021, 04:29:43 am »

Your host has changed the default PHP version to 7.x.  The quick fix is to get them to change it back to version 5.6

It appears you were running CPG 1.5.46 ... so you could easily and quickly upgrade it using this method.
« Last Edit: June 16, 2021, 04:37:53 am by ron4mac »
Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Fatal Error suddenly showing up
« Reply #2 on: June 16, 2021, 09:47:40 pm »

Thanks for that ron .. however I just lost all of the changes and tweaks I had made to my theme, which were more than substantial. Bummer. I guess I didn't realise that simply upgraded everything.

I do have a backup on my host server, but don't even know how to begin resolving this now. If I restore to my previous version, is there a simple way to fix the error without upgrading to a new cpg that will require me spending hours trying to re-configure my theme etc?

Thanks
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4815
    • Windsurf.me
Re: Fatal Error suddenly showing up
« Reply #3 on: June 17, 2021, 08:05:03 am »

Not really. There are a lot of changes required to get PHP7 to work. So far better to update your custom theme to work with the latest release, which in most cases is not too much effort.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Fatal Error suddenly showing up
« Reply #4 on: June 17, 2021, 10:16:12 pm »

OK, thanks. In my case it's quite a process, but I'll save the files from the previous version and update as I can later in the fall.

Thank you.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1713
Re: Fatal Error suddenly showing up
« Reply #5 on: June 18, 2021, 01:16:55 am »

If you have your old files, rename the folder that was your theme with modifications (water_drop?) to something else and copy it into your CPG themes folder.
Follow these guide lines for your custom theme (which you should have done in the beginning instead of modifying a CPG included theme directly). You should then be able to select your custom theme and have all your modifications back.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.