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

#1
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by phill104 - Today at 08:02:55 PM
I 100% agree with ron4mac here, better to find a more flexible hosting option.

I also got one of our grad students to take a look at the excellent them cache plugin that ron4mac created. She has made some changes that may improve your situation here. It has only been tested on my local setup so please backup first before using. There is also an optional .htaccess mode that serves only cached pages to users that are not logged in reducing queries to zero for them, which would help with bots etc. It only works though if mod_rewrite is enabled on your host so you will need to test that.

#2
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by ron4mac - Yesterday at 07:56:18 PM
You might want to consider a different host (or plan) that has fewer restrictions.
#3
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by mdafun - Yesterday at 07:33:09 PM
Some days everything works fine, but on other days – like yesterday – there are several attacks during the day which cause the database connections to run out. I can't use a different username for each script; I'd have to buy a separate database for each one, and then managing backups would become far too complicated.
#4
cpg1.6 plugins / Re: Not all plugins are showin...
Last post by sharpo - November 26, 2026, 10:12:30 AM
Thanks for the quick reply ron4mac, just inserted that line and all the plugins are now showing.
#5
cpg1.6 plugins / Re: Not all plugins are showin...
Last post by ron4mac - November 26, 2026, 02:53:32 AM
The MiniCMS plugin has a known issue with newer PHP versions ...
https://coppermine-gallery.com/forum/index.php?msg=390881
#6
cpg1.6 plugins / Not all plugins are showing in...
Last post by sharpo - November 26, 2026, 01:08:34 AM
Just upgraded to 1.6.30.

Two images attached, one shows the plugin manager list - which shows some errors, but only 3 plugins are listed. The other shows all the plugins that are actually in the plugin folder. I haven't deleted any for ages.

I did notice only 3 plugins were in the list before I upgraded and thought maybe the problem would be solved after the upgrade, but that didn't fix it.

Any idea what is causing the problem?

The gallery seems to work without any problems, other than video links. It was when I was trying to work out why the link to some YouTube videos did not work that I noticed only 3 plugins in the list & the error messages.

Gallery is:- https://sharpos-world.co.uk/BB3cpg/index.php

Would appreciate it if somebody could let me know what the problem is & how to fix it.

Thanks, Sharpo.

(my other big gallery is now updated to 1.6.30 and all the plugins are listed and without errors. If I amend or upgrade one I usually do the same to the other:- https://www.sharpos-world.co.uk/cpg/   


 plugins.jpg


all-plugins.jpg
#7
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by ron4mac - November 23, 2026, 02:06:07 PM
Quote from: mdafun on November 21, 2026, 06:55:39 PMWith SHOW VARIABLES LIKE 'max_user_connections';
the result is
max_user_connections 100
All my commercial servers (Siteground, Linode/Akamai) show a zero value for that (unlimited, I assume).
If you are looking at the database from your CPanel, your connection may be from a user that is not the same as what is set for your CPG/Wordpress instances. I use a separate mysql manager app to avoid CPanel issues (https://www.adminer.org), as well as my own file manager (https://github.com/ron4mac/hosted-file-manager).
You should verify connection limitations by connecting to a database with the actual user/pass from your CPG/Wordpress configurations.
#8
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by phill104 - November 22, 2026, 04:49:34 PM
As I suggested above, check your file systems for any files that should not be there.

Then check your servers access logs and see if you can detect where all these just are being generated from. Often the servers access and error logs can be very revealing in these cases.
#9
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by mdafun - November 22, 2026, 02:36:07 PM
That's why I'm saying there are clearly other issues with CPG. Next time this happens, I'll post the database log.

I've also restricted access to search.php to registered users only (a setting that should be added to the settings page on the next releases), even though we know full well that searches can also be carried out via thumbnails.php (which is now restricted to registered, but has always been open to guests for 20 years without any problems).
All these issues have arisen over the last year.

on search.php
define('IN_COPPERMINE', true);
define('SEARCH_PHP', true);

require('include/init.inc.php');

[b]//LIMIT TO REGISTERED
if (!USER_ID) {
    cpg_die(ERROR, 'La ricerca è riservata agli utenti registrati.', __FILE__, __LINE__);
}
//END ADD[/b]

if (!USER_ID && $CONFIG['allow_unlogged_access'] == 0) {
    $redirect = 'login.php';
    header("Location: $redirect");
    exit();
}
#10
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by ron4mac - November 22, 2026, 03:51:15 AM
Quote from: mdafun on November 21, 2026, 06:55:39 PMWith SHOW VARIABLES LIKE 'max_user_connections';
the result is
max_user_connections 100
Why the error that you are showing above then?  ???