coppermine-gallery.com/forum

Support => cpg1.6.x Support => cpg1.6 upgrading => Topic started by: websdinamicas on July 09, 2026, 01:23:01 PM

Title: Upgrading from php 8.1 to 8.3 - assert.active INI setting is deprecated
Post by: websdinamicas on 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!



Title: Re: Upgrading from php 8.1 to 8.3 - assert.active INI setting is deprecated
Post by: ron4mac on July 09, 2026, 02:34:35 PM
Check for any .htaccess files, especially in your gallery, that may have assertions
Title: Re: Upgrading from php 8.1 to 8.3 - assert.active INI setting is deprecated
Post by: websdinamicas on July 09, 2026, 03:54:33 PM
Hi,

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

Thanks!
Title: Re: Upgrading from php 8.1 to 8.3 - assert.active INI setting is deprecated
Post by: ron4mac on 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.
Title: Re: Upgrading from php 8.1 to 8.3 - assert.active INI setting is deprecated
Post by: websdinamicas on 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!
Title: Re: Upgrading from php 8.1 to 8.3 - assert.active INI setting is deprecated
Post by: ron4mac on July 09, 2026, 05:00:00 PM
It should not be needed for Drupal. That assertion has been deprecated by zend.assertions -1