View Full Version : Error after moving servers
January 9th, 2008, 10:20 AM
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
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?
January 9th, 2008, 10: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.
January 9th, 2008, 10:47 AM
legend thanks :)
January 9th, 2008, 10:48 AM
Glad to help have a good day.
January 9th, 2008, 12:10 PM
one more thing
tried uploading a simple image and get this error message?
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
January 9th, 2008, 12:18 PM
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.
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.
January 9th, 2008, 12:23 PM
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 ?
January 9th, 2008, 12:55 PM
clear your uploads directory and try again and actually upload an image.
January 10th, 2008, 03: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..
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?
January 10th, 2008, 04:30 AM
ignore me its a server issue :)
January 10th, 2008, 10:27 AM
Yes appears you do not have GD2 installed or at least jpg support in GD2.
January 11th, 2008, 04: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
Error creating thumbnail! Error code: 1
"/usr/bin/mogrify" +profile "*" -size 75x100 -quality 70 -geometry 75x100 -unsharp 10 '/directory/gallery/data/529/thumbs/photo1.jpg'
January 11th, 2008, 07: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.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.