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: 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.
#2
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>
#3
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
#4
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!
#5
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.
#6
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!
#7
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
#8
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!



#9
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!
#10
cpg1.6 miscellaneous / Re: Unable to access the ADMIN...
Last post by Legacies - June 07, 2026, 05:13:20 AM
Quote from: 406man on June 06, 2026, 11:35:33 AMSomewhere 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.

Thank you so very much. We conducted a "find" in our php settings and found mbstring had been selected by default when we upgraded our php settings for the entire server.

We removed that php setting and are now able to access the admin tools.

We appreciate all of the brain power you guys have.
Thank you again.
Respectfully
AmericanLegacies Staff