Some PHP warnings

  • Posts: 317
  • Thank you received: 17
  • Hikashop Business
9 months 2 weeks ago #358800

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4.2
-- PHP version -- : 8.2.15

I get some PHP warnings in error log. Admin log:
PHP Warning: Undefined array key 0 in /administrator/components/com_hikashop/classes/product.php on line 4681
PHP Warning: Undefined property: stdClass::$order in /media/com_hikashop/mail/order_notification.text.php on line 12
PHP Warning: Attempt to read property "order_number" on null in /media/com_hikashop/mail/order_notification.text.php on line 12

Page log:
PHP Warning: file(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /plugins/hikashop/rates/rates.php on line 302
PHP Warning: file( www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml ): Failed to open stream: no suitable wrapper could be found in /plugins/hikashop/rates/rates.php on line 302

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 months 2 weeks ago #358807

Hi,

Thank you for your feedback.
For the 3 warning messages from the admin log, I've made some patches to fix them in future versions of HikaShop.
These are small issues that don't cause problem for now. You can ignore them and when you update your HikaShop to the next version in the future, you'll get patches for it.

For the last 2 warning messages, these indicate that you've activated the HikaShop rates auto update plugin via the Joomla plugins manager but that the configuration of your server doesn't allow your website to access outside URLs, which are necessary for this plugin to work. And thus, your currencies rates are not being updated.
So either you need to disable this plugin if you don't have several currencies on your website, or you need to check with your hosting support how you can enable the allow_url_fopen setting of your php.ini to allow for this plugin to work.

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

  • Posts: 317
  • Thank you received: 17
  • Hikashop Business
8 months 4 weeks ago #359301

Thank you

I have some new ones in admin. I don't want to be annoying, I just want to help make the system as good as possible.

PHP Warning: Attempt to read property "user_email" on null in xxx/media/com_hikashop/mail/cart_reminder.preload.php on line 4
PHP Warning: Attempt to read property "user_email" on null in xxx/administrator/components/com_hikashop/classes/cart.php on line 4259
PHP Warning: Attempt to read property "user_email" on null in xxx/administrator/components/com_hikashop/classes/cart.php on line 4262

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 months 4 weeks ago #359308

Hi,

Thank you for your feedback. We've published a new version of the reminder plugin in order to fix these warnings:
www.hikashop.com/marketplace/product/241-reminder-plugin.html

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

  • Posts: 317
  • Thank you received: 17
  • Hikashop Business
8 months 1 day ago #359928

New one:
PHP Warning: Undefined property: stdClass::$link in xxx/components/com_hikashop/controllers/checkout.php on line 151

and those 2 with same time stamp:
PHP Warning: Undefined property: stdClass::$order_status in xxx/plugins/system/hikashop_ga4/hikashop_ga4.php on line 219
PHP Warning: Undefined property: stdClass::$order_status in xxx/administrator/components/com_awocoupon/helper/estore/hikashop/class-awocoupon-helper-estore-hikashop-giftcert.php on line 238

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 months 23 hours ago #359930

Hi,

Thank you for your feedback.

1. I've made a patch for the first warning for the next version of HikaShop which is to be released soon.

2. We've made a new release of the Google Analytics plugin with a patch for this warning:
www.hikashop.com/marketplace/product/108...egration-google.html

3. This warning is in AWOCoupon. You need to report it to the developer of this extension.

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

  • Posts: 317
  • Thank you received: 17
  • Hikashop Business
6 months 2 days ago #361122

I have another one.
PHP Warning: Undefined property: stdClass::$mail_name in xxx/plugins/actionlog/hikashop/hikashop.php on line 903
PHP Warning: Undefined property: stdClass::$order_number in xxx/plugins/actionlog/hikashop/hikashop.php on line 223
PHP Warning: Undefined property: stdClass::$product_type in xxx/plugins/actionlog/hikashop/hikashop.php on line 46
PHP Warning: Undefined property: stdClass::$product_name in xxx/plugins/actionlog/hikashop/hikashop.php on line 54

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 months 1 day ago #361142

Hi,

Thank you for your feedback.
We've published today a new version of the action log plugin in order to fix these warnings:
www.hikashop.com/marketplace/product/161-action-log.html

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

  • Posts: 317
  • Thank you received: 17
  • Hikashop Business
5 months 4 weeks ago #361178

I still get PHP Warning: Undefined property: stdClass::$link in xxx/components/com_hikashop/controllers/checkout.php on line 151

Hika 5.0.4

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 months 4 weeks ago #361180

Hi,

indeed, I think I was a bit hasty with the previous patch. I've done a new one for this for the next version.

The following user(s) said Thank You: mojweb

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

Time to create page: 0.073 seconds
Powered by Kunena Forum