Unable to update Joomla: Call to undefined method Aps\\App\\Joomla\\apsSession::get()

Created:

2016-11-16 13:14:27 UTC

Modified:

2017-08-08 13:44:26 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to update Joomla: Call to undefined method Aps\\App\\Joomla\\apsSession::get()

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Joomla instance cannot be updated to the latest version.

The following error message is shown in Plesk:

Error: Update failed: Non-zero exit status returned by script. Output stream: 'PHP Fatal error: Call to undefined method Aps\\App\\Joomla\\apsSession::get() in /var/www/vhosts/example.com/httpdocs/libraries/joomla/factory.php on line 236 '. Error stream: 'PHP Fatal error: Call to undefined method Aps\\App\\Joomla\\apsSession::get() in /var/www/vhosts/example.com/httpdocs/libraries/joomla/factory.php on line 236 '.

In /var/log/plesk/panel.log the following error messages can be found:

stderr:
PHP Fatal error: Call to undefined method Aps\\App\\Joomla\\apsSession::get() in /var/www/vhosts/example.com/httpdocs/libraries/joomla/factory.php on line 236

ERR [panel] Exception: PHP Fatal error: Call to undefined method Aps\\App\\Joomla\\apsSession::get() in /var/www/vhosts/example.com/httpdocs/libraries/joomla/factory.php on line 236

ERR [panel] Script execution failed: PHP Fatal error: Call to undefined method Aps\\App\\Joomla\\apsSession::get() in /var/www/vhosts/example.com/httpdocs/libraries/joomla/factory.php on line 236

ERR [panel] Task failed: id=1445, pid=15064, type=aps-update, error=Non-zero exit status returned by script. Output stream: 'PHP Fatal error: Call to undefined method Aps\\App\\Joomla\\apsSession::get() in /var/www/vhosts/example.com/httpdocs/libraries/joomla/factory.php on line 236
Error stream: 'PHP Fatal error: Call to undefined method Aps\\App\\Joomla\\apsSession::get() in /var/www/vhosts/example.com/httpdocs/libraries/joomla/factory.php on line 236

Cause

End of Support notification plugin is installed in Joomla instance.

Resolution

This plugin should be disabled, it is not required in Joomla version 3.0 or above.

  • To disable this plugin go to Joomla Administrator interface > Plugins > End of Support > Remove

  • OR find and patch file /opt/psa/var/apspackages/<Joomla_package_identificator>/cache/scripts/Upgrader.php by adding the following strings in class apsSession section:

       public function get($name)
    {
    if ('user' !== $name) {
    throw new \\Exception('APS upgrade MUST not call session');
    }
    return \\JUser::getInstance((string)getenv('SETTINGS_admin_name'));
    }
Have more questions? Submit a request
Please sign in to leave a comment.