- Posts: 62
- Thank you received: 0
Error - Cannot pass parameter 3 by reference
- joostbloom
-
Topic Author
- Offline
Less
More
7 years 6 months ago #304711
by joostbloom
Error - Cannot pass parameter 3 by reference was created by joostbloom
-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.4
-- PHP version -- : 7.3.2
-- Error-message(debug-mod must be tuned on) -- : 0 - Cannot pass parameter 3 by reference
Hello,
When trying to go to the checkout I got this message: Cannot pass parameter 3 by reference
What can I do to fix this?
regards,
Joost
-- Joomla version -- : 3.9.4
-- PHP version -- : 7.3.2
-- Error-message(debug-mod must be tuned on) -- : 0 - Cannot pass parameter 3 by reference
Hello,
When trying to go to the checkout I got this message: Cannot pass parameter 3 by reference
What can I do to fix this?
regards,
Joost
Please Log in or Create an account to join the conversation.
7 years 6 months ago #304714
by nicolas
Replied by nicolas on topic Error - Cannot pass parameter 3 by reference
Hi,
First, enable the "error reporting" and "debug mode" settings of the Joomla configuration.
That should give an error message with more information which will help us understand where that problem comes from as no one reported us such error message so far.
First, enable the "error reporting" and "debug mode" settings of the Joomla configuration.
That should give an error message with more information which will help us understand where that problem comes from as no one reported us such error message so far.
Please Log in or Create an account to join the conversation.
- joostbloom
-
Topic Author
- Offline
Less
More
- Posts: 62
- Thank you received: 0
7 years 6 months ago #304717
by joostbloom
Replied by joostbloom on topic Error - Cannot pass parameter 3 by reference
Hi Nickolas,
Below you see the errors:
Warning: Declaration of plgHikashoppaymentIDEAL::onPaymentNotification($statuses, $orderID) should be compatible with hikashopPaymentPlugin::onPaymentNotification(&$statuses) in /home/noeranie/domains/zainabstaartenensnackwinkel.nl/public_html/plugins/hikashoppayment/iDEAL/iDEAL.php on line 186
Notice: Undefined property: stdClass::$shipping_address in /home/noeranie/domains/zainabstaartenensnackwinkel.nl/public_html/plugins/hikashopshipping/zipcodes/zipcodes.php on line 117
Notice: Trying to get property 'address_post_code' of non-object in /home/noeranie/domains/zainabstaartenensnackwinkel.nl/public_html/plugins/hikashopshipping/zipcodes/zipcodes.php on line 117
Notice: Undefined property: stdClass::$shipping_address in /home/noeranie/domains/zainabstaartenensnackwinkel.nl/public_html/plugins/hikashopshipping/zipcodes/zipcodes.php on line 117
Notice: Trying to get property 'address_post_code' of non-object in /home/noeranie/domains/zainabstaartenensnackwinkel.nl/public_html/plugins/hikashopshipping/zipcodes/zipcodes.php on line 117
Location
1 () JROOT/components/com_hikashop/views/checkout/tmpl/login_form.php:41
2 include() JROOT/libraries/src/MVC/View/HtmlView.php:697
3 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2182
4 hikashopView->loadTemplate() JROOT/components/com_hikashop/views/checkout/tmpl/login.php:53
5 include() JROOT/libraries/src/MVC/View/HtmlView.php:697
6 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2182
7 hikashopView->loadTemplate() JROOT/components/com_hikashop/views/checkout/tmpl/step.php:153
8 include() JROOT/libraries/src/MVC/View/HtmlView.php:697
9 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2182
10 hikashopView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:230
11 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2165
12 hikashopView->display() JROOT/components/com_hikashop/views/checkout/view_legacy.html.php:48
13 CheckoutViewCheckoutLegacy->display() JROOT/components/com_hikashop/views/checkout/view.html.php:45
14 CheckoutViewCheckout->display() JROOT/libraries/src/MVC/Controller/BaseController.php:672
15 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:1903
16 hikashopController->display() JROOT/components/com_hikashop/controllers/checkout_legacy.php:1858
17 checkoutLegacyController->display() JROOT/components/com_hikashop/controllers/checkout.php:65
18 checkoutController->display() JROOT/components/com_hikashop/controllers/checkout_legacy.php:412
19 checkoutLegacyController->step() JROOT/components/com_hikashop/controllers/checkout.php:80
20 checkoutController->step() JROOT/libraries/src/MVC/Controller/BaseController.php:710
21 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:1881
22 hikashopController->execute() JROOT/components/com_hikashop/hikashop.php:92
23 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
24 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
25 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:194
26 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:233
27 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:196
28 Joomla\CMS\Application\CMSApplication->execute() JROOT/index.php:49
Below you see the errors:
Warning: Declaration of plgHikashoppaymentIDEAL::onPaymentNotification($statuses, $orderID) should be compatible with hikashopPaymentPlugin::onPaymentNotification(&$statuses) in /home/noeranie/domains/zainabstaartenensnackwinkel.nl/public_html/plugins/hikashoppayment/iDEAL/iDEAL.php on line 186
Notice: Undefined property: stdClass::$shipping_address in /home/noeranie/domains/zainabstaartenensnackwinkel.nl/public_html/plugins/hikashopshipping/zipcodes/zipcodes.php on line 117
Notice: Trying to get property 'address_post_code' of non-object in /home/noeranie/domains/zainabstaartenensnackwinkel.nl/public_html/plugins/hikashopshipping/zipcodes/zipcodes.php on line 117
Notice: Undefined property: stdClass::$shipping_address in /home/noeranie/domains/zainabstaartenensnackwinkel.nl/public_html/plugins/hikashopshipping/zipcodes/zipcodes.php on line 117
Notice: Trying to get property 'address_post_code' of non-object in /home/noeranie/domains/zainabstaartenensnackwinkel.nl/public_html/plugins/hikashopshipping/zipcodes/zipcodes.php on line 117
Location
1 () JROOT/components/com_hikashop/views/checkout/tmpl/login_form.php:41
2 include() JROOT/libraries/src/MVC/View/HtmlView.php:697
3 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2182
4 hikashopView->loadTemplate() JROOT/components/com_hikashop/views/checkout/tmpl/login.php:53
5 include() JROOT/libraries/src/MVC/View/HtmlView.php:697
6 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2182
7 hikashopView->loadTemplate() JROOT/components/com_hikashop/views/checkout/tmpl/step.php:153
8 include() JROOT/libraries/src/MVC/View/HtmlView.php:697
9 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2182
10 hikashopView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:230
11 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2165
12 hikashopView->display() JROOT/components/com_hikashop/views/checkout/view_legacy.html.php:48
13 CheckoutViewCheckoutLegacy->display() JROOT/components/com_hikashop/views/checkout/view.html.php:45
14 CheckoutViewCheckout->display() JROOT/libraries/src/MVC/Controller/BaseController.php:672
15 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:1903
16 hikashopController->display() JROOT/components/com_hikashop/controllers/checkout_legacy.php:1858
17 checkoutLegacyController->display() JROOT/components/com_hikashop/controllers/checkout.php:65
18 checkoutController->display() JROOT/components/com_hikashop/controllers/checkout_legacy.php:412
19 checkoutLegacyController->step() JROOT/components/com_hikashop/controllers/checkout.php:80
20 checkoutController->step() JROOT/libraries/src/MVC/Controller/BaseController.php:710
21 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:1881
22 hikashopController->execute() JROOT/components/com_hikashop/hikashop.php:92
23 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
24 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
25 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:194
26 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:233
27 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:196
28 Joomla\CMS\Application\CMSApplication->execute() JROOT/index.php:49
Please Log in or Create an account to join the conversation.
7 years 6 months ago #304718
by nicolas
Replied by nicolas on topic Error - Cannot pass parameter 3 by reference
Hi,
You're using the old checkout system of HikaShop on PHP 7.3.
As this is legacy code it's not supposed to work with the latest version of PHP 7.3.
You should turn off the "checkout legacy" setting of the HikaShop configuration in order to switch to the new checkout system. It will work better than the old and will work nice with PHP 7.3.
You're using the old checkout system of HikaShop on PHP 7.3.
As this is legacy code it's not supposed to work with the latest version of PHP 7.3.
You should turn off the "checkout legacy" setting of the HikaShop configuration in order to switch to the new checkout system. It will work better than the old and will work nice with PHP 7.3.
Please Log in or Create an account to join the conversation.
- joostbloom
-
Topic Author
- Offline
Less
More
- Posts: 62
- Thank you received: 0
7 years 6 months ago #304724
by joostbloom
Replied by joostbloom on topic Error - Cannot pass parameter 3 by reference
Hi Nicolas,
Thanks for the quick reply. This did the trick!
regards,
Joost
Thanks for the quick reply. This did the trick!
regards,
Joost
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 332
- Thank you received: 6
6 years 8 months ago #314944
by LukeDouglas
Replied by LukeDouglas on topic Error - Cannot pass parameter 3 by reference
Nicolas,
There are other legacy settings enabled such as 'Add to Cart legacy', Backend dashboard legacy, and Carousel legacy. If any website is running under PHP 7.3 or higher, should these also be disabled?
There are other legacy settings enabled such as 'Add to Cart legacy', Backend dashboard legacy, and Carousel legacy. If any website is running under PHP 7.3 or higher, should these also be disabled?
Please Log in or Create an account to join the conversation.
6 years 8 months ago #314954
by nicolas
Replied by nicolas on topic Error - Cannot pass parameter 3 by reference
Hi,
No, the legacy settings are supposed to work with PHP 7.3. It's just that they are less tested than the non legacy ones, since the vast majority of people don't use them anymore as they are old stuff.
The main reason you could look at disabling them would be to use the new interfaces which work better and have more features.
For example, after enable the checkout legacy, if you look at the "checkout" tab of the HikaShop configuration, you'll see the new checkout workflow editor which has much more options than the old one.
No, the legacy settings are supposed to work with PHP 7.3. It's just that they are less tested than the non legacy ones, since the vast majority of people don't use them anymore as they are old stuff.
The main reason you could look at disabling them would be to use the new interfaces which work better and have more features.
For example, after enable the checkout legacy, if you look at the "checkout" tab of the HikaShop configuration, you'll see the new checkout workflow editor which has much more options than the old one.
Please Log in or Create an account to join the conversation.
Time to create page: 0.189 seconds