News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Can't Access My Gallery

Started by typomaniac, Yesterday at 01:11:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

typomaniac

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.

406man

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

typomaniac

If I upgrade to 1.6.29 and upgrade php to 8.4 this should work?

406man

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.

ron4mac

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';.