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 Classifieds Support > Classifieds Installation & Upgrades

Classifieds Installation & Upgrades If you're having install or upgrade problems, post here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old January 2nd, 2006, 04:22 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
Angry OK WTF is this problem? Forum folder is physically deleting...

I get this error when trying to place an ad: Unable to move file [C:\PHP\uploadtemp\php4.tmp] [C:/Inetpub/plan.0/betasite.lowriderlife.com/classifieds/data/10/1Entindustry_Flyer_13.jpg]

then my whole /FORUM directory gets deletes. I had to restore it from backup, then I tested an ad again, and it was the same result.
LLIFE is offline   Reply With Quote
Old January 2nd, 2006, 11:37 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
Just to clarify, this is my dir structure

/forum
/classifieds
/gallery
/images

When I try to place a classified ad I get this error on the page: Unable to move file [C:\PHP\uploadtemp\php4.tmp] [C:/Inetpub/plan.0/betasite.lowriderlife.com/classifieds/data/10/1Entindustry_Flyer_13.jpg]

and this error on the top:

Warning: move_uploaded_file(C:/Inetpub/plan.0/betasite.lowriderlife.com/classifieds/data/10/1Entindustry_Flyer_14.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in C:\Inetpub\plan.0\betasite.lowriderlife.com\classifieds\image-inc.php on line 53

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\PHP\uploadtemp\phpB.tmp' to 'C:/Inetpub/plan.0/betasite.lowriderlife.com/classifieds/data/10/1Entindustry_Flyer_14.jpg' in C:\Inetpub\plan.0\betasite.lowriderlife.com\classifieds\image-inc.php on line 53




then the /forum folder under my inetpub directory gets deleted. I can reproduce this with no problem. It keeps deleting when I place a classified ad. New dir structure, after attempting to place ad:

/classifieds
/gallery
/images

just gets deleted, its not any where on the hard drive, I needed to get it from tape backup

Last edited by LLIFE; January 2nd, 2006 at 11:55 AM.
LLIFE is offline   Reply With Quote
Old January 2nd, 2006, 11:51 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
Not sure if this is related, when I place a wanted ad, I get:

We're sorry, but the system experienced an unrecoverable error. Please try again later.

Script: uploadproduct

Query: INSERT INTO cl_products (id,user,userid,cat,date,title,description,keywords,bigimage,bigimage2,bigimage3,approved,watermarked,ipaddress) values(NULL,'administrator', 1, 12, , 'Testing new system out', 'Testing', 'rims', '', '', '', 1, '', '24.193.45.138')

Result: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 'Testing new system out', 'Testing', 'rims', '', '', '', 1, '', '24' at line 2

Database handle: Resource id #21
LLIFE is offline   Reply With Quote
Old January 2nd, 2006, 11:56 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Looks to me on post 3 your using PHP 5.1X which you already commented on finding the fix for that PHP

$year = $year = 1900;

Possibly you forgot to modify all your files especially image-inc.php

Now as far as a deleting directory I would need to look into it but I can say off the cuff here there is nothing in the code that would do that. Probally a PHP bug that might need to be tracked down in PHP.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 2nd, 2006, 12:20 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
Dont you mean..... $year = $year + 1900; Done, that worked.


Please find out, looks like its one of the last issues I have. But it looks like a serious one too.
LLIFE is offline   Reply With Quote
Old January 2nd, 2006, 01:51 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Well I need to set up a windows environment with exact as you to be able to fully test but as stated it does not appear to be anything in our code specifically but a PHP bug itself with windows and this could take me a while to try and replicate.

What PHP version?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 2nd, 2006, 05:14 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
Ok, now this is just plain retared. I used another image and it worked fine. It looks like the FORUM folder just gets deleted when its this specific image is using. Figure that one out. Thanks.
LLIFE is offline   Reply With Quote
Old January 2nd, 2006, 06:00 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Well Like stated I need to set up a specific hosting environment. I still beleive this would be some sort of PHP server bug since there in our code that deletes that directory. Make sure to post a php link so I can try to replicate as an exact an environment I can to yours.

Now just double check your uploads and data directories to ensure they and all there children are READ WRITE EXECUTE 777 permissions.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 3rd, 2006, 11:59 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
Ok I got some more details for you..... I reinstalled PHP, I tryed 4.1 but its not working, i am back to 5.1, repermissioned everything, etc. I was able to find out what is happening.... check it out:

I place a classified ad, using this image: Entindustry_Flyer_1.jpg


The error I get is:
Unable to move file [C:\PHP\uploadtemp\php8.tmp] [C:/Inetpub/plan.0/lowriderlife.com/classifieds/data/10/1Entindustry_Flyer_1.jpg]

I went to the physical directory to poke around, this is what I see:
19,470 1Entindustry_Flyer_1-large.jpg
4,026 1Entindustry_Flyer_1-thumb.jpg
19,470 1Entindustry_Flyer_1.jpg
<DIR> 1Entindustry_Flyer_11.jpg
<DIR> 1Entindustry_Flyer_110.jpg
<DIR> 1Entindustry_Flyer_111.jpg
<DIR> 1Entindustry_Flyer_112.jpg
<DIR> 1Entindustry_Flyer_12.jpg
<DIR> 1Entindustry_Flyer_13.jpg
<DIR> 1Entindustry_Flyer_14.jpg
<DIR> 1Entindustry_Flyer_15.jpg
<DIR> 1Entindustry_Flyer_16.jpg
<DIR> 1Entindustry_Flyer_17.jpg
<DIR> 1Entindustry_Flyer_18.jpg
<DIR> 1Entindustry_Flyer_19.jpg

It's MOVING my entire FORUM folder to a folder named "1Entindustry_Flyer_xx.jpg".


These are my permissions, via a batch file:

pushd "C:\Inetpub\plan.0\lowriderlife.com\gallery"

chmod 0755 images
chmod 0777 uploads
chmod 0755 help
chmod 0777 data
chmod 0755 languages
chmod 0777 stylesheets
chmod 0777 templates
chmod 0755 forums

pushd "C:\Inetpub\plan.0\lowriderlife.com\gallery\data"

chmod 0777 1
chmod 0777 2
chmod 0777 500
chmod 0777 medium
chmod 0777 mini
chmod 0777 thumbs

pushd "C:\Inetpub\plan.0\lowriderlife.com\gallery\uploads"

chmod 0777 1

pushd "C:\Inetpub\plan.0\lowriderlife.com\gallery"

chmod 0644 adm-cats.php
chmod 0644 adm-inc.php
chmod 0644 adm-index.php
chmod 0644 adm-misc.php
chmod 0644 adm-photo.php
chmod 0644 adm-users.php
chmod 0644 bulkupload.php
chmod 0644 comments.php
chmod 0644 comshow.php
chmod 0644 config-inc.php
chmod 0644 config-int.php
chmod 0644 ecard.php
chmod 0644 editphoto.php
chmod 0644 header-inc.php
chmod 0644 image-inc.php
chmod 0644 inc_features.php
chmod 0644 inc_photopost.php
chmod 0644 member.php
chmod 0644 misc.php
chmod 0644 pclzip.lib.php
chmod 0644 pp-inc.php
chmod 0644 register.php
chmod 0644 search.php
chmod 0644 showfull.php
chmod 0644 showgallery.php
chmod 0644 showmembers.php
chmod 0644 showphoto.php
chmod 0644 slideshow.php
chmod 0644 upgrade.php
chmod 0644 uploadphoto.php
chmod 0644 useralbums.php
chmod 0644 watermark.php


pushd "C:\Inetpub\plan.0\lowriderlife.com\classifieds"

chmod 0755 images
chmod 0777 uploads
chmod 0755 help
chmod 0755 forums
chmod 0755 languages
chmod 0755 stylesheets
chmod 0777 templates
cdmod 0777 data

pushd "C:\Inetpub\plan.0\lowriderlife.com\classifieds\data"

chmod 0777 10
chmod 0777 11
chmod 0777 12
chmod 0777 3
chmod 0777 4
chmod 0777 5
chmod 0777 6
chmod 0777 7
chmod 0777 8
chmod 0777 9

pushd "C:\Inetpub\plan.0\lowriderlife.com\classifieds\uploads"

chmod 0777 1

pushd "C:\"

chmod 0777 PHP

pushd "C:\PHP"

chmod 0777 sessiondata
chmod 0777 uploadtemp


pause

Last edited by LLIFE; January 3rd, 2006 at 12:06 PM.
LLIFE is offline   Reply With Quote
Old January 3rd, 2006, 12:02 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Okay this would still seem like a PHP issue as in moving or deleting files automatically. You are going to have to give me time to set up a specific testing environment and this is going to take me a while to do since I do not specifically myself run a windows site.

However just looking at your error it is telling me you have not set permissions to READ WRITE EXECUTE ON THE UPLOADS AND OR DATA DIRECTORY AND THE CHILDREN OF THOSE DIRECTORIES. If you did you would not get a unable to move statement from php.

Unable to move file [C:\PHP\uploadtemp\php8.tmp] [C:/Inetpub/plan.0/betasite.lowriderlife.com/classifieds/data/10/1Entindustry_Flyer_1.jpg]
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 3rd, 2006, 12:16 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
I did as you seen in the batch file, I am going to do the permissioning through 2003, I am going to set the IIS accounts to read/execute rights on those directories and see how that works.
LLIFE is offline   Reply With Quote
Old January 3rd, 2006, 12:22 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Well your PHP error is absolute it is telling me that the directory is not 777
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old January 3rd, 2006, 12:27 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
Your ad was uploaded successfully!

Looks better, I was able to put up an ad with the pic I was having an issue with earlier... I tried a second ad, but recieved this error.


Entindustry_Flyer_1.jpg is a duplicate image.

Please upload the image with a different name.
LLIFE is offline   Reply With Quote
Old January 3rd, 2006, 12:29 PM   #14 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 37
The windows permissioning worked, I added all of the IIS accounts and set read/execute permissions at the root of both data and upload dir's and allowed it to be a parent so if any sub dir's get created they will have the same permissions
LLIFE is offline   Reply With Quote
Old January 3rd, 2006, 12:58 PM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
You are not suppose to be able to upload an image with the same name again so all looks fine
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
install the main gallery folder to another folder vissa How Do I? - vBulletin 3.0.X 8 March 17th, 2007 11:03 AM
Win2003 File paths - WTF? wiredinoc Photopost Pro Installation & Upgrades 14 January 2nd, 2006 12:22 PM
Wtf?! Brinnie Installs and Upgrade - vBulletin 3.5.X 1 July 24th, 2005 05:16 PM
problem with photoposts data folder iPrecisionNET Photopost Pro Installation & Upgrades 2 June 24th, 2005 09:18 PM


All times are GMT -5. The time now is 04:04 PM.

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