Author Topic: Warning Messages from Error Log  (Read 5060 times)

Offline quekbhj

  • Full Member
  • ***
  • Posts: 133
  • Karma: +4/-1
    • View Profile
Warning Messages from Error Log
« on: October 14, 2013, 10:18:00 AM »
Hi Support

I had upgraded AbanteCart version 1.1.6 to 1.1.7 and noticed some warning messages keep appearing from error log file and need your advise.

1. 2013-09-25 15:47:41 - warning:  AbanteCart core v.1.1.7 Invalid argument supplied for foreach() in <b>/home/todearth/public_html/admin/controller/responses/listing_grid/blocks_grid.php</b> on line <b>71</b>

2.2013-09-25 22:47:07 - App Warning:  AbanteCart core v.1.1.7 Warning: Accessing store with unconfigured or unknown domain ( TODDLEREARTH.COM/ ).
 Check setting of your store domain URL in System Settings . Loading default store configuration for now. in /home/todearth/public_html/core/lib/config.php on line 169
[Verified] I had checked the setting of the store domain URL is set correctly.

3. 2013-09-26 3:10:50 - warning:  AbanteCart core v.1.1.7 array_diff() [<a href='function.array-diff'>function.array-diff</a>]: Argument #1 is not an array in <b>/home/todearth/public_html/admin/controller/pages/localisation/location.php</b> on line <b>256</b>


Regards
Jasmine

Offline junkyard

  • Full Member
  • ***
  • Posts: 127
  • Karma: +25/-0
    • View Profile
Re: Warning Messages from Error Log
« Reply #1 on: October 15, 2013, 03:29:25 AM »
+1
experiencing similar warnings in log as well:

2013-10-14 21:38:42 -
2013-10-14 21:39:12 - warning:  AbanteCart core v.1.1.7 Division by zero in <b>/home/user1/public_html/core/helper/utils.php</b> on line <b>624</b>
2013-10-14 21:39:23 - warning:  AbanteCart core v.1.1.7 Division by zero in <b>/home/user1/public_html/core/helper/utils.php</b> on line <b>624</b>
2013-10-14 21:39:30 -
...
2013-10-15 10:21:42 -
2013-10-15 10:21:46 - warning:  AbanteCart core v.1.1.7 Invalid argument supplied for foreach() in <b>/home/user1/public_html/admin/controller/responses/listing_grid/blocks_grid.php</b> on line <b>71</b>
2013-10-15 10:21:57 -

Is this something to be wary about,  any specific reason it's happening?

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Warning Messages from Error Log
« Reply #2 on: October 15, 2013, 07:43:27 AM »
Division by zero is rare case condition and I fixed it for next version. No real harm.

The rest of warning, still checking.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Warning Messages from Error Log
« Reply #3 on: October 15, 2013, 07:52:28 AM »
Hi Support

I had upgraded AbanteCart version 1.1.6 to 1.1.7 and noticed some warning messages keep appearing from error log file and need your advise.

1. 2013-09-25 15:47:41 - warning:  AbanteCart core v.1.1.7 Invalid argument supplied for foreach() in <b>/home/todearth/public_html/admin/controller/responses/listing_grid/blocks_grid.php</b> on line <b>71</b>

2.2013-09-25 22:47:07 - App Warning:  AbanteCart core v.1.1.7 Warning: Accessing store with unconfigured or unknown domain ( TODDLEREARTH.COM/ ).
 Check setting of your store domain URL in System Settings . Loading default store configuration for now. in /home/todearth/public_html/core/lib/config.php on line 169
[Verified] I had checked the setting of the store domain URL is set correctly.

3. 2013-09-26 3:10:50 - warning:  AbanteCart core v.1.1.7 array_diff() [<a href='function.array-diff'>function.array-diff</a>]: Argument #1 is not an array in <b>/home/todearth/public_html/admin/controller/pages/localisation/location.php</b> on line <b>256</b>


Regards
Jasmine

1. it's not an error, just warning. You can add
Code: [Select]
$tmp = array(); in line 47, before 
Code: [Select]
foreach ($blocks as $block) {....in file public_html/admin/controller/responses/listing_grid/blocks_grid.php to fix it.

2. can you please post values of urls settings of your abantecart? Did you use some another domain for this host?

3. to fix it replace 
Code: [Select]
$this->request->post['zone_id'] = array_diff($this->request->post['zone_id'], $exists);to
Code: [Select]
$this->request->post['zone_id'] = array_diff((array)$this->request->post['zone_id'], $exists);
in line 256 of file public_html/admin/controller/pages/localisation/location.php
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline quekbhj

  • Full Member
  • ***
  • Posts: 133
  • Karma: +4/-1
    • View Profile
Re: Warning Messages from Error Log
« Reply #4 on: October 15, 2013, 10:42:26 AM »
Hi

Refering to point 3, I have replaced the code as per instruction.
Did not get warning from the log file, however, it does not working on the location.
When added a new ctry inside the location zone, it does not appear.
When I revert back the previous version of location.php, it work when added a new ctry inside the location zone but will get the warning message from the log file.

Need your further advise on this.

Thank you
Jasmine

 

Powered by SMFPacks Social Login Mod