Post by stringsetc » Tue Oct 16, 2012 10:46 pm

Hi,

Just discoverd these errors that have appeared in my error log over the last 24 hours.

Anybody got any thoughts?

Thanks

Code: Select all

2012-10-15 15:56:18 - PHP Notice:  Undefined index:  shipping_address_id in /home/www2/public_html/catalog/controller/checkout/shipping.php on line 11
2012-10-15 17:15:29 - PHP Notice:  Undefined index:  shipping_address_id in /home/www2/public_html/catalog/controller/checkout/shipping.php on line 11
2012-10-15 17:47:27 - PHP Notice:  Undefined index:  shipping_address_id in /home/www2/public_html/catalog/controller/checkout/shipping.php on line 11
2012-10-15 18:06:59 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-15 18:18:50 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-15 18:32:25 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-15 18:45:24 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-15 19:01:17 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-15 19:17:15 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-15 20:44:25 - PHP Notice:  Undefined index:  shipping_address_id in /home/www2/public_html/catalog/controller/checkout/shipping.php on line 11
2012-10-16 0:14:42 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 0:27:06 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 0:39:24 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 0:58:01 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 5:14:52 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 5:29:31 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 6:24:07 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 6:27:47 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 6:37:13 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 6:55:03 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 7:22:33 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 7:32:53 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 7:45:01 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 11:57:10 - PHP Notice:  Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
2012-10-16 12:19:30 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 12:36:18 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 12:51:40 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 13:04:20 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 13:12:44 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32
2012-10-16 13:32:51 - PHP Warning:  Division by zero in /home/www2/public_html/system/library/pagination.php on line 32

Active Member

Posts

Joined
Thu Feb 16, 2012 11:59 pm

Post by welfordmedia » Tue Oct 16, 2012 11:43 pm

Hi stringsetc.

In the Admin area under System -> Settings -> Option. What is the value in Default Items Per Page (Catalog) and Default Items Per Page (Admin)?

An awesome Web Development company based in Leeds. E-Commerce Specialists by day, Geeks and Gamers by night

Tel: 0845 634 1838
Web: http://www.welfordmedia.co.uk
Twitter: https://twitter.com/welfordmedia
Facebook: https://www.facebook.com/welfordmedia


User avatar
Active Member

Posts

Joined
Thu Jul 21, 2011 5:59 pm
Location - Leeds, UK

Post by stringsetc » Tue Oct 16, 2012 11:55 pm

15 catalog and 50 admin

hope that helps!

thanks

Active Member

Posts

Joined
Thu Feb 16, 2012 11:59 pm

Post by stringsetc » Wed Oct 17, 2012 1:54 am

anyone else got any thoughts on this? I fear there may be multiple problems as there seem to be a few different error messages coming through. If anybody has experienced any of these people , please let me know.

thanks.

Active Member

Posts

Joined
Thu Feb 16, 2012 11:59 pm

Post by stringsetc » Thu Oct 18, 2012 2:20 am

bump.

Active Member

Posts

Joined
Thu Feb 16, 2012 11:59 pm

Post by hbg » Thu Oct 18, 2012 6:59 am

Hi, I received your message, and have tried replying. Anyway, just in case it doesn't work, Line 25 needs changing.
I have put the corrections here:-
http://forum.opencart.com/viewtopic.php ... 29#p351229
Original (Line 25-26)
if (!$this->limit) {
$limit = 15;

Revised (which is working for me)
if (!(int)$this->limit) {
$limit = 10;

Opencart Version 1.5.1.3
https://www.opencart.homebrewinn.com.au/shop/


User avatar
hbg
Active Member

Posts

Joined
Wed Apr 13, 2011 8:52 am
Location - Newcastle NSW Australia

Post by stringsetc » Fri Oct 19, 2012 1:28 am

thanks to everyone thats contributed so far.

I've managed to now fix the Undefined index: shipping_address_id problem and the Division by zero in /pagination.php on line 32 . Happy days.

The only one that is still happening is the reviews one

Code: Select all

Undefined index:  reviews in /home/www2/public_html/catalog/view/theme/default/template/product/reviews.tpl on line 18
Now as this is a commercial oc mod, I've emailed the developer and left a question on the extensions oc page, but not heard anything back.

It might be something really obvious, here is the code from reviews.tpl , can anybody spot what might be causing the problem?

Code: Select all

<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <h1><?php echo $heading_title; ?></h1>
  <?php if ($reviews) { ?>
  <div class="product-list">
    <?php foreach ($reviews as $review) { ?>
    <div>
      <?php if ($review['prod_thumb']) { ?>
      <div class="image"><a href="<?php echo $review['prod_href']; ?>"><img src="<?php echo $review['prod_thumb']; ?>" title="<?php echo $review['prod_name']; ?>" alt="<?php echo $review['prod_name']; ?>" /></a></div>
      <?php } ?>
      <div class="name">
        <?php if ($review['rating']) { ?>
          <span style="margin-right:8px;"><img src="catalog/view/theme/default/image/stars-<?php echo $review['rating']; ?>.png" alt="<?php echo $review['reviews']; ?>" /></span>
        <?php } ?>
        <a href="<?php echo $review['prod_href']; ?>"><?php echo $review['prod_name']; ?></a>
      </div>
      <div class="description" style="font-style:italic;"><?php echo $review['description']; ?></div>
      <div style="text-align:right;"><?php echo $review["date_added"];?><span style="font-weight:bold; margin-left:10px;"><?php echo $review["author"];?></span></div>
    </div>
    <?php } ?>
  </div>
  <div class="pagination"><?php echo $pagination; ?></div>
  <?php } else { ?>
  <div class="content"><?php echo $text_empty; ?></div>
  <?php }?>
  <?php echo $content_bottom; ?></div>
<?php echo $footer; ?>
Thanks!

Active Member

Posts

Joined
Thu Feb 16, 2012 11:59 pm
Who is online

Users browsing this forum: No registered users and 44 guests