PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Error after moving servers (http://www.photopost.com/forum/photopost-pro-installation-upgrades/134918-error-after-moving-servers.html)

Street-Stylers January 9th, 2008 09:20 AM

Error after moving servers
 
Ive recently just moved my hosting and gallery to a new server which means the i had to edit the config-inc.php file to reflect the new file locations.

ive gone through and updated the database with the correct paths and all the images appear in the gallery but when i go into the admin panel i get this message on the top

Quote:

Warning: opendir(/OLDDIRECTORY/data/) [function.opendir]: failed to open dir: No such file or directory in /newdirectory/adm-inc.php on line 589

Warning: readdir(): supplied argument is not a valid Directory resource in /newdirectory/adm-inc.php on line 592

Warning: closedir(): supplied argument is not a valid Directory resource in /newdirectory/adm-inc.php on line 609
For some reason its asking for the old directory first ? where does this setting from from?

Chuck S January 9th, 2008 09:41 AM

If you updated your paths in global options also in admin go to storage options and hit revert and save twice to load the new paths and you should be fine.

Street-Stylers January 9th, 2008 09:47 AM

legend thanks :)

Chuck S January 9th, 2008 09:48 AM

Glad to help have a good day.

Street-Stylers January 9th, 2008 11:10 AM

one more thing

tried uploading a simple image and get this error message?

Quote:

Warning: copy(/directory/gallery/data/529/adm-misc_php.gif) [function.copy]: failed to open stream: Permission denied in /directory/gallery/uploadphoto.php on line 679

Warning: getimagesize(/directory/gallery/data/529/adm-misc_php.gif) [function.getimagesize]: failed to open stream: No such file or directory in /directory/gallery/image-inc.php on line 247

Warning: Division by zero in /directory/gallery/image-inc.php on line 292

Warning: getimagesize(/directory/gallery/data/529/adm-misc_php.gif) [function.getimagesize]: failed to open stream: No such file or directory in /directory/gallery/image-inc.php on line 91

Warning: unlink(/directory/gallery/data/529/adm-misc_php.gif) [function.unlink]: No such file or directory in /directory/gallery/image-inc.php on line 103
Ive gone thought the cmod and done everything like in the installation doc

ANy suggestions?

Chuck S January 9th, 2008 11:18 AM

I would suggest you recheck all permissions to ensure everything is 777 but seems someone is trying to upload a bad file to your site.

adm-misc_php.gif

Thats telling me your uploading a renamed photopost php file as an image?

I know there is a security exploit on servers that vbgallery has patched maybe someones trying to break into photopost as well but that image is invalid and can be deleted.

Street-Stylers January 9th, 2008 11:23 AM

nah its me tried uploading different images same for each.

Im using photopost so exploit doesnt apply.

Def cmod 777 so what else could it be ?

Chuck S January 9th, 2008 11:55 AM

clear your uploads directory and try again and actually upload an image.

Street-Stylers January 10th, 2008 02:39 AM

ok i managed to sort that on out my data folder was 755 so i assume each folder in data must be 777?

now i get this..
Quote:

Fatal error: Call to undefined function: imagecreatefromjpeg() in /directory/gallery/image-inc.php on line 99
I have my own VPS server does this mean something isnt isntalled correctly?

Street-Stylers January 10th, 2008 03:30 AM

ignore me its a server issue :)

Chuck S January 10th, 2008 09:27 AM

Yes appears you do not have GD2 installed or at least jpg support in GD2.

Street-Stylers January 11th, 2008 03:51 AM

yeah i dont think i do but i told the gallery to use imagemagik ? i dont understand how it works etc but does it need GD2 to function correctly?

as im now getting this error message
Quote:

Error creating thumbnail! Error code: 1

Command:

"/usr/bin/mogrify" +profile "*" -size 75x100 -quality 70 -geometry 75x100 -unsharp 10 '/directory/gallery/data/529/thumbs/photo1.jpg'

Chuck S January 11th, 2008 06:21 AM

Thats a permissions error on Imagemagick meaning either your data diretory at every level is not 777 so check to ensure every directory is 777 at every level beneath data. If that is correct maybe it does not like the profile statement if its an older IM. Try editing image-inc.php and remove this.

Code:

Content visible to verified customers only.


All times are GMT -5. The time now is 01:26 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97