PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old October 13th, 2005, 07:55 AM   #1 (permalink)
Member
 
Join Date: Jul 2005
Posts: 186
can't upload!

er...ok... I moved webhosts AND upgraded to vb 3.5 gold.

everything works EXCEPT I CANT UPLOAD!!! (via upload link).

I get this error:

Quote:
An error occurred while attempting to create a folder for your files. If the problem persists, please notify the webmaster
what did I do wrong? thanks for any help....uploading is pretty important for the galleries. lol
Kseki is offline   Reply With Quote
Old October 13th, 2005, 12:13 PM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: can't upload!

Did you change your path settings and such after you moved servers? When you switched, did you just download everything from your old server and then upload it to the new one, or did you use something like cPanel/WHM to move your files? If you downloaded them from the old and then uploaded them to the new then that would have lost the file permissions set on your folders and you will need to chmod your gallery/files folder and each folder under that to 777.
  Reply With Quote
Old October 14th, 2005, 09:32 AM   #3 (permalink)
Member
 
Join Date: Jul 2005
Posts: 186
Re: can't upload!

Quote:
Originally Posted by Brian
Did you change your path settings and such after you moved servers? When you switched, did you just download everything from your old server and then upload it to the new one, or did you use something like cPanel/WHM to move your files? If you downloaded them from the old and then uploaded them to the new then that would have lost the file permissions set on your folders and you will need to chmod your gallery/files folder and each folder under that to 777.
hmm. I did a straight copy from one to the other.

--- I tHINK I updated the paths or the gallery wouldn't work at all, no? are there certain paths that you are referring to that I may have missed (In admincp? in a php file)? cause that a high possibilty.

<< me n0000b like that

--- ok...updated gallery/files folder to 777 and all the folders under it. That alone didn't work. still can't upload.
Kseki is offline   Reply With Quote
Old October 14th, 2005, 09:57 AM   #4 (permalink)
Member
 
Join Date: Jul 2005
Posts: 186
Re: can't upload!

hmm...well I obviously missed something......
I went back found I didn't update the gallery_config.php....but when I did.
my gallery broke all together. :/

now I get a fatal error when I access my galleries:

Quote:
Warning: chdir(): No such file or directory (errno 2) in /home/myOLDHOSTdbname/public_html/forums/gallery/gallery_global.php on line 17

Warning: main(./global.php): failed to open stream: No such file or directory in /home/myOLDHOSTdbname/public_html/forums/gallery/gallery_global.php on line 47

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myOLDHOSTdbname/public_html/forums/gallery/gallery_global.php on line 47
where did I forget to update? can't see to find it anywhere. :/
Kseki is offline   Reply With Quote
Old October 14th, 2005, 10:17 AM   #5 (permalink)
Member
 
Join Date: Jul 2005
Posts: 186
Re: can't upload!

and yah, I checked. the new path is correct in the config file...

but its still reading like I have the old one in it. :/
Kseki is offline   Reply With Quote
Old October 14th, 2005, 11:06 AM   #6 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,417
Re: can't upload!

Did you change the paths in the Gallery AdminCP as well?
ConqSoft is offline   Reply With Quote
Old October 14th, 2005, 11:28 AM   #7 (permalink)
Brian
Guest
 
Posts: n/a
Re: can't upload!

You need to make sure you have the correct paths in your gallery_config.php file and your 'Files Path' and 'FTP Users Path' options.
  Reply With Quote
Old October 15th, 2005, 03:04 AM   #8 (permalink)
Member
 
Join Date: Jul 2005
Posts: 186
Re: can't upload!

Quote:
Originally Posted by Brian
You need to make sure you have the correct paths in your gallery_config.php file and your 'Files Path' and 'FTP Users Path' options.
Admin CP
I just copied this directly from my admincp and config file:
Files path:------->/home/CURRENTmysiteDB/public_html/forums/gallery/files
FTP User Path:--->/home/CURRENTmysiteDB/public_html/forums/gallery/users
config file:------->/home/CURRENTmysiteDB/public_html/forums

and its still coming up with this error:

Quote:
Warning: chdir(): No such file or directory (errno 2) in /home/OLDmysiteDB/public_html/forums/gallery/gallery_global.php on line 17

Warning: main(./global.php): failed to open stream: No such file or directory in /home/OLDmysiteDB/public_html/forums/gallery/gallery_global.php on line 47

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/OLDmysiteDB/public_html/forums/gallery/gallery_global.php on line 47
+_+

really can't figure out why its still looking for my old DB name.

could for some reason it still be looking at my old host or sooomething?
should I try reinstalling templates or reinstalling SOMETHING?

