No Code Attached Yet
avatar Multistud
Multistud
30 Aug 2022

Hello, Since the joomla 4.2.0 update, I can no longer access certain menus in the administration and no page on the site except the home page.
PHP 8.1.0 - MySQLi 5.6.51-log - Mise en cache Désactivé - Gzip Désactivé
3rd Party :YOOthemePro 2.7.24, Virtuemart 4.0.6, VMuikitX 10.21
On FrontEnd
ERROR 0
Call to undefined method Joomla\Component\Content\Site\View\Article\HtmlView::getCurrentUser()

Function Location

1 () JROOT/components/com_content/src/View/Article/HtmlView.php:104
On BackEnd
ERROR 0
Cache
Call to undefined method Joomla\Component\Cache\Administrator\View\Cache\HtmlView::getCurrentUser()
Global Configuration
Call to undefined method Joomla\Component\Config\Administrator\View\Application\HtmlView::getCurrentUser()
Users
Call to undefined method Joomla\Component\Users\Administrator\View\Users\HtmlView::getCurrentUser()
Articles
Call to undefined method Joomla\Component\Content\Administrator\View\Articles\HtmlView::getCurrentUser()
Media
Call to undefined method Joomla\Component\Media\Administrator\View\Media\HtmlView::getCurrentUser()
Update Joomla
Call to undefined method Joomla\Component\Joomlaupdate\Administrator\View\Joomlaupdate\HtmlView::getCurrentUser()
Substitutions
Call to undefined method Joomla\Component\Templates\Administrator\View\Template\HtmlView::getCurrentUser()

Expected result

Actual result

I followed advice form joomla team, and restored with joomla 4.1.5, after waiting for the new version 4.2.1, I installed it but I have exactly the same problem !!!!

System information (as much as possible)

PHP 8.1.0 - MySQLi 5.6.51-log - Mise en cache Désactivé - Gzip Désactivé
3rd Party :YOOthemePro 2.7.24, Virtuemart 4.0.6, VMuikitX 10.21

Additional comments

avatar Multistud Multistud - open - 30 Aug 2022
avatar joomla-cms-bot joomla-cms-bot - change - 30 Aug 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 Aug 2022
avatar richard67
richard67 - comment - 30 Aug 2022

I followed advice form joomla team, and restored with joomla 4.1.5, after waiting for the new version 4.2.1, I installed it but I have exactly the same problem !!!!

@Multistud What means „installed it“? Have you used the Joomla Update component to update to that version? Or have you just uploaded andbunpacked the zip package without using the update component?

And what means „restored with joomla 4.1.5“? Does that mean there was a previous, failed attempt to update to 4.2.0, and you restored a backup? If so: have you used an empty database to restore the backup? How have you restored? Manually or with a tool?

avatar richard67
richard67 - comment - 31 Aug 2022

Am not asking to blame. Just want to know what happen so we can find out what to investigate as next.

avatar alikon
alikon - comment - 31 Aug 2022

it was already reported on the forum https://forum.joomla.org/viewtopic.php?f=808&t=995951

avatar richard67
richard67 - comment - 31 Aug 2022

@alikon The forum post unfortunately does not provide any additional information.

avatar alikon
alikon - comment - 31 Aug 2022

i mean the post open date Wed Aug 24

avatar Multistud
Multistud - comment - 31 Aug 2022

Hello and thank you for your answer.

Here I solved the problem, in fact I had restored the old version 4.1.5 FTP via a backup at the host but I had not restored the database...

So this time I restored the old version 4.1.5 FTP + database in order to find a functional site

Then I made the update for the new version 4.2.1 as well as the updates of the templates, YoothemePro 2.7.25 and VmuikitX 10.22.

Now everything seems to work normally with Joomla 4.2.1

avatar richard67 richard67 - close - 31 Aug 2022
avatar richard67
richard67 - comment - 31 Aug 2022

@Multistud Glad you could solve it.

Closing as not a core issue.

avatar richard67 richard67 - change - 31 Aug 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-08-31 16:19:46
Closed_By richard67

Add a Comment

Login with GitHub to post a comment