?
avatar szoupi
szoupi
18 Mar 2021

Steps to reproduce the issue

Try to install a Joomla! 3.x component. In this case gantry5 framework joomla-pkg_gantry5_v5.4.36.zip through System > Extension install

Expected result

The action should be forbidden. Message should appear and user should be redirected to back to previous state.

Actual result

  • Installation is interrupted. Message appears:
    An error has occurred.
    0 Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin()

-Backend of Joomla! 4 is broken. Only sidebar and menu links are working. Front end is broken too. No content only menu links and the same as above error message is displayed.

System information (as much as possible)

  • ubuntu 18.04 LTS
  • apache
  • php 7.3

Additional comments

screen shot 2021-03-18 at 14 46 11

avatar szoupi szoupi - open - 18 Mar 2021
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Mar 2021
avatar ReLater
ReLater - comment - 18 Mar 2021

The action should be forbidden. Message should appear and user should be redirected to back to previous state.

How should Joomla know if an extension isn't compatible? It's the job of the programmers to protect users from such disasters.. That can be easily managed by installer scripts and /or update manifests. And/or your job to make an backup first.

Just because an extension is not explicitly marked as "Joomla 4 compatible" that doesn't mean that it is not compatible.

avatar ChristineWk
ChristineWk - comment - 18 Mar 2021

See also: #31825


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32733.

avatar szoupi
szoupi - comment - 18 Mar 2021

Just because an extension is not explicitly marked as "Joomla 4 compatible" that doesn't mean that it is not compatible.

I tested with a component that that was written and tested for J3x. The component's programmers cannot be held responsible for future versions of Joomla! code, the code of which are unaware of, it is impossible. I suggest that installation process should not start if minimum requirements are not met, eg explicit J4 compatibility or whatever, otherwise accidentally J3.x component installation could have disastrous results.

Taking backups is out of question, the current issue is how to offer an error-proof installation process without the need to use a backup.

The #31825 addresses the issue

avatar jwaisner
jwaisner - comment - 18 Mar 2021

Closing this as #31825 defines the changes that can be recommended to ensure compatibility with J4, but not a bug.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32733.

avatar jwaisner jwaisner - change - 18 Mar 2021
Priority Critical Medium
Status New Expected Behaviour
Closed_Date 0000-00-00 00:00:00 2021-03-18 16:40:54
Closed_By jwaisner
avatar joomla-cms-bot joomla-cms-bot - close - 18 Mar 2021
avatar joomla-cms-bot
joomla-cms-bot - comment - 18 Mar 2021

Set to "closed" on behalf of @jwaisner by The JTracker Application at issues.joomla.org/joomla-cms/32733

avatar ReLater
ReLater - comment - 18 Mar 2021

The component's programmers cannot be held responsible for future versions of Joomla! code, the code of which are unaware of, it is impossible.

They are responsible. Joomla 4 can be tested for years.. And as I've said it's not too difficult to block installation on Joomla 4 in an extension. 10 additional lines of code. OR TO MARK THE EXTENSION ACCORDINGLY on download pages which is not the case with Gantry 5.

Add a Comment

Login with GitHub to post a comment