I'm at a loss....don't know what else to try to change or check.
Kseki is offline   Reply With Quote
Old October 15th, 2005, 03:17 AM   #9 (permalink)
Member
 
Join Date: Jul 2005
Posts: 186
Re: can't upload!

ok..as a test I put a bunch of gibberish in the FILE PATHS and USER file path in the gallery admincp.

it still came up with the same error.

so its obviously something in the gallery admincp that isn't working. Its not actually saving changes even they appear in the box.

is it possible that the admincp is somehow corrupted or using the old host or something (dunno just guessing).
Kseki is offline   Reply With Quote
Old October 15th, 2005, 02:53 PM   #10 (permalink)
Brian
Guest
 
Posts: n/a
Re: can't upload!

The only place you would actually be able to see those settings outside of the Admin CP is in the FTP upload box where it shows you the path for FTP uploads. If the path is incorrect though, even if it's just a bunch of gibberish, it would still give you the same error in your first post. If you're getting that error in your gallery_config.php file as well though it sounds like you are not entering the correct paths. Have you tried the suggestions in this thread to make sure that you have the correct forum path? Hopefully something there helps, but if not and if you'd like to submit a support ticket via the Members' Area here I'll be glad to take a look.
  Reply With Quote
Old October 16th, 2005, 01:16 AM   #11 (permalink)
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
Re: can't upload!

Quote:
An error occurred while attempting to create a folder for your files. If the problem persists, please notify the webmaster
hi keksi
talking of your first error...
I had a similar error when moving files to another domain..
the directory was 777 and i still couldn't upload...
as amatter of fact i couldn't even see the thumbnails... because the files did not have any read permissions.. although in my ftp client everything seemed ok...

the problem was the owner... when i moved the files they were still owned by the old script id.. as they were created by it.. (was a cpanel issue - i had tared the files when moving them over.. so they kept their settings)

check if this is the issue... how?

if you have root access to your server:
in your public html directory create a directory called test with your ftp client...
in your forums directory do the same....

now log in with putty (or whatever shell client u use)
go to your public_html directory by typing:

cd /home/CURRENTmysiteDB/public_html
whereas you of course replace CURRENTmysiteDB with the realthing...(just make sure starting slash and no trailing slash)

and do a
ls -l
(the font here is confusing... ist LS -L but in small letters)
you should get a listing similar to this:
drwxr-xr-x 3 username groupname 4096 Sep 16 06:10 ./
drwxr-x--- 24 username groupname 4096 Oct 15 19:55 ../
-rw-r--r-- 1 username groupname 3111 Aug 13 09:00 adv.php
-rw-r--r-- 1 username groupname 306 Sep 16 06:10 .htaccess
-rw-r--r-- 1 username groupname 1134 Aug 11 15:52 index.php
drwxr-xr-x 26 username groupname 4096 Sep 16 10:42 test/
drwxr-xr-x 15 username groupname 4096 Sep 16 10:42 forums/

IF username groupname of forums and of test are identical... its ok...
if NOT do the following ... type:

chown -R username:groupname forums

whereas you replace the username and groupname with the ones you see in front of the test directory..
hit enter and your done..

but probably you did a fresh install of vb and just moved the gallery...
in that case cd into forums and do the same thing there...
gallery directory should have same ownership as the test directory created with ftp.
(if you just moved the files directory... you would have to do the same there... etc...)



if you dont have root access:
assuming you have allready files in your file dir.

ftp your directory (files/1) - or what ever your username is
to your local harddisk
- delete your directory.. (not only the contents.. also the dir..)
- create it again with your ftp client
- set it to 0777
- ftp the content back...

if you have never uploaded (seems to be the case)

create a directory in the files dir named by your user id (example: 1... create a directory called 1 in your files directory with your ftp client)
set it to 0777
and test.. if you (user 1) can upload now, it is either a safemod issue or a owner issue..
if it is a owner issue...
and you can dispose of the files (as nobody has uploaded yet ;-) )
delete the files dir manually and create it again and set it to 0777


hope it helps a little..
Luc

PS as for the Paths issue...
I supposed you moved your database after doing a db dump with cpanel or with phpmyadmin...
in that case do a dump again.. (make sure to add drop Table in phpmyadmin) on the new server... open the mysqldumpfile.sql with a text editor... and do a search for: OLDmysiteDB
if its there... do a search-replace with OLDmysiteDB-NEWmysiteDB... save the file.. and load it back to the database with phpmyadmin..
Luciano is offline   Reply With Quote
Old October 17th, 2005, 12:38 AM   #12 (permalink)
Member
 
