strange error when using php joomla.php check-updates

  • Posts: 206
  • Thank you received: 10
  • Hikashop Multisite
2 years 11 months ago #338035

-- HikaShop version -- : 4.4.4
-- Joomla version -- : 4.0.5
-- PHP version -- : 8.0.13

Hi,
We are trying to find a strange issue on our website and also try to explain why there is hikashop output found in here :

php joomla.php check-updates

Symfony\Component\ErrorHandler\Error\UndefinedMethodError^ {#468
  #message: "Attempted to call an undefined method named "getUserState" of class "Joomla\CMS\Application\ConsoleApplication"."
  #code: 0
  #file: "/home/dostchadlidev/public_html/plugins/system/hikashopuser/hikashopuser.php"
  #line: 23
  trace: {
    /home/dostchadlidev/public_html/plugins/system/hikashopuser/hikashopuser.php:23 {
      plgSystemHikashopuser->__construct(&$subject, $config)^
      › $app = JFactory::getApplication();\r
      › **$this->currency = $app->getUserState('com_hikashop.currency_id');**\r
      › $this->entries = $app->getUserState('com_hikashop.entries_fields');\r
    }
    /home/dostchadlidev/public_html/libraries/src/Extension/ExtensionManagerTrait.php:242 { …}
    /home/dostchadlidev/public_html/libraries/src/Extension/ExtensionManagerTrait.php:160 { …}
    /home/dostchadlidev/public_html/libraries/src/Extension/ExtensionManagerTrait.php:94 { …}
    /home/dostchadlidev/public_html/libraries/src/Plugin/PluginHelper.php:235 { …}
    /home/dostchadlidev/public_html/libraries/src/Plugin/PluginHelper.php:193 { …}
    /home/dostchadlidev/public_html/libraries/src/Application/ConsoleApplication.php:228 { …}
    /home/dostchadlidev/public_html/cli/joomla.php:76 { …}
  }
}

And also inspiration on what to try next to find the cause of this.
If I can supply more info, let me know and I will.

Thanks in advance for any help.

Last edit: 2 years 11 months ago by Joomill. Reason: solved

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 11 months ago #338042

Hi,

This seems to be an issue with how some akeeba extension work and the user synchronization plugin in HikaShop which doesn't handle the console mode of Joomla (which is usually not used).
This was actually reported to us by Nicholas from Akeeba yesterday and we've included a hot fix in HikaShop at the time, with a new release of HikaShop to follow soon.
So you can download the install package of HikaShop on our website and install it on yours and you won't have the error anymore.

The following user(s) said Thank You: Joomill

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

  • Posts: 206
  • Thank you received: 10
  • Hikashop Multisite
2 years 11 months ago #338049

Thanks,
I will re-download and install this.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum