 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
November 16th, 2007, 09:33 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jun 2007 Location: Pennington, NJ
Posts: 30
| Problems with video
I'm trying to get video to work on our photopost install. We have all of the default file types allowed in the admin area, including .mpg. I just tried to upload a 4.5 MB .mpg video, and it returned the following error:
Warning: getimagesize(C:/Inetpub/wwwroot/photopost/uploads//1/car1.jpg): failed to open stream: Permission denied in C:\Inetpub\wwwroot\photopost\image-inc.php on line 247
Warning: Division by zero in C:\Inetpub\wwwroot\photopost\image-inc.php on line 292
Warning: getimagesize(C:/Inetpub/wwwroot/photopost/uploads//1/car1.jpg): failed to open stream: Permission denied in C:\Inetpub\wwwroot\photopost\image-inc.php on line 91
Warning: unlink(C:/Inetpub/wwwroot/photopost/uploads//1/car1.jpg): Permission denied in C:\Inetpub\wwwroot\photopost\image-inc.php on line 103
We were told to update the following 3 settings in our php.ini file:
POST_MAX_SIZE
MEMORY_LIMIT
MAX_EXECUTION_TIME
But the errors seem to indicate that we don't have permission to upload a .mpg file, which we definitely have allowed in admin. Any ideas?
Thanks,
Sean
|
| |
November 16th, 2007, 11:29 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Okay first off do you have a trailing slash on your uploads path in global options you should not. Next your uploads directory as well as data directory needs to be set to 777. Next in Admin => Admin Options do you have this set to yes?
Allow multimedia uploads?
|
| |
November 16th, 2007, 03:33 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jun 2007 Location: Pennington, NJ
Posts: 30
|
OK, I checked and there was a trailing slash in the uploads path on global options, so I removed that and tried again. I get these errors:
Warning: getimagesize(C:/Inetpub/wwwroot/photopost/uploads/1/car1.jpg): failed to open stream: Permission denied in C:\Inetpub\wwwroot\photopost\image-inc.php on line 247
Warning: Division by zero in C:\Inetpub\wwwroot\photopost\image-inc.php on line 292
Warning: getimagesize(C:/Inetpub/wwwroot/photopost/uploads/1/car1.jpg): failed to open stream: Permission denied in C:\Inetpub\wwwroot\photopost\image-inc.php on line 91
Warning: unlink(C:/Inetpub/wwwroot/photopost/uploads/1/car1.jpg): Permission denied in C:\Inetpub\wwwroot\photopost\image-inc.php on line 103
I looked at the directory structure on the server - is /photopost/data/ for images, and photopost/uploads/ for videos? We have all of our images showing up correctly in the /data/ directory, but the /uploads/ directory just has a ton of folders, with very few files. I checked the permissions on the two and they're the same, so I think something else is wrong.
And finally, the "allow multimedia options" is set to yes in admin. Any ideas?
Thanks!
Sean
|
| |
November 16th, 2007, 03:34 PM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Jun 2007 Location: Pennington, NJ
Posts: 30
|
Another thing - the warnings refer to C:/Inetpub/wwwroot/photopost/uploads/1/car1.jpg - "car1.jpg" is a file that's already on the server, that's not the video .mpg file I was trying to upload.
|
| |
November 16th, 2007, 03:56 PM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
I would suggest you delete all directories under uploads and double check permissions are 777 then you should be able to upload. I would also check that you have properly filled out all size thresholds for thumbs medium and max image sizes.
The specific error is telling me permissions are not correct. Have you checked and ensured safe mode is off in php?
|
| |
November 30th, 2007, 02:46 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Jun 2007 Location: Pennington, NJ
Posts: 30
|
Chuck,
This is a WINDOWS box, so "777 permissions" don't really apply here. I'll attach what the permissions are for the /uploads/ directory (will be 2 attachments).
We have properly filled out the size thresholds as well. Here are the settings:
Thumbnail image max width and height in pixels: 100
Max allowable image width in pixels: 1000
Max allowable image height in pixels: 1000
Trigger medium graphic height and width: 600
Maximum multimedia upload size in Kb: 1000
Acceptable multimedia file types?: .mpeg,.mpg,.avi,.asf,.wmv,.mov
Please note: PICTURES work fine. It's VIDEO that are the issues.
In regards to the "PHP" settings, this is what is in the php.ini:
;
; Safe Mode
;
safe_mode = Off
To be totally honest, we're stumped as to what's happening. Can we get you to log on to our server and check it out?
Last edited by sean9715; November 30th, 2007 at 02:51 PM.
Reason: Adding content.
|
| |
November 30th, 2007, 03:46 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Correct but have you set your server up to allow an upload over 2mb?
How about posting your phpinfo link, You can download a phpinfo file off our requirements page linked under product details.
|
| |
December 4th, 2007, 10:02 AM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Jun 2007 Location: Pennington, NJ
Posts: 30
| |
| |
December 4th, 2007, 10:18 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Good so you should be using GD2 as your image processor and you can not upload a file over 2mb as instructed before. You can view your own php link above and see its set to only allow up to 2mb.
|
| |
December 26th, 2007, 11:39 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Jun 2007 Location: Pennington, NJ
Posts: 30
| Quote:
Originally Posted by Chuck S Good so you should be using GD2 as your image processor and you can not upload a file over 2mb as instructed before. You can view your own php link above and see its set to only allow up to 2mb. | Chuck,
Right around when this time, we set the upload to 10MB:
upload_max_filesize 10M 10M
Of course, we're still having major trouble with this not working. Do you mind logging on to the box itself (will give you stuff via private email) and seeing what we're doing wrong? We're stumped!
|
| |
December 26th, 2007, 11:54 AM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
well whats your error?
post max size is 8mb and should be 10M. Max execution time should be 0 and you need to set memory_limit in php to say 40M as right now you have no memory limit set which means it defaults to 8m memory and your probally killing php on the server but alas you need to tell me what your error is.
You have had different errors in this thread and the errors change as you change things so you must deal with each one. I show one you had a wrong path uploads with a trailing slash where there should not be one and next your server dropped the file because it was over the php max upload filesize so lets deal with your next error??
|
| |
December 28th, 2007, 03:46 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Jun 2007 Location: Pennington, NJ
Posts: 30
| Update
I just tried uploading a 4.5 MB file, and here's what happened. I got this error:
Warning: getimagesize(C:/Inetpub/wwwroot/photopost/uploads/1/car1.jpg): failed to open stream: Permission denied in C:\Inetpub\wwwroot\photopost\image-inc.php on line 247
Warning: Division by zero in C:\Inetpub\wwwroot\photopost\image-inc.php on line 292
Warning: getimagesize(C:/Inetpub/wwwroot/photopost/uploads/1/car1.jpg): failed to open stream: Permission denied in C:\Inetpub\wwwroot\photopost\image-inc.php on line 91
Warning: unlink(C:/Inetpub/wwwroot/photopost/uploads/1/car1.jpg): Permission denied in C:\Inetpub\wwwroot\photopost\image-inc.php on line 103
When I logged onto the server and checked out the directory C:/Inetpub/wwwroot/photopost/uploads/1/, it has read/write permissions for users, so the permissions should be OK. And the file I tried uploading, MOVO1617.mpeg, is actually on the server, so the upload worked. It's failing trying to display car1.jpg, I guess. Also, on the same page the error appears, when I scroll down I get the Photopost nav bar, etc., and then the message "Sorry, this image type () is not supported yet." Any ideas?
|
| |
December 28th, 2007, 09:29 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
It appears to me your uploads and possibly data directories do not have 777 permissions which means they need to have on windows READ WRITE AND EXECUTE PERMISSIONS not just read write. If you set permissions you should be fine. What I see in your errors are simply permissions issues.
|
| |
December 31st, 2007, 07:55 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Jun 2007 Location: Pennington, NJ
Posts: 30
| got it working
thanks for the help, i had one permissions setting wrong, and once i fixed that, it worked perfectly.
|
| |
December 31st, 2007, 08:29 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Yep 777 permissions work everywhere it just translates to READ WRITE EXECUTE on windows.  Happy New Year.
|
| | |
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 09:20 PM. | |