Order >Invoice - Missing argument in preload()

  • Posts: 8
  • Thank you received: 1
13 years 8 months ago #9666

I have installed 'com_hikashop_starter_1.4.7' on a Joomla 1.6 test system.

A test user created an order and went into PayPal, but did not actually complete the order in PayPal. The order is no longer in the Shopping Cart. In the backend, the order appears under 'Components'>'HikaShop'>'Orders'. Selecting the order number, then 'Invoice' results in an invoice popup which contains the following error message:

Warning: Missing argument 1 for hikashopPluginsType::preload(), called in /home/sam002/public_html/administrator/components/com_hikashop/types/plugins.php on line 86 and defined in /home/sam002/public_html/administrator/components/com_hikashop/types/plugins.php on line 15

Is this a bug, or have I failed to do something in the installation?

Thanks in advance, ~Randy

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9668

This message is just a warning because there is indeed a mistake in the code.
You can edit the file adminsitrator/components/com_hikashop/types/plugins.php and change the line:
function preload($backend){
to:
function preload($backend=true){

in order to remove the warning.

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

  • Posts: 66
  • Thank you received: 3
13 years 8 months ago #9860

I had that error also. Modified it an no error anymore.
Will the file be overwritten later during an update?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9862

That modification will be included in next release of course so you won't loose it.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum