![]() |
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. :confused: :confused: :confused: |
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 |
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 |
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. |
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. |
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? |
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. |
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. |
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 |
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] |
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. |
Well your PHP error is absolute it is telling me that the directory is not 777 |
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. |
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 |
You are not suppose to be able to upload an image with the same name again so all looks fine |
| All times are GMT -5. The time now is 02:49 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0