coppermine-gallery.com/forum

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: typomaniac on August 29, 2026, 01:11:17 AM

Title: Can't Access My Gallery
Post by: typomaniac on August 29, 2026, 01:11:17 AM
Hi, it has been atleast a few months since any activity with my gallery but I was going to upload images and instead of opening the gallery I recieved the following error message:
Coppermine critical error:
Unable to connect to database !

MySQLi said: 1045 : Access denied for user 'photoman'@'sitea-web521.eigbox.net' (using password: YES)

When I logged into the web host there was a message that said:

PHP versions of software older than 8.4 will no longer be supported. You have one or more domains having unsupported PHP versions. Change your PHP setting for increased performance and security.

Any help getting back up would be much appreciated.
Title: Re: Can't Access My Gallery
Post by: 406man on August 29, 2026, 11:45:17 AM
This appears to be a problem relating to your web host rather than the Coppermine software.

The host is saying that they won't support old versions of PHP - which is a little extreme in my opinion. Plenty of hosts out there will allow the running of older versions of PHP without stopping a web site from working. There are, of course, security risks from running older versions of software in general but I'm not aware of any PHP bugs affecting Coppermine specifically. If you stay with this web host you'll need to:
- Back up your site
- Upgrade the PHP software using the relevant feature of your hosting control panel
- Upgrade the Coppermine software to the latest version 1.6.29
Title: Re: Can't Access My Gallery
Post by: typomaniac on August 29, 2026, 02:11:04 PM
If I upgrade to 1.6.29 and upgrade php to 8.4 this should work?
Title: Re: Can't Access My Gallery
Post by: 406man on August 29, 2026, 07:24:37 PM
The CPG release notes are here:
https://github.com/coppermine-gallery/cpg1.6.x/releases

Versions 1.6.26 to .28 had various fixes added for PHP 8.4 so I would expect 1.6.29 to work correctly. If you use an unusual theme or plugins there is the possibility of incompatibilities with PHP 8.4.
Title: Re: Can't Access My Gallery
Post by: ron4mac on August 30, 2026, 02:42:19 AM
Your host may have made some changes. You might try changing your configured database server to just 'localhost' (record the current value somewhere before changing it).
In the file include->config.inc.php, make this change:
$CONFIG['dbserver'] = 'localhost';.