Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2007
    Posts
    33
    Plugin Contributions
    0

    Default Teimout with additional_images

    Having a problem on my local test server with errors generated by additional_images.php

    The exact error is
    Fatal error: Maximum execution time of 60 seconds exceeded in (path to where my test server is)\includes\modules\additional_images.php on line 45

    I'm not even sure what function this if performs, so for the time being I simply commented out lines 45-59 and all is fine. I'm just not sure what functionality I'm loosing, if any.
    ZC 1.3.8a on Linux with lots o' mods

  2. #2
    Join Date
    Nov 2007
    Posts
    33
    Plugin Contributions
    0

    Default Re: Timeout with additional_images

    anyone know what functions these lines perform and if they are pertinent to the proper operation of the store??
    ZC 1.3.8a on Linux with lots o' mods

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Teimout with additional_images

    Given the other problems you've reported with your local server, it sounds like you've got several issues that all have a common root: something weird on your server's configuration or functionality.

    Anyway, back to your question ...
    line 45 of the additional_images module in v1.3.7 is processing the results of image files from a directory listing on your server. I suppose that if you have a zillion images it may take awhile to process them, esp if the server has limited CPU, RAM, disk capacity and maybe has a lot of disk fragmentation. But normally that process should be very quick.

    If you don't need additional_image support, turn it off in Admin->Catalog->Product Types->Product General->Edit Layout-> Show Additional Images = 0

    More importantly, fix your server issues before beating your head against the wall on all the various symptoms you're experiencing.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Nov 2007
    Posts
    33
    Plugin Contributions
    0

    Default Re: Teimout with additional_images

    You are so correct! I have narrowed the problem down to the WAMP - XAMPP - that I am using.

    The system config on the test server is otherwise decently strong, a P4 3Ghz w/2GB.

    I've also discovered other problems with xampp (or at least the build I have), like some sort of memory leakage that slowly eats away at my system memory until all fails - about every 6 hours or so.

    Anyway, I've got the exact same setup running on a linux server without any of the other problems that I've reported on the forums here with my test server - with the exception of the captchable error - it's on the linux as well.

    I'm going back on the hunt tomorrow for a decent WAMP and will move everything over to the new config probably by the end of the day.

    Thank you for your help.
    ZC 1.3.8a on Linux with lots o' mods

 

 

Similar Threads

  1. v154 Additional_Images.php File Help
    By MCS_Computers in forum General Questions
    Replies: 19
    Last Post: 16 Jul 2015, 03:33 PM
  2. function.preg-match error with additional_images.php
    By DigitalShadow in forum General Questions
    Replies: 5
    Last Post: 26 Jan 2011, 10:27 PM
  3. additional_images.php
    By greenlight in forum General Questions
    Replies: 1
    Last Post: 27 Sep 2008, 04:35 PM
  4. Additional_Images.php Line 16-display link if no large
    By Donn in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 18 Oct 2007, 05:10 PM

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