error after installing a template

Be informed that this forum is not an official support forum for Joomla! 4.0. Any issues regarding Joomla! 4.0 must be reported at https://issues.joomla.org/.

Joomla! 4.0 is still in its Alpha stage. This forum should be used for sharing information about Joomla! 4.0.

Moderator: ooffick

Post Reply
User avatar
Gany
Joomla! Ace
Joomla! Ace
Posts: 1170
Joined: Wed Jan 02, 2008 12:38 am

error after installing a template

Post by Gany » Sat Apr 20, 2019 2:39 am

I tried the latest version. Anything I try to install crashes it. Error message:

An error has occurred.

0 Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin()

User avatar
H13
Joomla! Ace
Joomla! Ace
Posts: 1480
Joined: Sun Dec 10, 2006 6:39 pm
Location: Czech Republic
Contact:

Re: error after installing a template

Post by H13 » Sat Apr 20, 2019 9:40 am

Hi, In Joomla! 4, there should be not more included this function:

Code: Select all

public function isAdmin()
	{
		return $this->isClient('administrator');
	}
So try to enable debug mode to see in which file and on which line you get the problem and try to replace from:

Code: Select all

isAdmin()
to:

Code: Select all

isClient('administrator')
- Phoca Gallery - powerful image gallery - http://www.phoca.cz/phocagallery/
- Phoca Restaurant Menu - http://www.phoca.cz/restaurantmenudemo/
- Phoca Cart - e-commerce platform for Joomla!
- Phoca Download - download manager for Joomla!


Post Reply

Return to “Joomla! 4 Related”