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

#   Warning after update to 2.0

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

9 years 2 weeks ago [\#281245](#281245) by [TInkyWinky](/forum/user/51674-tinkywinky "View TInkyWinky's Profile")  *[Warning after update to 2.0](/forum/22-market-bug-report/892513-warning-after-update-to-2-0#281245 "-- HikaShop version -- : 3.2.1 -- HikaMarket version -- : 2.0 -- Joomla version -- : 3.8.1 -- PHP version -- : 7 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Warning: Parameter 1 to plgHikamarketVendorlocationfilter::onBeforeVendorListingDisplay() expected to be a reference, value given in P:&#92;Programs&#92;XAMPP&#92;htdocs&#92;globaltest&#92;libraries&#92;joomla&#92;event&#92;event.php on line 70  Hi all, it's not a critical bug, it's just a new warning that came up after the upgrade to HikaMarket 2.0 and I wanted you to know. It's within the vendorlocationfilter Plugin. HikaShop Plugin has no warnings at all. :-)  Regards, Fabio")* was created by *[TInkyWinky](/forum/user/51674-tinkywinky "View TInkyWinky's Profile")*

-- HikaShop version -- : 3.2.1
-- HikaMarket version -- : 2.0
-- Joomla version -- : 3.8.1
-- PHP version -- : 7
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Warning: Parameter 1 to plgHikamarketVendorlocationfilter::onBeforeVendorListingDisplay() expected to be a reference, value given in P:\Programs\XAMPP\htdocs\globaltest\libraries\joomla\event\event.php on line 70

Hi all,
it's not a critical bug, it's just a new warning that came up after the upgrade to HikaMarket 2.0 and I wanted you to know.
It's within the vendorlocationfilter Plugin. HikaShop Plugin has no warnings at all. ![:-)](/media/kunena/emoticons/3.png ":-)")

Regards,
Fabio

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

9 years 2 weeks ago [\#281252](#281252) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Warning after update to 2.0](/forum/22-market-bug-report/892513-warning-after-update-to-2-0#281252 "-- HikaShop version -- : 3.2.1 -- HikaMarket version -- : 2.0 -- Joomla version -- : 3.8.1 -- PHP version -- : 7 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Warning: Parameter 1 to plgHikamarketVendorlocationfilter::onBeforeVendorListingDisplay() expected to be a reference, value given in P:&#92;Programs&#92;XAMPP&#92;htdocs&#92;globaltest&#92;libraries&#92;joomla&#92;event&#92;event.php on line 70  Hi all, it's not a critical bug, it's just a new warning that came up after the upgrade to HikaMarket 2.0 and I wanted you to know. It's within the vendorlocationfilter Plugin. HikaShop Plugin has no warnings at all. :-)  Regards, Fabio")*

Hello,

I'm sorry but the function in the plugin is Code:

public function onBeforeVendorListingDisplay(&amp;$view, &amp;$params) {

And the trigger is called in one single file and its code is Code:

JFactory::getApplication()-&gt;triggerEvent('onBeforeVendorListingDisplay', array(&amp;$this, &amp;$trigger_params));

So both are using a reference for the first parameter.

I don't know if you have custom code but I cannot see the issue you're describing.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

9 years 2 weeks ago [\#281266](#281266) by [TInkyWinky](/forum/user/51674-tinkywinky "View TInkyWinky's Profile")  Replied by *[TInkyWinky](/forum/user/51674-tinkywinky "View TInkyWinky's Profile")* on topic *[Warning after update to 2.0](/forum/22-market-bug-report/892513-warning-after-update-to-2-0#281266 "-- HikaShop version -- : 3.2.1 -- HikaMarket version -- : 2.0 -- Joomla version -- : 3.8.1 -- PHP version -- : 7 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Warning: Parameter 1 to plgHikamarketVendorlocationfilter::onBeforeVendorListingDisplay() expected to be a reference, value given in P:&#92;Programs&#92;XAMPP&#92;htdocs&#92;globaltest&#92;libraries&#92;joomla&#92;event&#92;event.php on line 70  Hi all, it's not a critical bug, it's just a new warning that came up after the upgrade to HikaMarket 2.0 and I wanted you to know. It's within the vendorlocationfilter Plugin. HikaShop Plugin has no warnings at all. :-)  Regards, Fabio")*

Hello Jerome, thanks again for your quick reply.

You're totally right here, the call that seems to make problems is event.php in joomla libraries. I did do some modifications, that's why I also tried on a clean installation. Same issue. I'm not a php developer and I'm currently digging myself into this. I now think it's probably not a HikaShop issue but I thought maybe you'd see the issue right away.

The call which produces the warning is following:
Code:

return call_user_func_array(array($this, $event), $args);

$args should be an array reference as here is the complete code snippet Code:

/** * Method to trigger events. * The method first generates the even from the argument array. Then it unsets the argument * since the argument has no bearing on the event handler. * If the method exists it is called and returns its return value. If it does not exist it * returns null. * * @param array &amp;$args Arguments * * @return mixed Routine return value * * @since 11.1 */ public function update(&amp;$args) { // First let's get the event from the argument array. Next we will unset the // event argument as it has no bearing on the method to handle the event. $event = $args['event']; unset($args['event']); /* * If the method to handle an event exists, call it and return its return * value. If it does not exist, return null. */ if (method_exists($this, $event)) { return call_user_func_array(array($this, $event), $args); } }

As I already said I'm a newbie in php. I tried to pass &amp;$args instead of $args, but this resulted in an invalid php file.
I'd appreciate any quick suggestion how to approach such a happening.

Best Regards,
Fabio

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

9 years 2 weeks ago [\#281275](#281275) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Warning after update to 2.0](/forum/22-market-bug-report/892513-warning-after-update-to-2-0#281275 "-- HikaShop version -- : 3.2.1 -- HikaMarket version -- : 2.0 -- Joomla version -- : 3.8.1 -- PHP version -- : 7 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Warning: Parameter 1 to plgHikamarketVendorlocationfilter::onBeforeVendorListingDisplay() expected to be a reference, value given in P:&#92;Programs&#92;XAMPP&#92;htdocs&#92;globaltest&#92;libraries&#92;joomla&#92;event&#92;event.php on line 70  Hi all, it's not a critical bug, it's just a new warning that came up after the upgrade to HikaMarket 2.0 and I wanted you to know. It's within the vendorlocationfilter Plugin. HikaShop Plugin has no warnings at all. :-)  Regards, Fabio")*

Hello,

So if it's related to Joomla itself ; you should report the warning to Joomla.
There is nothing I can do in HikaMarket since it using the same code than in the Joomla core :
[ github.com/joomla/joomla-cms/blob/bcf386...oduleHelper.php#L272](https://github.com/joomla/joomla-cms/blob/bcf3868230408c7f91c1bb73b1c5990668667fa8/libraries/src/Helper/ModuleHelper.php#L272)
[ github.com/joomla/joomla-cms/blob/6e07ca...ls/searches.php#L151](https://github.com/joomla/joomla-cms/blob/6e07ca6fadd8a5d1db3337cf0357d782646f5411/administrator/components/com_search/models/searches.php#L151)
[ github.com/joomla/joomla-cms/blob/7ab744...pers/fields.php#L459](https://github.com/joomla/joomla-cms/blob/7ab744f7b320cf4334b28a69615b292bfc8747a7/administrator/components/com_fields/helpers/fields.php#L459)
( etc )

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg5MjUxMy13YXJuaW5nLWFmdGVyLXVwZGF0ZS10by0yLTA/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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.062 seconds

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