[Skip to main content](#vessel-content)

#   Error After Update

##

- **[davec](/forum/user/7092-davec "View davec's Profile")**
- [![davec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7092-davec "View davec's Profile") Topic Author
- [ Offline](/forum/user/7092-davec)

Less More

- Posts: 447
- Thank you received: 20
-
-

2 years 11 months ago [\#357106](#357106) by [davec](/forum/user/7092-davec "View davec's Profile")  *[Error After Update](/forum/25-install-update/907367-error-after-update#357106 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1.26  Hi  I updated from 5.0 to 5.2 and then had the following error.  call to a member function getargument() on string  This meant I could not access the Joomla home dashboard without the same error.  I have reverted the site back to 5.0 for the time being.  Incidentally I never received a notification to update to Hikashop 5.1 either.  Thanks  David")* was created by *[davec](/forum/user/7092-davec "View davec's Profile")*

-- HikaShop version -- : 5.0.0
-- Joomla version -- : 4.4.1
-- PHP version -- : 8.1.26

Hi

I updated from 5.0 to 5.2 and then had the following error.

**call to a member function getargument() on string**

This meant I could not access the Joomla home dashboard without the same error.

I have reverted the site back to 5.0 for the time being.

Incidentally I never received a notification to update to Hikashop 5.1 either.

Thanks

David

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzM2Ny1lcnJvci1hZnRlci11cGRhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

2 years 11 months ago [\#357108](#357108) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error After Update](/forum/25-install-update/907367-error-after-update#357108 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1.26  Hi  I updated from 5.0 to 5.2 and then had the following error.  call to a member function getargument() on string  This meant I could not access the Joomla home dashboard without the same error.  I have reverted the site back to 5.0 for the time being.  Incidentally I never received a notification to update to Hikashop 5.1 either.  Thanks  David")*

Hi,

That's normal, the 5.0.2 was released just a few days after the 5.0.1. We had not activated the update notifications for the 5.0.1 at the time.

Regarding the error, it's hard to say anything like that. Please reproduce the issue after activating the "debug" setting of the Joomla configuration. That way, you'll get the full error message.
There are only two places where a method getArgument is called in HikaShop:
1. In the file administrator/components/com_hikashop/pluginCompatJ4.php there is this code: Code:

$class = get_class($arguments[0]); if(substr($class, 0, 7) == 'Joomla\\') { .... if(!empty($result)) { $results = $arguments[0]-&gt;getArgument('result', []); .... } .... }

So for this call to getArgument to generate this error, it would mean that Code:

$arguments[0]

is a string. However, if that was the case, Code:

get_class($arguments[0]);

would return an error first and it would definitely not go inside the Code:

if(substr($class, 0, 7) == 'Joomla\\') {

and thus the line with getArgument would be called.
So that means that the error can't be from there.
2. In plugins/quickicon/hikashop/hikashop.php there is this code: Code:

if(!is_null($context) &amp;&amp; !is_string($context)) { $resultArray = $context-&gt;getArgument('result', []); .... }

For this error to happen there, $context needs to be a string. However, in the line Code:

if(!is_null($context) &amp;&amp; !is_string($context)) {

HikaShop checks that $context is not a string. So again, it shouldn't be possible that this code generates the error.

What this all means is that with that short error message, I don't see what could be the problem. The full error message (with the debug activated) would probably help. However, what's likely is that one of these two files have permissions which prevented the Joomla installer from updating them when HikaShop was updated. So one thing you could check if you're able to reproduce the issue is these pieces of code I provided above and make sure you have the same as me. Chances are that the version of one of these files is not the 5.0.2 (you can see the version number at the beginning of the file) because of this permission issue I talked about. So manually copying the files from the install package via FTP would solve the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzM2Ny1lcnJvci1hZnRlci11cGRhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[multigeo](/forum/user/41399-multigeo "View multigeo's Profile")**
- [![multigeo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41399-multigeo "View multigeo's Profile")
- [ Offline](/forum/user/41399-multigeo)

Less More

- Posts: 26
- Thank you received: 3
-
-

2 years 11 months ago -  2 years 11 months ago [\#357125](#357125) by [multigeo](/forum/user/41399-multigeo "View multigeo's Profile")  Replied by *[multigeo](/forum/user/41399-multigeo "View multigeo's Profile")* on topic *[Error After Update](/forum/25-install-update/907367-error-after-update#357125 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1.26  Hi  I updated from 5.0 to 5.2 and then had the following error.  call to a member function getargument() on string  This meant I could not access the Joomla home dashboard without the same error.  I have reverted the site back to 5.0 for the time being.  Incidentally I never received a notification to update to Hikashop 5.1 either.  Thanks  David")*

Hi Nicholas,
I got the same error and will also revert to 5.0.0
I attached Call Stacks from both Joomla and JoomlaShack ErrorNotify.
Both essentially provide the same info, but there are some small differences.
Hope this will help you in tracking things down.

Another thing: I verified and the correct files have been installed, no old files from v5.0.0 left as you suggested might possibly be the case.

The error seems to be only related to the back end, the front end seems to be working ok, although I have not tried all functions.

Happy hunting ![:)](/media/kunena/emoticons/3.png ":)")

Last edit: 2 years 11 months ago by [multigeo](/forum/user/41399-multigeo "View multigeo's Profile"). Reason: Added attachments

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzM2Ny1lcnJvci1hZnRlci11cGRhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

2 years 11 months ago [\#357128](#357128) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error After Update](/forum/25-install-update/907367-error-after-update#357128 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1.26  Hi  I updated from 5.0 to 5.2 and then had the following error.  call to a member function getargument() on string  This meant I could not access the Joomla home dashboard without the same error.  I have reverted the site back to 5.0 for the time being.  Incidentally I never received a notification to update to Hikashop 5.1 either.  Thanks  David")*

Hi,

Thanks !
I'm not sure why this is happening. The code shouldn't allow for it.
I've made a patch to reinforce the protection there to avoid the error.
Please try again with the new install package available on our website for the 5.0.2. It should hopefully be enough.

The following user(s) said Thank You: [davec](/forum/user/7092-davec "View davec's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzM2Ny1lcnJvci1hZnRlci11cGRhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[pat01](/forum/user/58191-pat01 "View pat01's Profile")**
- [![pat01's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58191-pat01 "View pat01's Profile")
- [ Offline](/forum/user/58191-pat01)

Less More

- Posts: 48
- Thank you received: 4
-

2 years 11 months ago [\#357139](#357139) by [pat01](/forum/user/58191-pat01 "View pat01's Profile")  Replied by *[pat01](/forum/user/58191-pat01 "View pat01's Profile")* on topic *[Error After Update](/forum/25-install-update/907367-error-after-update#357139 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1.26  Hi  I updated from 5.0 to 5.2 and then had the following error.  call to a member function getargument() on string  This meant I could not access the Joomla home dashboard without the same error.  I have reverted the site back to 5.0 for the time being.  Incidentally I never received a notification to update to Hikashop 5.1 either.  Thanks  David")*

Hi

It's the **HikaShop Quickicon plugin** causing the error. Disabling it makes the error go away.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzM2Ny1lcnJvci1hZnRlci11cGRhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[davec](/forum/user/7092-davec "View davec's Profile")**
- [![davec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7092-davec "View davec's Profile") Topic Author
- [ Offline](/forum/user/7092-davec)

Less More

- Posts: 447
- Thank you received: 20
-
-

2 years 11 months ago [\#357141](#357141) by [davec](/forum/user/7092-davec "View davec's Profile")  Replied by *[davec](/forum/user/7092-davec "View davec's Profile")* on topic *[Error After Update](/forum/25-install-update/907367-error-after-update#357141 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1.26  Hi  I updated from 5.0 to 5.2 and then had the following error.  call to a member function getargument() on string  This meant I could not access the Joomla home dashboard without the same error.  I have reverted the site back to 5.0 for the time being.  Incidentally I never received a notification to update to Hikashop 5.1 either.  Thanks  David")*

I uploaded the patched version and the error was no longer present.

Dave ![B)](/media/kunena/emoticons/9.png "B)")

The following user(s) said Thank You: [multigeo](/forum/user/41399-multigeo "View multigeo's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzM2Ny1lcnJvci1hZnRlci11cGRhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

2 years 11 months ago [\#357143](#357143) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error After Update](/forum/25-install-update/907367-error-after-update#357143 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1.26  Hi  I updated from 5.0 to 5.2 and then had the following error.  call to a member function getargument() on string  This meant I could not access the Joomla home dashboard without the same error.  I have reverted the site back to 5.0 for the time being.  Incidentally I never received a notification to update to Hikashop 5.1 either.  Thanks  David")*

Hi,

We know. That's what the debug provided by @multigeo said. However, the patch I made yesterday should help. Did you try updating to the new build in order to get the patch I've added in the quickicon plugin ?

The following user(s) said Thank You: [multigeo](/forum/user/41399-multigeo "View multigeo's Profile"), [pat01](/forum/user/58191-pat01 "View pat01's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzM2Ny1lcnJvci1hZnRlci11cGRhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[pat01](/forum/user/58191-pat01 "View pat01's Profile")**
- [![pat01's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58191-pat01 "View pat01's Profile")
- [ Offline](/forum/user/58191-pat01)

Less More

- Posts: 48
- Thank you received: 4
-

2 years 11 months ago [\#357146](#357146) by [pat01](/forum/user/58191-pat01 "View pat01's Profile")  Replied by *[pat01](/forum/user/58191-pat01 "View pat01's Profile")* on topic *[Error After Update](/forum/25-install-update/907367-error-after-update#357146 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1.26  Hi  I updated from 5.0 to 5.2 and then had the following error.  call to a member function getargument() on string  This meant I could not access the Joomla home dashboard without the same error.  I have reverted the site back to 5.0 for the time being.  Incidentally I never received a notification to update to Hikashop 5.1 either.  Thanks  David")*

I downloaded and installed the ZIP package about an hour before I wrote my post. So, the issue was there.

I downloaded and installed it just now again and the issue has gone. The quick icon is working now.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzM2Ny1lcnJvci1hZnRlci11cGRhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[multigeo](/forum/user/41399-multigeo "View multigeo's Profile")**
- [![multigeo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41399-multigeo "View multigeo's Profile")
- [ Offline](/forum/user/41399-multigeo)

Less More

- Posts: 26
- Thank you received: 3
-
-

2 years 11 months ago [\#357394](#357394) by [multigeo](/forum/user/41399-multigeo "View multigeo's Profile")  Replied by *[multigeo](/forum/user/41399-multigeo "View multigeo's Profile")* on topic *[Error After Update](/forum/25-install-update/907367-error-after-update#357394 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1.26  Hi  I updated from 5.0 to 5.2 and then had the following error.  call to a member function getargument() on string  This meant I could not access the Joomla home dashboard without the same error.  I have reverted the site back to 5.0 for the time being.  Incidentally I never received a notification to update to Hikashop 5.1 either.  Thanks  David")*

Same here.
Thanks very much Nicholas!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzM2Ny1lcnJvci1hZnRlci11cGRhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Seahawk](/forum/user/68955-seahawk "View Seahawk's Profile")**
- [![Seahawk's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/68955-seahawk "View Seahawk's Profile")
- [ Offline](/forum/user/68955-seahawk)

Less More

- Posts: 11
- Thank you received: 1
-
-

2 years 11 months ago [\#357404](#357404) by [Seahawk](/forum/user/68955-seahawk "View Seahawk's Profile")  Replied by *[Seahawk](/forum/user/68955-seahawk "View Seahawk's Profile")* on topic *[Error After Update](/forum/25-install-update/907367-error-after-update#357404 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1.26  Hi  I updated from 5.0 to 5.2 and then had the following error.  call to a member function getargument() on string  This meant I could not access the Joomla home dashboard without the same error.  I have reverted the site back to 5.0 for the time being.  Incidentally I never received a notification to update to Hikashop 5.1 either.  Thanks  David")*

Had the same error just after installation.

I cleared the cache and then it seems to work fine.

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNzM2Ny1lcnJvci1hZnRlci11cGRhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.102 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
