Joomla\CMS\Application\SiteApplication::isAdmin() on Product category page

  • Posts: 90
  • Thank you received: 2
  • Hikashop Business
2 years 4 months ago #345869

-- url of the page with the problem -- : www.bvcholyoke.nl/webshop/category/12-algemeen
-- HikaShop version -- : 4.6.2
-- Joomla version -- : 4.2.3
-- PHP version -- : 8.1.1
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : 0 - Call to undefined method Joomla\CMS\Application\SiteApplication::isAdmin()

Dear Support,

After migrating to Joomla 4 we are encountering this Call to undefined method error. you can see the error here:

www.bvcholyoke.nl/webshop/category/12-algemeen

What could cause this error?

Kind regards,
Damian de Geus

Last edit: 2 years 4 months ago by gielhier. Reason: Urgent

Please Log in or Create an account to join the conversation.

  • Posts: 90
  • Thank you received: 2
  • Hikashop Business
2 years 4 months ago #345872

I see this error Call to undefined method Joomla\CMS\Application\SiteApplication::isAdmin()
/var/www/vhosts/bvcholyoke.nl/httpdocs/templates/bvcholyoke/html/pagination.php:46

Please Log in or Create an account to join the conversation.

  • Posts: 90
  • Thank you received: 2
  • Hikashop Business
2 years 4 months ago #345873

Hi,

I found the solution.

it had to do with the ::isAdmin() code in /httpdocs/templates/bvcholyoke/html/pagination.php:46 and pagination.php:76

Changing ::isAdmin() to isClient('admin') is how I resolved this issue.

Please Log in or Create an account to join the conversation.

  • Posts: 83338
  • Thank you received: 13476
  • MODERATOR
2 years 4 months ago #345879

Hi,

Indeed. This error comes from your template. So I would recommend you also notify your template provider.

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum