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

#   method\_exists(): Argument #1 error as below after Joomla upgrade

##

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

Less More

- Posts: 28
- Thank you received: 4
-
-

2 years 3 months ago [\#361906](#361906) by [aspirationimages](/forum/user/57967-aspirationimages "View aspirationimages's Profile")  *[method\_exists(): Argument #1 error as below after Joomla upgrade](/forum/25-install-update/908354-method-exists-argument-1-error-as-below-after-joomla-upgrade#361906 "-- url of the page with the problem -- :   aspirationimages.com  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.1 -- PHP version -- : 8.2.20 -- Browser(s) name and version -- : Safari 17.5 -- Error-message(debug-mod must be tuned on) -- : method&#95;exists(): Argument #1 ($object&#95;or&#95;class) must be of type object|string, bool given  Hi, After upgrading Joomla to 5.1.1 I am getting error method&#95;exists(): Argument #1 ($object&#95;or&#95;class) must be of type object|string, bool given when trying to access Orders tab in Hikashop as per photo.  Any solution please? bob")* was created by *[aspirationimages](/forum/user/57967-aspirationimages "View aspirationimages's Profile")*

-- url of the page with the problem -- : [ aspirationimages.com](https://aspirationimages.com)
-- HikaShop version -- : 5.1.0
-- Joomla version -- : 5.1.1
-- PHP version -- : 8.2.20
-- Browser(s) name and version -- : Safari 17.5
-- Error-message(debug-mod must be tuned on) -- : method_exists(): Argument #1 ($object_or_class) must be of type object&#124;string, bool given

Hi,
After upgrading Joomla to 5.1.1 I am getting error method_exists(): Argument #1 ($object_or_class) must be of type object&#124;string, bool given
when trying to access Orders tab in Hikashop as per photo.

Any solution please?
bob

- [ ![Screenshot2024-07-06at3.48.40pm.png](/forum/attachment/59462) ](/forum/attachment/59462 "...t3.48.40pm.png") [ ](/forum/attachment/59462?download=1 "...t3.48.40pm.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODM1NC1tZXRob2QtZXhpc3RzLWFyZ3VtZW50LTEtZXJyb3ItYXMtYmVsb3ctYWZ0ZXItam9vbWxhLXVwZ3JhZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14285
-
-

2 years 3 months ago [\#361909](#361909) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[method\_exists(): Argument #1 error as below after Joomla upgrade](/forum/25-install-update/908354-method-exists-argument-1-error-as-below-after-joomla-upgrade#361909 "-- url of the page with the problem -- :   aspirationimages.com  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.1 -- PHP version -- : 8.2.20 -- Browser(s) name and version -- : Safari 17.5 -- Error-message(debug-mod must be tuned on) -- : method&#95;exists(): Argument #1 ($object&#95;or&#95;class) must be of type object|string, bool given  Hi, After upgrading Joomla to 5.1.1 I am getting error method&#95;exists(): Argument #1 ($object&#95;or&#95;class) must be of type object|string, bool given when trying to access Orders tab in Hikashop as per photo.  Any solution please? bob")*

Hi,

We'll need the full error message to be able to understand what's going on.
Please activate the "debug" setting of the Joomla configuration and try again. You'll then get the full error message on that page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODM1NC1tZXRob2QtZXhpc3RzLWFyZ3VtZW50LTEtZXJyb3ItYXMtYmVsb3ctYWZ0ZXItam9vbWxhLXVwZ3JhZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 28
- Thank you received: 4
-
-

2 years 3 months ago [\#361917](#361917) by [aspirationimages](/forum/user/57967-aspirationimages "View aspirationimages's Profile")  Replied by *[aspirationimages](/forum/user/57967-aspirationimages "View aspirationimages's Profile")* on topic *[method\_exists(): Argument #1 error as below after Joomla upgrade](/forum/25-install-update/908354-method-exists-argument-1-error-as-below-after-joomla-upgrade#361917 "-- url of the page with the problem -- :   aspirationimages.com  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.1 -- PHP version -- : 8.2.20 -- Browser(s) name and version -- : Safari 17.5 -- Error-message(debug-mod must be tuned on) -- : method&#95;exists(): Argument #1 ($object&#95;or&#95;class) must be of type object|string, bool given  Hi, After upgrading Joomla to 5.1.1 I am getting error method&#95;exists(): Argument #1 ($object&#95;or&#95;class) must be of type object|string, bool given when trying to access Orders tab in Hikashop as per photo.  Any solution please? bob")*

Thanks. This is what I got.

An error has occurred.
0 method_exists(): Argument #1 ($object_or_class) must be of type object&#124;string, bool given
Call Stack
\# Function Location
1 () JROOT/administrator/components/com_hikashop/classes/shipping.php:883
2 method_exists() JROOT/administrator/components/com_hikashop/classes/shipping.php:883
3 hikashopShippingClass-&gt;getShippingName() JROOT/administrator/components/com_hikashop/classes/shipping.php:823
4 hikashopShippingClass-&gt;getAllShippingNames() JROOT/administrator/components/com_hikashop/views/order/tmpl/listing.php:272
5 include() JROOT/libraries/src/MVC/View/HtmlView.php:416
6 Joomla\CMS\MVC\View\HtmlView-&gt;loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2799
7 hikashopView-&gt;loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:204
8 Joomla\CMS\MVC\View\HtmlView-&gt;display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2753
9 hikashopView-&gt;display() JROOT/administrator/components/com_hikashop/views/order/view.html.php:30
10 OrderViewOrder-&gt;display() JROOT/libraries/src/MVC/Controller/BaseController.php:697
11 Joomla\CMS\MVC\Controller\BaseController-&gt;display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2460
12 hikashopController-&gt;display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2196
13 hikashopController-&gt;listing() JROOT/libraries/src/MVC/Controller/BaseController.php:730
14 Joomla\CMS\MVC\Controller\BaseController-&gt;execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2438
15 hikashopController-&gt;execute() JROOT/administrator/components/com_hikashop/hikashop.php:73
16 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
17 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
18 Joomla\CMS\Dispatcher\LegacyComponentDispatcher-&gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
19 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:150
20 Joomla\CMS\Application\AdministratorApplication-&gt;dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:195
21 Joomla\CMS\Application\AdministratorApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:306
22 Joomla\CMS\Application\CMSApplication-&gt;execute() JROOT/administrator/includes/app.php:58
23 require_once() JROOT/administrator/index.php:32

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODM1NC1tZXRob2QtZXhpc3RzLWFyZ3VtZW50LTEtZXJyb3ItYXMtYmVsb3ctYWZ0ZXItam9vbWxhLXVwZ3JhZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14285
-
-

2 years 3 months ago [\#361928](#361928) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[method\_exists(): Argument #1 error as below after Joomla upgrade](/forum/25-install-update/908354-method-exists-argument-1-error-as-below-after-joomla-upgrade#361928 "-- url of the page with the problem -- :   aspirationimages.com  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.1 -- PHP version -- : 8.2.20 -- Browser(s) name and version -- : Safari 17.5 -- Error-message(debug-mod must be tuned on) -- : method&#95;exists(): Argument #1 ($object&#95;or&#95;class) must be of type object|string, bool given  Hi, After upgrading Joomla to 5.1.1 I am getting error method&#95;exists(): Argument #1 ($object&#95;or&#95;class) must be of type object|string, bool given when trying to access Orders tab in Hikashop as per photo.  Any solution please? bob")*

Hi,

Thanks ! That's exactly what I needed.
I don't that the error is linked to the update of Joomla. I think it comes from an update of PHP as well as the use of a shipping plugin for an order of your orders listing which has been disabled or uninstalled.
Change the line: Code:

if(method_exists($shippingMethod, 'shippingMethods'))

to: Code:

if(!empty($shippingMethod) &amp;&amp; method_exists($shippingMethod, 'shippingMethods'))

in the file administrator/components/com_hikashop/classes/shipping.php and it should prevent this error.
We'll add the change on our end too for the next version of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODM1NC1tZXRob2QtZXhpc3RzLWFyZ3VtZW50LTEtZXJyb3ItYXMtYmVsb3ctYWZ0ZXItam9vbWxhLXVwZ3JhZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 28
- Thank you received: 4
-
-

2 years 3 months ago [\#361932](#361932) by [aspirationimages](/forum/user/57967-aspirationimages "View aspirationimages's Profile")  Replied by *[aspirationimages](/forum/user/57967-aspirationimages "View aspirationimages's Profile")* on topic *[method\_exists(): Argument #1 error as below after Joomla upgrade](/forum/25-install-update/908354-method-exists-argument-1-error-as-below-after-joomla-upgrade#361932 "-- url of the page with the problem -- :   aspirationimages.com  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.1 -- PHP version -- : 8.2.20 -- Browser(s) name and version -- : Safari 17.5 -- Error-message(debug-mod must be tuned on) -- : method&#95;exists(): Argument #1 ($object&#95;or&#95;class) must be of type object|string, bool given  Hi, After upgrading Joomla to 5.1.1 I am getting error method&#95;exists(): Argument #1 ($object&#95;or&#95;class) must be of type object|string, bool given when trying to access Orders tab in Hikashop as per photo.  Any solution please? bob")*

Thanks. That fixed it.
bob

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODM1NC1tZXRob2QtZXhpc3RzLWFyZ3VtZW50LTEtZXJyb3ItYXMtYmVsb3ctYWZ0ZXItam9vbWxhLXVwZ3JhZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.067 seconds

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