News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Recent posts

#21
Mods: Permissions / Re: Moderators for Album pictu...
Last post by Xyzz - July 29, 2026, 03:56:28 PM
Quote from: Abbas Ali on April 18, 2006, 03:26:24 PMOpen the gallery's index page in browser. You will see the output there. Also post a link to your gallery so that i can see the output.


I need an owner of copper mine to contact me immediately. A user of your illegally posted a website in my name with photos not meant to be public which will ruin my reputation personally and professionally and is very serious. I have no idea how to navigate this site. I need the site removed immediately. Someone please contact me
#22
cpg1.6 miscellaneous / Re: Unable to access the ADMIN...
Last post by Slava - July 13, 2026, 08:13:31 PM
Quote from: Legacies on June 03, 2026, 08:16:16 PMThank you very much for any assistance.
Vibe coding may be helpful here.
A method that has worked very well for me is to make a full backup, then create a ZIP archive containing all gallery files except the `/albums/` directory and upload it to ChatGPT together with a detailed description of the problem. Before uploading, make sure to remove or replace any database passwords, API keys, email credentials, or other sensitive information from configuration files.
Ask ChatGPT to investigate the issue and return only the files that need to be changed. This makes it much easier to compare the modified files with the originals and restore the backup if necessary.
Using this approach, I have already modernized several old Coppermine galleries based on CPG 1.4.* and 1.5.* that previously worked only with PHP 5.3. They now run on PHP 8.5 and also have search-engine-friendly URLs, various SEO improvements, mobile-friendly layouts, and much better indexing.
Of course, always test the modified files on a copy of the gallery first and keep a complete backup of both the files and the database.
#23
cpg1.6 upgrading / Re: Upgrading from php 8.1 to ...
Last post by websdinamicas - July 13, 2026, 10:49:51 AM
Hi,

i could not found where Coppermine is using PHP Assertions but finally solved creating a .htaccess file in Coppermine dir with:

<IfModule mod_php.c>
  php_value assert.active                  -1
</IfModule>
#24
cpg1.6 upgrading / Re: Upgrading from php 8.1 to ...
Last post by ron4mac - July 09, 2026, 05:00:00 PM
It should not be needed for Drupal. That assertion has been deprecated by zend.assertions -1
#25
cpg1.6 upgrading / Re: Upgrading from php 8.1 to ...
Last post by websdinamicas - July 09, 2026, 04:36:55 PM
Hi!

i found it in drupal 10 .htaccess:

<IfModule mod_php.c>
  php_value assert.active                   0
</IfModule>

We get to Coppermine by a link in a Drupal instalation. Commenting that line or changing 0 by 1, the Coppermine page works. Now i have to see  how to manage it in Drupal.

Thanks a lot!
#26
cpg1.6 upgrading / Re: Upgrading from php 8.1 to ...
Last post by ron4mac - July 09, 2026, 04:24:09 PM
You might try commenting out assert.active Off in your PHP config. It is really only for much older versions of PHP and it may be tripping things up.
#27
cpg1.6 upgrading / Re: Upgrading from php 8.1 to ...
Last post by websdinamicas - July 09, 2026, 03:54:33 PM
Hi,

i haven't any .htaccess file in the Coppermine instalation.

Thanks!
#28
cpg1.6 upgrading / Re: Upgrading from php 8.1 to ...
Last post by ron4mac - July 09, 2026, 02:34:35 PM
Check for any .htaccess files, especially in your gallery, that may have assertions
#29
cpg1.6 upgrading / Upgrading from php 8.1 to 8.3 ...
Last post by websdinamicas - July 09, 2026, 01:23:01 PM
Hi!

Our Coppermine versión 1.6.27 is working fine on PHP 8.1 but now we want to upgrade to PHP 8.3

When entering in Files/Admin Tools, we get the error "PHP Request Shutdown: assert.active INI setting is deprecated".

Our PHP configuration is:

zend.assertions -1
assert.active Off
assert.bail Off
assert.callback no value
assert.exception On
assert.warning On

I can't find where the code uses Assertions!

Do you know the solution for this problem?

Thank you very much!



#30
cpg1.6 miscellaneous / Re: Unable to access the ADMIN...
Last post by ron4mac - June 07, 2026, 02:11:47 PM
Quote from: Legacies on June 07, 2026, 05:13:20 AMWe removed that php setting and are now able to access the admin tools.

Glad you were able to resolve it!