Join Date: Jul 2005
Posts: 186
Re: can't upload!

Quote:
Originally Posted by Brian
Have you tried the suggestions in this thread to make sure that you have the correct forum path? Hopefully something there helps, but if not and if you'd like to submit a support ticket via the Members' Area here I'll be glad to take a look.
yah..even doing that and copying that path I get this error:
as I said, (I think maybe I ddidn't explain right)...
I could put ANYTHING:

BLAHBLAH/BLAH_BLAH/forums/g90238932gallery in the FILES PATH in the gallery admincp. And it gives me the exact same error below:

Quote:
Warning: chdir(): No such file or directory (errno 2) in /home/OLDmysiteDB/public_html/forums/gallery/gallery_global.php on line 17

Warning: main(./global.php): failed to open stream: No such file or directory in /home/OLDmysiteDB/public_html/forums/gallery/gallery_global.php on line 47

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/OLDmysiteDB/public_html/forums/gallery/gallery_global.php on line 47
Kseki is offline   Reply With Quote
Old October 17th, 2005, 12:40 AM   #13 (permalink)
Member
 
Join Date: Jul 2005
Posts: 186
Re: can't upload!

@LUC

thank you for the advice!! gunna take me a bit to try it out since...well... I'm not experieced with stuff like that and I have to request temp shell access to my root folder (though I have access via FTP).

I'll let you know if that does anything. <fingers crossed>

thanks again~
Kseki is offline   Reply With Quote
Old October 17th, 2005, 01:41 AM   #14 (permalink)
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
Re: can't upload!

well just to test if its that... log in via ftp
try to change permissions of your gallery/files folder...

and of anything that is inside...

on my client.. it looked as if i could change the permissions.. but the permissions in fact did not change...

if you can change the permissions... and they really change.. then its not that!
(will save you time)

Luc
Luciano is offline   Reply With Quote
Old October 17th, 2005, 04:51 AM   #15 (permalink)
Member
 
Join Date: Jul 2005
Posts: 186
Re: can't upload!

Quote:
Originally Posted by Luciano
well just to test if its that... log in via ftp
try to change permissions of your gallery/files folder...

and of anything that is inside...

on my client.. it looked as if i could change the permissions.. but the permissions in fact did not change...

if you can change the permissions... and they really change.. then its not that!
(will save you time)

Luc
hmm...can I ask which permissions and where you are referring to?
in the gallery admincp somewhere or the actual forums config.php?

(sorry for n00bism)

the more I mess around with this, the more I think its related to the problem you mentioned.
Kseki is offline   Reply With Quote
Old October 17th, 2005, 11:17 AM   #16 (permalink)
Brian
Guest
 
Posts: n/a
Re: can't upload!

Quote:
Warning: chdir(): No such file or directory (errno 2) in /home/OLDmysiteDB/public_html/forums/gallery/gallery_global.php on line 17
If you're getting that error and that line is listing the path in your old server then you are pulling the file from your old server.
  Reply With Quote
Old October 17th, 2005, 12:49 PM   #17 (permalink)
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
Re: can't upload!

i'm talking about file permissions...
not gallery permissions!!!

didnt you change the file permissions for the directory: gallery/files ?

(you can also change the permissions with your ftp client.. -> right mouse menu on the file... there is either properties.. or chmod or permissions depending on what client you are using... then you set it to writable or 0777)

@brian
this could also be the case...
but i think in this case there is more than one problem

@keksi
if it persists I would suggest you submit a trouble ticket or do a fresh install without upgrading... then you can transfer the content later..

Luc
Luciano is offline   Reply With Quote
Old October 17th, 2005, 04:42 PM   #18 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 19
Re: can't upload!

Brian,

I was having the issue which Kseki was having, but after following the steps in this thread, when I complete the upload I get a white page and it freezes at upload.php and dosn't go to the next page.
ProperMethodz is offline   Reply With Quote
Old October 18th, 2005, 12:53 AM   #19 (permalink)
Member
 
Join Date: Jul 2005
Posts: 186
Re: can't upload!

i opened a support ticket. I'm at the end of my rope.
Kseki is offline   Reply With Quote
Old October 18th, 2005, 01:17 AM   #20 (permalink)
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
Re: can't upload!

Code:
Content visible to verified customers only.
Let us know what was the cause...

Luc
Luciano is offline   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
Skip upload etc - showing at Members photo upload(NOT A BUG) mjm Photopost Pro Bug Reports 5 July 31st, 2005 07:36 PM


All times are GMT -5. The time now is 10:35 AM.

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