Advertisement

Component Installer Problem in Joomla 5.2.2

For Joomla! 5.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
jjbongio
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Mon Dec 16, 2013 2:29 pm

Component Installer Problem in Joomla 5.2.2

Post by jjbongio » Wed Dec 04, 2024 1:40 am

I want to display the updated version of my component when it is installed.
I have been using a script.php file that looks like this (only relevant parts included)

Code: Select all

class com_CSCCruiseInstallerScript extends InstallerScript
{

    function install ($parent)
    {
        Factory::getApplication()->enqueueMessage('Installed version ' . $parent->getManifest ()-> version, 'notice');
    }

    function update ($parent)
    {
        Factory::getApplication()->enqueueMessage('Updated to version ' . $parent->getManifest ()-> version, 'notice');
    }
  }  
    
This has worked fine until I installed Jooma 5.2.2. And it still works fine if I install from a directory, but not if I upload a zip file. The installation works, but the message is not displayed.
I determined in my debugger that the update function in the script.php file is invoked when the install is from a directory, but not when it is from an uploaded zip file.

Advertisement
SharkyKZ
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3127
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Component Installer Problem in Joomla 5.2.2

Post by SharkyKZ » Wed Dec 04, 2024 6:38 am

Works for me™

jjbongio
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Mon Dec 16, 2013 2:29 pm

Re: Component Installer Problem in Joomla 5.2.2

Post by jjbongio » Wed Dec 04, 2024 7:57 pm

Works for me now also, even though nothing changed from yesterday. Thanks for verifying.

Advertisement

Post Reply

Return to “Joomla! 5.x Coding”