News:

CRITICAL UPGRADE CPG RELEASE 1.6.30
Version 1.6.30 removes a serious security issue that could allow unauthorized access to modify your site. Upgrade as soon as possible.

Main Menu

Recent posts

#1
cpg1.6 miscellaneous / Re: BBcode limitations in gall...
Last post by phill104 - Yesterday at 08:50:38 PM
Thanks to whichever team member updated the download. Much appreciated.
#2
cpg1.6 plugin contributions / Theme Cache Extended
Last post by phill104 - Yesterday at 08:44:04 PM
A hevaily changed version of the excellent theme cache plugin by ron4mac ( https://coppermine-gallery.com/forum/index.php/topic,80231.0.html ), this was created by myself and one of the graduates where I work, Jenny. To be fair, she did most of the work here.

*
 * Caches index.php and thumbnails.php for visitors who are not logged in.
 * Based on Theme Cache 1.1 by {ron4mac}.
 *
 * Changes and additions in this extended version.
 *  - cache is checked at 'page_start' (before the page's own queries) instead of in pageheader(),
 *    which on index.php runs only after all the work is done
 *  - pages are saved from the core 'page_html' filter, so error pages (cpg_die) are never cached
 *  - cache key built from a whitelist of parameters plus language, theme, sort order and cookie consent;
 *    any other parameter (search, lang=, theme=, file=, uid=, ...) disables caching for that request
 *  - favourites, random, search and other per-visitor meta albums are never cached
 *  - atomic writes, stale-while-revalidate (one request rebuilds an expired page, others get the old copy)
 *  - Last-Modified / 304 support
 *  - cache cleared after uploads, edits, deletes, comments and any admin form submission
 *  - expired files removed automatically, number of files capped
 *  - optional .htaccess static mode: Apache serves guest pages with no PHP and no MySQL connection

If you have the original version of Theme Cache installed, follow the instructions in the readme for migrating to this. The naming has been kept the same as having two different versions installed at the same time would cause problems.
#3
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by phill104 - November 30, 2026, 07:46:28 PM
Thanks Ron.

Hopefully we will hear back from @mdafun to see if it improves things in his situation first.
#4
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by ron4mac - November 30, 2026, 03:03:24 PM
Quote from: phill104 on November 29, 2026, 08:02:55 PMShe has made some changes that may improve your situation here.
Nice changes and additions! {I didn't test it}
You might want to name it something else and add it to the plugin contributions section as an alternate theme cacher.
#5
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by phill104 - November 29, 2026, 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.

#6
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by ron4mac - November 28, 2026, 07:56:18 PM
You might want to consider a different host (or plan) that has fewer restrictions.
#7
cpg1.6 miscellaneous / Re: Coppermine db overloading ...
Last post by mdafun - November 28, 2026, 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.
#8
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.
#9
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
#10
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