Internal server error on checkout

  • Troels83
  • Topic Author
10 years 9 months ago #167236

-- url of the page with the problem -- : nyt.fakur-design.dk/en/produkt/gaveartik...dobbeltkort/checkout
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.3.3.
-- PHP version -- : 5.3
-- Browser(s) name and version -- : Chrome 36.0.1985.125
-- Error-message(debug-mod must be tuned on) -- : [Wed Aug 13 10:00:49 2014] [error] [client 89.150.106.101] PHP Notice: Undefined property: stdClass::$order_addresses_fields in /var/www/web237/web/media/com_hikashop/mail/order_creation_notification.text.php on line 78, referer: nyt.fakur-design.dk/da/produkt/gaveartik...dobbeltkort/checkout

[Wed Aug 13 10:00:49 2014] [error] [client 89.150.106.101] PHP Warning: Invalid argument supplied for foreach() in /var/www/web237/web/media/com_hikashop/mail/order_creation_notification.text.php on line 78, referer: nyt.fakur-design.dk/da/produkt/gaveartik...dobbeltkort/checkout

[Wed Aug 13 10:00:49 2014] [error] [client 89.150.106.101] malformed header from script. Bad header=/var/www/web237/dead.letter...: index.php, referer: nyt.fakur-design.dk/da/produkt/gaveartik...dobbeltkort/checkout

[Wed Aug 13 10:00:50 2014] [error] [client 89.150.106.101] File does not exist: /var/www/web237/web/favicon.ico

Hi

I'm currently working on my first HikaShop. The customer had it running on joomla 2.5, and I've upgraded it to newest version of joomla.

The original webhotel is fakur-design.dk
I've created a new webhotel named nyt.fakur-design.dk with a different provider, and moved the solution with akeeba.

All the settings from the old solution are kept.

The problem is that I get an internal server error on checkout. See the posted images.




Any suggestions on a solution?
I'm not great with php, but not a stranger.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #167260

Hello,
Firstly, did you done some changes through the code of your order "order creation notification" email or directly through the "order_creation_notification.text.php" file ?
Also, can you download the last Hikashop version through our website, install it and test it again ?
Thanks.

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

  • Troels83
  • Topic Author
10 years 9 months ago #167376

No, not really. I had a look at it, and searched the forum for an answer, but nothing relevant came up.

The loop that the error log complains about looks like this

	foreach($data->order_addresses_fields as $field){
		$fieldname = $field->field_namekey;
		$address =& $data->order_addresses[$data->cart->billing_address->address_id];
		$billing=str_replace('{'.$fieldname.'}',$fieldsClass->show($field,$address->$fieldname),$billing);
	}
	echo JText::_('HIKASHOP_BILLING_ADDRESS')."\n";
	echo preg_replace('#{(?:(?!}).)*}#i','',$billing)."\n\n";
}
I'll try and do the HikaShop update, but the HikaShop product is not bound to my URL (nyt.fakur-design.dk). And if I change the URL of HikaShop, are the current website at fakur-design.dk still giong to work properly?

Last edit: 10 years 9 months ago by Jerome. Reason: [code] is nice !

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

  • Posts: 26247
  • Thank you received: 4038
  • MODERATOR
10 years 9 months ago #167461

Hi,

I suggest you to update HIkaShop to his latest version (2.3.2).
If you still have some error during the check, you can see to activate the Joomla debug mode or change the value of the "error reporting" (to maximum or development) in the global joomla configuration.
It should help you to have details of the PHP fatal error instead of having the ISP error page.

In the log, you should look for a fatal error, the notices are not critical (in the way that they don't generate the 500 error page).

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.100 seconds
Powered by Kunena Forum