PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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?
daily10 is offline   Reply With Quote
Old April 6th, 2007, 03:46 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
This should help

http://www.photopost.com/forum/showp...74&postcount=2
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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?
daily10 is offline   Reply With Quote
Old 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 ?
daily10 is offline   Reply With Quote
Old 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?
daily10 is offline   Reply With Quote
Old April 7th, 2007, 06:28 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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?
daily10 is offline   Reply With Quote
Old 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?
daily10 is offline   Reply With Quote
Old April 8th, 2007, 09:52 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
daily10 is offline   Reply With Quote
Old April 8th, 2007, 04:50 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
You can specify each server path individually on the upload page as well
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
'Lost connection to MySQL server' when uploading images (bulkupload.php,PP 4.8d) thirty6degrees Photopost Pro Bug Reports 5 January 30th, 2007 01:24 PM
Large images bjones Photopost Pro How Do I...? 2 January 27th, 2007 10:23 AM
Large Images nbenton Photopost Pro How Do I...? 3 November 30th, 2006 05:55 PM
No large images vonedaddy Photopost Pro Bug Reports 1 November 25th, 2006 10:36 PM
Large images MotoUp Installs and Upgrade - vBulletin 3.5.X 6 November 10th, 2005 10:29 AM


All times are GMT -5. The time now is 10:39 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0