AbanteCart Community
Shopping Cart Operations => Support => General Support => Topic started by: quekbhj 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
-
+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?
-
Division by zero is rare case condition and I fixed it for next version. No real harm.
The rest of warning, still checking.
-
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
$tmp = array();
in line 47, before 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 $this->request->post['zone_id'] = array_diff($this->request->post['zone_id'], $exists);
to $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
-
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