 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
April 6th, 2007, 02:39 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Sep 2006
Posts: 52
| Failure of bulkupload with large number of images?
I have created a function to move my images into photopost. I works recursively on subfolders. Everything seems to work fine but it randomly fails after 150 or so images.
My function just automates moveing the images to my upload directory then calls the functions in photopost to create the thumbnails and process the images.
I do not get an error the script just quits like it has finished. I doesn't fail on the same image every time.
I traced the point of failure to the call to the php function ImageCopyResized( ).
Has anyone else had this problem with uploading large number of images?
Anybody know how to handle this problem?
|
| |
April 6th, 2007, 03:46 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
| |
| |
April 6th, 2007, 07:37 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Sep 2006
Posts: 52
|
/usr/local/bin/mogrify is path for version 6.
is there a way to enter this without running install.php again?
|
| |
April 7th, 2007, 12:16 AM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Sep 2006
Posts: 52
|
figured out where to place the path to mogrify. It goes further than gd but still breaks . I still have images in my upload directory. can't understand why it get so far then causes the script to fail. still don't get any errors.
i have these instructions at the start of my function
ignore_user_abort(); // run script in background
set_time_limit(0); // run script forever
anyone have any ideas ?
|
| |
April 7th, 2007, 12:31 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Sep 2006
Posts: 52
|
I created a simple clock script using a 1 second sleep() it doesn't time out.
I was wondering if there is some kind of timeout built into photoshop?
|
| |
April 7th, 2007, 06:28 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
We get all our settings from PHP and are limited by your servers PHP
I would think your issue is a PHP memory issue which stops the script not execution time
|
| |
April 7th, 2007, 06:58 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Sep 2006
Posts: 52
|
I created a simple counter program to see what happens with an endless loop on my server
<?php
ignore_user_abort();
set_time_limit(20000);
$curr = time();
$max=ini_get('max_execution_time');
print"$max<br>";
$b=0;
while(1)
{
$a=time()-$curr;
if($a>$b)
{
print"$a<br>";
$b=$a;
}
}
?>
this just prints the number of seconds the program runs.
under php 4.3.11 i get to 22
under php 5 i get to 23
it just seems to time out.
don't get any errors.
if i place a sleep(1) inside the if(){ } block it makes it to somewhere in the 800's.
tech support says its not being caused by their apache server.
do you know if anyone is having problems moving large numbers of images into photopost from coppermine using your import program?
|
| |
April 7th, 2007, 08:53 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Sep 2006
Posts: 52
|
i added the following line to my counter script
print system('ulimit -a');
one of the settings that is returned is
cpu time (seconds, -t) 20
i think this limits any single running process?
|
| |
April 8th, 2007, 09:52 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
Again this has to do with your host's server setup and they would need to fix this issue as it has nothing really to do with our script
If they are setting a script timeout you can not override then they must alter it for you. Using ini_set is the action I can point out there and you have done that
|
| |
April 8th, 2007, 11:44 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Sep 2006
Posts: 52
|
yeah i have given up working with my host on this.
i think i have a work around.
use my webbrowser have javascript call my function sending the subfolder names one at a time. my photopost function will have plenty of time to do each folder individually.
|
| |
April 8th, 2007, 04:50 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
You can specify each server path individually on the upload page as well
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 10:39 AM. | |