Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jun 2012
    Posts
    12
    Plugin Contributions
    0

    Default Help with debugging error (additional images)

    Hi,

    Hopefully this is the right forum for my problem...I have an error when using additional images on a product which wides out the lower half of my page. The debug file says:

    Code:
    [01-Mar-2013 12:39:00] PHP Fatal error:  Call to a member function MoveNext() on a non-object in /home4/bullybaz/public_html/includes/templates/classic/templates/tpl_modules_additional_images.php on line 22
    which would be the line in bold red below...

    Code:
    require(DIR_WS_MODULES . zen_get_module_directory('additional_images.php'));
     ?>
     <?php
      if ($flag_show_product_info_additional_images != 0 && $num_images > 0) {
      ?>
    <div id="productAdditionalImages">
    <?php
    	while(!$additional->EOF) {
    		echo '<div class="additional-images">'.zen_image(DIR_WS_IMAGES . $additional->fields['additional_image'], '', ADDITIONAL_SMALL_IMAGE_WIDTH, ADDITIONAL_SMALL_IMAGE_HEIGHT).'</div>';
    		$additional->MoveNext();
    	}
     ?>
      require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php'); ?>
    </div>
    <?php 
      }
    ?>
    and I am completely clueless as to what I need to do to fix this??? Help, please, thanks in advance!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help with debugging error (additional images)

    What version of the addon are you using?
    And precisely what addon is it?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: Help with debugging error (additional images)

    Hi,

    I have installed:
    Additional Images Relocated with CSS
    zen lightbox
    Image Handler

    I installed all the latest versions from the plugin's area. I'm only using one product type, General. I don't have any problems with the product pages until I try to use an additional image. Today I tried using additional images using the url with ckeditor, and still it wipes out the lower portion of the page. I tried googling for this error, but none of the results are relevant to using additional images.

    Here's a page with an additional image, which shows no picture even though one is uploaded:
    http://www.bullybazaar.com//index.ph...roducts_id=195

    And here's one without:
    http://www.bullybazaar.com//index.ph...roducts_id=187

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help with debugging error (additional images)

    Have you looked at this post??
    http://www.zen-cart.com/forum/showthread.php?t=69672

    Today I tried using additional images using the url with ckeditor, and still it wipes out the lower portion of the page
    ????? There is a built in naming system for additional images
    http://www.zen-cart.com/content.php?...s-to-a-product
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jun 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: Help with debugging error (additional images)

    Yeah....but on the first that's not helping with that error code??? I've read through that thread a few times in using the Additional Images Relocated with CSS mod.

    I do find the image naming a little confusing, but I think I did it right - the main image is BadBoy_MED.jpg, image #2 is BadBoy_2.jpg, and image #3 is BadBoy_3.jpg, except they're not even showing...and it doesn't even show a "no picture available" for the missing pics...

    I'm actually contemplating a fresh install although that's not ideal...

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help with debugging error (additional images)

    the main image is BadBoy_MED.jpg, image #2 is BadBoy_2.jpg, and image #3 is BadBoy_3.jpg
    These are sensitive to the "base name"

    Try renaming the additional images to

    BadBoy_MED.jpg base image name
    BadBoy_MED_2.jpg
    BadBoy_MED_3.jpg
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Help with debugging error (additional images)

    If you are using IH, there is no longer any need to have _MED and _LRG images.

    Just use a single image. We usually confine images to a filesize of 100kb or less, and a universal aspect (landscape or portrait or square) and a finite size of:

    LS = 750 X 650
    POR = 650 X 750
    SQ - 650 X 650

    Naming is as per KOBRA's format with the exception that we follow LINUX convention of using lowercase alphanumerics in all filenames:

    firstimage.jpg (MAIN IMAGE)
    firstimage_01.jpg (FIRST ADDITIONAL IMAGE)
    firstimage_02.jpg (SECOND ADDITIONAL IMAGE)

    secondimage.jpg (MAIN IMAGE)
    secondimage_01.jpg (FIRST ADDITIONAL IMAGE)
    secondimage_02.jpg (SECOND ADDITIONAL IMAGE)
    20 years a Zencart User

  8. #8
    Join Date
    Jun 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: Help with debugging error (additional images)

    Quote Originally Posted by kobra View Post
    These are sensitive to the "base name"

    Try renaming the additional images to

    BadBoy_MED.jpg base image name
    BadBoy_MED_2.jpg
    BadBoy_MED_3.jpg
    ah - ok got that now, thank you :)

  9. #9
    Join Date
    Jun 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: Help with debugging error (additional images)

    Quote Originally Posted by schoolboy View Post
    If you are using IH, there is no longer any need to have _MED and _LRG images.

    Just use a single image. We usually confine images to a filesize of 100kb or less, and a universal aspect (landscape or portrait or square) and a finite size of:

    LS = 750 X 650
    POR = 650 X 750
    SQ - 650 X 650

    Naming is as per KOBRA's format with the exception that we follow LINUX convention of using lowercase alphanumerics in all filenames:

    firstimage.jpg (MAIN IMAGE)
    firstimage_01.jpg (FIRST ADDITIONAL IMAGE)
    firstimage_02.jpg (SECOND ADDITIONAL IMAGE)

    secondimage.jpg (MAIN IMAGE)
    secondimage_01.jpg (FIRST ADDITIONAL IMAGE)
    secondimage_02.jpg (SECOND ADDITIONAL IMAGE)
    Ok, I'm going to try it with changing the names to lowercase...thank you :)

  10. #10
    Join Date
    Jun 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: Help with debugging error (additional images)

    Hi,

    Just wanted to say thanks, it was the file naming that was causing the problem, so very carefully renaming all of my additional images. Unfortunately, the supplier uses the worst files names for images and it's taking forever to rename, save, upload, insert...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 I need help with additional images please!!
    By Darion in forum General Questions
    Replies: 5
    Last Post: 20 Oct 2012, 02:50 AM
  2. Help needed with additional images
    By Susi in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 23 Mar 2009, 10:58 AM
  3. Could someone help me with additional images please?
    By Best Price Accessori in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Mar 2009, 07:54 PM
  4. Can someone help me with the additional images?
    By trudesign in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Oct 2008, 10:37 PM
  5. JS Error in additional images with Lightbox and ImageHandler2
    By possum in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 3 Nov 2007, 05:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg