Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

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

0 Members and 1 Guest are viewing this topic.

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • 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: 2026
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: 380
    • 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

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • 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: 380
    • 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: 2026
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.02 seconds with 19 queries.