order_admin_notification.html.modified.php

  • Posts: 23
  • Thank you received: 2
10 years 9 months ago #142767

-- url of the page with the problem -- : compministry.org
-- HikaShop version -- :2,2.3
-- Joomla version -- : 2.5.17
-- PHP version -- :5.4

Note: Our Internet Hosting company just upgraded PHP from 5.2 to 5.4

This error occurs in the email notification message sent to Computer Ministry

-- Error-message(Displayed on email)-
Warning: Creating default object from empty value in /home3/compmini/public_html/media/com_hikashop/mail/order_admin_notification.html.modified.php on line 57

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

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

Hi,
It seems like you've done some modifications through your order admin notification email which are creating some issue, so you should check what's wrong between the line line 57 of your file media/com_hikashop/mail/order_admin_notification.html.modified.php and fix it.

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

  • Posts: 23
  • Thank you received: 2
10 years 9 months ago #142832

Yes, we indeed did modify the file. However, it was modified almost 2 years ago and has been working without a problem.
Refer to this post.
www.hikashop.com/forum/4-how-to/50770-or...ion-email.html#51239

We know we need to fix it, was just looking for some direction.

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

  • Posts: 23
  • Thank you received: 2
10 years 9 months ago #142837

This is Line 57

$price->price_value = $data->order_full_price-$tax;


We do not collect sales tax. Not sure if this could be the problem.

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

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

You'll probably find your solution through this thread , so if you apply it you'll have to edit your line 57 by :

if ( !is_object( $price) ) {
  $price = new stdClass(); 
}  
$price->price_value = $data->order_full_price-$tax;
Also, note that if you don't want this kind of issue to show again you can set the "Error Reporting" option to none or System default through "Control panel->Global configuration->Server"

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

  • Posts: 23
  • Thank you received: 2
10 years 9 months ago #142897

Reading the thread as you suggested confirms the fact that our web host update from PHP 5.2 to PHP 5.4 was quite possibly the cause of our errors. Corrected the line 57 as suggested . Will work with the fix and report how it works.

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

  • Posts: 23
  • Thank you received: 2
10 years 9 months ago #143091

Thank you. Fix worked.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum