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

Recent posts

#61
cpg1.6 miscellaneous / Re: Unable to access the ADMIN...
Last post by 406man - June 06, 2026, 11:35:33 AM
Somewhere there's an out of date file that's being picked up that references mbstring, either by Coppermine software or PHP itself. The difficult bit is finding it.
The latest versions of Coppermine don't have mbstring in the code.
As has been said, an old plugin or theme might have this.  You aren't using plugins or a non-standard theme but are there any of them still around in the directories ? Use your file transfer utility (WinSCP or similar) to check the dates on folders and files for old files.
Another way this could happen is if PHP itself is picking up old files when starting up. It will be useful to see what PHP thinks. You don't have the Admin menu so this will have to be created manually.

Put the following PHP file in your top level gallery directory and give it an obscure name for security reasons.

<?php
// Show the PHP configuration
    phpinfo();
?>

Then run it using the web browser:

https://yourgallery/obscurename.php

You'll get a display like the following that I've truncated. Are there additional files being picked up and shown in the line I've highlighted with red arrows ?
Does "mbstring" appear anywhere on the page ?  – use the "search on this page" feature of the web browser

php.png
#62
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by phil1011 - June 06, 2026, 05:40:53 AM
Host informed me that most of the requests are from bots. They recommended Cloudflare so I've signed up and changed the nameservers. It should reduce unwanted traffic. Host re-enabled the coppermine db. Hopefully this will work in the long term.
#63
cpg1.6 miscellaneous / Re: Unable to access the ADMIN...
Last post by ron4mac - June 05, 2026, 07:42:00 PM
Around 4 years ago you gave me admin access to your gallery. If you would like to do that again, I'll look to see what I can find.
#64
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by ron4mac - June 05, 2026, 07:23:25 PM
A few years ago, I suggested to you that you try a theme caching plugin. If your site is mainly public facing (users don't log in), the plugin will greatly reduce total database access. Many gallery pages are cached and the database is only accessed for them at whatever interval you set.

If caching doesn't work for you ... yes, their cheapest VPS plan should provide all you would need.
#65
cpg1.6 miscellaneous / Re: Unable to access the ADMIN...
Last post by Legacies - June 05, 2026, 05:08:28 AM
Thanks to everyone for all of the suggestions.

The theme we use is the standard theme out of the box. No changes have been made to it. The url to the site is https://americanlegacies.org/img/

When I enter the site name followed by /util.php, I get the same error.
#66
cpg1.6 miscellaneous / Coppermine db overloading host...
Last post by phil1011 - June 05, 2026, 04:45:59 AM
I have over 70,000 images and hundreds of albums. Chronic problem with my host has been that the overloaded db has been impacting the host's server. So they disabled my coppermine db. Cannot access anything anymore.

They want me to switch to VPS hosting. Do you think their cheapest VPS plan would resolve my problem? Or if you have any suggestions for a solution, let me know.
https://www.pair.com/vps-hosting/
#67
cpg1.6 miscellaneous / Re: Unable to access the ADMIN...
Last post by andresf - June 04, 2026, 10:39:55 PM
Quote from: phill104 on June 04, 2026, 03:03:50 PMAs an aside.

There are 3 ways that coppermine decides what theme to show you:

1. based on the current config setting - stored in the database - (_config table)
2. based on a cookie that contains your preference.
3. based on a parameter passed in the url, eg. www.yoursite.com/index.php?theme=yourtheme

If you ever have probs with a theme you can just add ?theme=curve to end of your gallery url and it will set the theme to curve (for you only)

Once you have finished testing with that theme you can reset your cookies to use your default theme with www.yoursite.com/index.php?theme=???

Thank you, I didn't know this
#68
cpg1.6 miscellaneous / Re: Unable to access the ADMIN...
Last post by ron4mac - June 04, 2026, 07:05:08 PM
Because I'm curious, could you please enter <problem-site-url>/util.php in your browser and tell me whether you are presented with the admin tool page?
#69
cpg1.6 miscellaneous / Re: Unable to access the ADMIN...
Last post by Joe Carver - June 04, 2026, 04:08:23 PM
  • Post a link to one of the offending sites (it helps people to help you and could identify something you might have missed describing the problem, such as if your sites are linked with a Wordpress install (as an example))
  • If running any custom header or footer, remove either the DB setting using phpMyAdmin in Cpanel or just remove the file(s) using File Manager
#70
cpg1.6 miscellaneous / Re: Unable to access the ADMIN...
Last post by phill104 - June 04, 2026, 03:03:50 PM
Quote from: andresf on June 04, 2026, 01:17:29 PMHello Legacies:

Assuming a plugin issue is ruled out, could it be that you have a theme installed that's causing the problem when accessing that deprecated function?

In Config - Themes settings, select a standard CPG theme, such as water_drops, for example, and check if it still hides the Admin Tools.

As an aside.

There are 3 ways that coppermine decides what theme to show you:

1. based on the current config setting - stored in the database - (_config table)
2. based on a cookie that contains your preference.
3. based on a parameter passed in the url, eg. www.yoursite.com/index.php?theme=yourtheme

If you ever have probs with a theme you can just add ?theme=curve to end of your gallery url and it will set the theme to curve (for you only)

Once you have finished testing with that theme you can reset your cookies to use your default theme with www.yoursite.com/index.php?theme=???