500 error occurs when updating pkg_conditions

Search
Other Bug Reports questions
Forum

500 error occurs when updating pkg_conditions

Patrick Jackson's Avatar Patrick Jackson
When updating via Joomla extension manager, I repeatedly get 500 Error and the Joomla orange screen of death.

Turning debug on, I can see the cause:

Compile Error: Cannot declare class Com_ConditionsInstallerScript, because the name is already in use

/tmp/install_66d01f460a8dd/packages/j4/pkg_conditions/packages/com_conditions/script.install.php on line 18

Typically refreshing the orange screen then moves it along and reattempts the remaining installations without an issue, but if there's lots of Regular Labs extensions to be updated it may take a few refreshes to complete the installs.
Peter van Westen's Avatar Peter van Westen ADMIN
Weird, as Joomla should install each extension separately in its own pageload. So not sure why that would happen. Looks like a server/setup issue.

Do you get the same issues when updating via the Regular Labs Extension Manager?
Please post a rating at the Joomla! Extensions Directory
Patrick Jackson's Avatar Patrick Jackson
No - With Extension Manager it goes through each extension sequentially, so does not start the next one until the previous completes.

I'm not sure whether that's happening with the Joomla extension manager - it seems that when I select all extensions ready to be updated, it's like it's then requesting all the downloads concurrently, then starts installing each as they become available... so if two zip files arrive at the same time, it then unpacks them simultaneously.

I am guessing pkg_conditions is bundled with every one of your extensions now, so that's unusual compared to most other Joomla extensions - they typically won't come with the same function being called across multiple installers that may be running concurrently.
Peter van Westen's Avatar Peter van Westen ADMIN
But so is the Regular Labs Library, that is packed with every extension.

There is even this in the installer script files:
if ( ! class_exists('pkg_conditionsInstallerScript'))
{
    class pkg_conditionsInstallerScript
    {
        ...
    }
}
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in