SMFHacks.com

SMF Gallery Pro => Support => Topic started by: robgratt on June 07, 2021, 05:50:12 am

Title: Error message: cannot access upload path
Post by: robgratt on June 07, 2021, 05:50:12 am
Hi,

Tried searching for this but couldn't find anything.

Anyway, SMFGallery Pro installed perfectly and I:

- changed permission so that guests can't post
- changed permissions such that all images need moderator approval
- created two new categories in Gallery
- changed permissions in the 'gallery' folder to 777
- file size to be uplaed is 84k and is .jpg

Anyone any idea what I'm doing wrong?

Thanks, Rob
Title: Re: Error message: cannot access upload path
Post by: SMFHacks on June 07, 2021, 07:56:55 am
What is your gallery path set under Admin -> Gallery Configuration
Title: Re: Error message: cannot access upload path
Post by: robgratt on June 07, 2021, 10:55:06 am
Hi,

Thanks for the quick response.

Path is:

/var/www/vhosts/????????????.co.uk/???????????.online/forum/gallery/

Rob
Title: Re: Error message: cannot access upload path
Post by: SMFHacks on June 07, 2021, 12:09:00 pm
Is that exact error message? Or is there more details


Does the path look similar to the ones under Server Settings other than the gallery.
Title: Re: Error message: cannot access upload path
Post by: robgratt on June 08, 2021, 05:31:41 am
Is that exact error message? Or is there more details  See attached image of the error dialog.


Does the path look similar to the ones under Server Settings other than the gallery.
Yes - I used the same format as the one for cache but obviously changed it to gallery.

Title: Re: Error message: cannot access upload path
Post by: SMFHacks on June 08, 2021, 06:59:12 am
That's bizaree. But i think your attachments path is wrong. Check in SMF's settings.

Does this error occur when making a post in your forum?
Title: Re: Error message: cannot access upload path
Post by: robgratt on June 08, 2021, 08:01:11 am
Hi,

Thanks for the reply.

Yes, I can post to the forum without an attachment.

The path just shows going to the 'gallery' dir.  There are other dirs below this one.  Should uploaded files be placed in 'images' or 'fupload' or somewhere else?

Error log just says 'Cannot access attachments upload path!'  What IS the attachments upload path supposed to be?

Have temporarily set 'gallery' and all sub-dirs to 777.

Thanks for all the support so far.
Title: Re: Error message: cannot access upload path
Post by: SMFHacks on June 08, 2021, 08:11:48 am
That is so odd. I never seen the gallery ask for the attachments path...I don't store gallery files in the attachments folder.
The gallery stores files in the gallery folder directly. Or in subfolders in the gallery folder 0,1,2,3,4 etc as more  images are added.

But check the attachments path should be of the form like your site
/var/www/vhosts/????????????.co.uk/???????????.online/forum/attachments/



Title: Re: Error message: cannot access upload path
Post by: robgratt on June 08, 2021, 08:39:30 am
Hi,

Just a point of clarification:

You said "But check the attachments path should be of the form like your site
/var/www/vhosts/????????????.co.uk/???????????.online/forum/attachments/" <---attachments

But the original path was:

"/var/www/vhosts/??????????.co.uk/?????????.online/forum/gallery/"  <---- gallery

So wahich one should it be, please?

Thanks, Rob
Title: Re: Error message: cannot access upload path
Post by: SMFHacks on June 08, 2021, 08:58:32 am
The attachments path under
Admin -> Attachments ->  Attachments and Avatars -> Attachment settings
/var/www/vhosts/????????????.co.uk/???????????.online/forum/attachments/


The path under Admin -> Gallery configuration should be
/var/www/vhosts/??????????.co.uk/?????????.online/forum/gallery/
Title: Re: Error message: cannot access upload path
Post by: robgratt on June 08, 2021, 10:05:40 am
Hi,

I reset the attachments path and all works now!

Thanks for staying with me on this one.

Rob
Title: Re: Error message: cannot access upload path
Post by: SMFHacks on June 08, 2021, 10:06:22 am
No problem glad to help