 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
April 20th, 2005, 02:28 PM
|
#1 (permalink)
| | Registered User
Join Date: Apr 2005
Posts: 9
| Problems with new installation uploads
I have installed PhotoPost on our webservers and it runs great with the following exception:
When I go to upload a photo it looks like it is working but no photo is uploaded. I do not get the proccessing screen or the thumbnail screen. The page flashes and brings me right back to the file selection screen.
I am hosted at easycgi.com and am running on Windows 2000 with PHP 4.3.1 and mySQL 4.0.23-nt
I have searched the forums to try to find the cause and have been unsuccessful.
I have checked the usergroups, created a new usergroup with permissions, created new user both admin and not to no avail.
The link to the site is: http://www.virginiaxriders.com/photopost/
HELP please...
Mike Pensinger
Webmaster - Alternate Virginia X Riders
|
| |
April 20th, 2005, 02:31 PM
|
#2 (permalink)
| | Registered User
Join Date: Apr 2005
Posts: 9
|
oh yeah... using imagemajick but have tried GD1 and GD2
|
| |
April 20th, 2005, 07:57 PM
|
#3 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
That to me sounds like file uploads are off if it goes right back to the file upload page doing nothing
Do you have link to php info?
|
| |
April 21st, 2005, 02:10 PM
|
#4 (permalink)
| | Registered User
Join Date: Apr 2005
Posts: 9
| |
| |
April 21st, 2005, 02:17 PM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Make sure to post a link to your php info that we can see. a phpinfo.php file contents is simple this so you can make one yourself
<?phpinfo();?>
Your install sure acts like fileuploads are off. It process's nothing and does not even go to the bulkupload script
|
| |
April 22nd, 2005, 06:52 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
HMM only other thing off the top of my head in your php.conf or apache configuration what is the variable LimitBodyRequest set to?
|
| |
April 25th, 2005, 01:14 PM
|
#8 (permalink)
| | Registered User
Join Date: Apr 2005
Posts: 9
|
damn good question... what would I find this out?
Mike
|
| |
April 25th, 2005, 01:32 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
you host. Let me go put together a simple upload script and post it here for you to try and see what happens
|
| |
April 29th, 2005, 02:33 PM
|
#10 (permalink)
| | Registered User
Join Date: Apr 2005
Posts: 9
|
Any status ?
|
| |
April 29th, 2005, 03:05 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Nothing fancy here just rename the file to testuploads.php and fix in the file the path you want to upload to and the url to the script Code: Content visible to verified customers only.
As simple as it gets
Last edited by Chuck S; April 29th, 2005 at 05:52 PM.
|
| |
April 29th, 2005, 05:15 PM
|
#12 (permalink)
| | Registered User
Join Date: Apr 2005
Posts: 9
|
This is what I get when I tried to run it..
Warning: Invalid argument supplied for foreach() in c:\websites\virginiaxriders401\virginiaxriders.com\testuploads.php on line 11
This is what I have typed in the file:
<form action="http://www.virginiaxriders.com/testuploads.php" method="post" enctype="multipart/form-data">
<p>Pictures:
<input type="file" name="pictures[]" />
<input type="file" name="pictures[]" />
<input type="file" name="pictures[]" />
<input type="submit" value="Send" />
</p>
</form>
<?php
foreach ($_FILES["pictures"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["pictures"]["tmp_name"][$key];
$name = $_FILES["pictures"]["name"][$key];
move_uploaded_file($tmp_name, "/test/$name");
}
}
?>
Any help would be great... sorry I am a little PHP challenged so far..
Mike
|
| |
April 29th, 2005, 05:52 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
I have edited the file above try it
|
| |
May 4th, 2005, 11:10 AM
|
#14 (permalink)
| | Registered User
Join Date: Apr 2005
Posts: 9
|
What I have in the file
<form action="testuploads.php" method="post" enctype="multipart/form-data">
<p>Pictures:
<input type="file" name="pictures[]" />
<input type="file" name="pictures[]" />
<input type="file" name="pictures[]" />
<input type="submit" value="Send" />
</p>
</form>
<?php
foreach ($_FILES["pictures"]["error"] as $key => $error) {
if ( empty($_FILES) ) exit;
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["pictures"]["tmp_name"][$key];
$name = $_FILES["pictures"]["name"][$key];
move_uploaded_file($tmp_name, "/test/$name");
}
}
?>
What I get when it come up in the browser:
Warning: Invalid argument supplied for foreach() in c:\websites\virginiaxriders401\virginiaxriders.com\testuploads.php on line 11
What I get when I try to run it:
Warning: move_uploaded_file(/test/aus_cab_sauv.jpg) [function.move-uploaded-file]: failed to create stream: No such file or directory in c:\websites\virginiaxriders401\virginiaxriders.com\testuploads.php on line 16
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINNT\TEMP\php38E5.tmp' to '/test/aus_cab_sauv.jpg' in c:\websites\virginiaxriders401\virginiaxriders.com\testuploads.php on line 16
|
| |
May 4th, 2005, 11:18 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
I would ensure your path to save it is right for one.
/test is definately wrong
I would make sure test exists under your webroot with the proper permissions to move files to. Your on a windows server so you need permissions set to 777
the path would be like this
c:\websites\virginiaxriders401\virginiaxriders.com\test
however since you have photopost install and you state permissions are set right why not make your path this
c:\websites\virginiaxriders401\virginiaxriders.com\photopost\data
so that line would be
move_uploaded_file($tmp_name, "
c:/websites/virginiaxriders401/virginiaxriders.com/photopost/data/$name");
|
| |
May 4th, 2005, 04:34 PM
|
#16 (permalink)
| | Registered User
Join Date: Apr 2005
Posts: 9
|
That works... It uploaded the files to the data directory...
What next?
Mike
|
| |
May 4th, 2005, 07:23 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Recheck your install make sure all permissions are in place for both data and uploads directories.
|
| | |
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 02:56 PM. | |