YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Pages: 1 2 
Topic Tools
 
Attachments M.I.A (Read 3,638 times)
 Jun 20th, 2012 at 3:31pm
There are no actions to perform.  

legrant 
YaBB Newbie
*
Offline
Posts: 11


YaBB 2.5
Attachments M.I.A
Hello folks,

This is my first post and I've searching for many hours to try and get a solution for my problem.

I'm moving a YaBB board from one host to another as well as upgrading to the latest version.

I've followed various instructions and post and most things seem to be working accept attachments and avatars.

  • All the attachments are in the correct folder
  • From what I can tell, the permissions are correct (755)
  • attachments.txt is present and populated.
  • I've checked the path and even changed it to the direct path (which if I paste into a browser brings up a list of files).
  • In Admin >> Advanced Settings >> File Attachments - 'Attachments directory exists and has correct permissions?' is red and set to 'no'.
  • In Admin >> Advanced Settings >> Attachments Functions - File attachments stats are all 0


However, each post with an attachment shows the paperclip and (attachment deleted).  I have not tried to add an attachment.

Essentially it's a similar story with the avatars.

I think it's a path issue but I haven't got a clue what to do.

Any help would really be appreciated.

Regards,

Lee


 
 
IP Logged  
 Reply #1 - Jun 20th, 2012 at 3:57pm
There are no actions to perform.  

JonB 
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 3,619
Land of the Blazing Sun!


None
Re: Attachments M.I.A
Quote:
In Admin >> Advanced Settings >> File Attachments - 'Attachments directory exists and has correct permissions?' is red and set to 'no'


LOL - well that's not good...

If you wish, you could paste your Paths.pl into a PM to me, and I will take a look at it.

Good Luck
Cool
« Last Edit: Jun 20th, 2012 at 3:59pm by JonB »  
I find your lack of faith disturbing.
 
IP Logged  
 Reply #2 - Jun 20th, 2012 at 4:09pm
There are no actions to perform.  

legrant 
YaBB Newbie
*
Offline
Posts: 11


YaBB 2.5
Re: Attachments M.I.A
Hi Jon,

Thanks for the kind offer. I can't PM you as I haven't hit the 5 post requirement!

Is there another way I can send it to you?

Regards,

Lee
 
 
IP Logged  
 Reply #3 - Jun 20th, 2012 at 4:33pm
There are no actions to perform.  

Bill Myers 
God Member
Beta Testers
*****
Offline
Posts: 1,482
Los Angeles


YaBB 2.4
Re: Attachments M.I.A
legrant wrote on Jun 20th, 2012 at 3:31pm:
  • In Admin >> Advanced Settings >> File Attachments - 'Attachments directory exists and has correct permissions?' is red and set to 'no'.

Essentially it's a similar story with the avatars.

Since it seems you now have your path settings correct, and you only need to deal with permissions (although they're correctly set at 755 for your folder), it's possible that you inadvertently uploaded those particular files as ASCII versus Binary.

Maybe you can try reloading those files in Binary.

By the way, even though you have your Attachments folder correctly set at 755, your server may have automatically assigned any files in that folder to 644 or 666, so you'll want to check to make sure they are also set with permissions of 755.

The same may need to be checked in your /yabbfiles/avatars folder (and files), all of which should be given permissions of 755.

***************************************

Humorous irony: I seem to be fine fixing permission and dealing with uploading issues after I get a forum operating, but my problem has been getting past the 500 error while installing a new forum.

Go figure.  Roll Eyes

In any case, good luck. You seem to be so close to successfully installing your updated forum.  Cool

Edited:
Edited to correct some bad grammar. No, this time it wasn't a typo.  Roll Eyes
« Last Edit: Jun 20th, 2012 at 5:03pm by Bill Myers »  
Morning, noon, or night, have a great one! ...
WWW BillHMyers  
IP Logged  
 Reply #4 - Jun 20th, 2012 at 4:54pm
There are no actions to perform.  

Bill Myers 
God Member
Beta Testers
*****
Offline
Posts: 1,482
Los Angeles


YaBB 2.4
Re: Attachments M.I.A
By the way, that was smart of you to add some test posts so that you can get to the minimum of 5 posts in order to send a PM for help.

However, adding posts in the section of the forum that you posted doesn't count in the number of posts one makes.

Oh well (a little more on that here).  Roll Eyes

 
Morning, noon, or night, have a great one! ...
WWW BillHMyers  
IP Logged  
 Reply #5 - Jun 20th, 2012 at 5:06pm
There are no actions to perform.  

legrant 
YaBB Newbie
*
Offline
Posts: 11


YaBB 2.5
Re: Attachments M.I.A
Bill Myers wrote on Jun 20th, 2012 at 4:54pm:
By the way, that was smart of you to add some test posts so that you can get to the minimum of 5 posts in order to send a PM for help.

However, adding posts in the section of the forum that you posted doesn't count in the number of posts one makes.


I know - it was worth a try wasn't it! I realized it wasn't working!
 
 
IP Logged  
 Reply #6 - Jun 20th, 2012 at 5:09pm
There are no actions to perform.  

Bill Myers 
God Member
Beta Testers
*****
Offline
Posts: 1,482
Los Angeles


YaBB 2.4
Re: Attachments M.I.A
In a moment I'll show you how to know exactly what your path settings should be, although you now seems to have them correct.

In other words, what seems to be left are solving your issues of setting the correct permissions.

Be right back!  Wink
 
Morning, noon, or night, have a great one! ...
WWW BillHMyers  
IP Logged  
 Reply #7 - Jun 20th, 2012 at 5:22pm
There are no actions to perform.  

Bill Myers 
God Member
Beta Testers
*****
Offline
Posts: 1,482
Los Angeles


YaBB 2.4
Re: Attachments M.I.A
Okay, so to check what your correct path settings are (in an otherwise working forum), go to your Admin Center, then Forum Configuration, then Path Settings and ...

Look for:
Absolute Path to your main YaBB directory

This information is useful for troubleshooting purposes

Right below this will be something that looks like the following:

/var/www/virtual/YourDomainHere.com/cgi-bin/yabb/

The path above will not be as you have it (not exactly), but whatever it is, that is the path setting for your forum.

So if your HTML Dir looks like the following:

/var/www/virtual/YourDomainHere.com/htdocs/yabbfiles

Then your Attachments Dir should be as follows:

/var/www/virtual/YourDomainHere.com/htdocs/yabbfiles/Attachments

And your Avatar Dir should be as follows:

/var/www/virtual/YourDomainHere.com/htdocs/yabbfiles/avatars

Disclaimer: This is based on YaBB 2.4 and it's also based on how my forum is set versus your forum. Nonetheless, hopefully this can be of some help, and it will possibly point you in the right direction to solve your issues.

You are so close!  Smiley

Edited:
Where is Dandello when you need her? She knows this stuff like the back of her hand.  Smiley
« Last Edit: Jun 20th, 2012 at 5:34pm by Bill Myers »  
Morning, noon, or night, have a great one! ...
WWW BillHMyers  
IP Logged  
 Reply #8 - Jun 20th, 2012 at 5:32pm
There are no actions to perform.  

Bill Myers 
God Member
Beta Testers
*****
Offline
Posts: 1,482
Los Angeles


YaBB 2.4
Re: Attachments M.I.A
legrant wrote on Jun 20th, 2012 at 5:06pm:
Bill Myers wrote on Jun 20th, 2012 at 4:54pm:
... adding posts in the section of the forum that you posted doesn't count in the number of posts one makes.


I know - it was worth a try wasn't it! I realized it wasn't working!

I forgot to mention that you can easily make some posts here to get to that 5-post minimum. JonB always forgets about this minimum when he offers help via private messages, which is ironic because he can change the minimum number of posts required since he's an administrator.

***************************************

On a related note of showcasing this support forum in the best light that it can shine, an administrator can also install anti-spam mods.

Shhhhh! Don't tell JonB that I mentioned this. He can get a little pissy about me advocating the installation of an anti-spam mod.

Hopefully he's skipping past my posts, and won't notice that I've mentioned this.  Wink

Edited:
Edited to correct some typos.
« Last Edit: Jun 20th, 2012 at 5:47pm by Bill Myers »  
Morning, noon, or night, have a great one! ...
WWW BillHMyers  
IP Logged  
 Reply #9 - Jun 20th, 2012 at 7:18pm
There are no actions to perform.  

JonB 
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 3,619
Land of the Blazing Sun!


None
Re: Attachments M.I.A
@legrant

Shazaam -

You have 5 posts
Smiley
 
I find your lack of faith disturbing.
 
IP Logged  
 Reply #10 - Jun 20th, 2012 at 7:40pm
There are no actions to perform.  

legrant 
YaBB Newbie
*
Offline
Posts: 11


YaBB 2.5
Re: Attachments M.I.A
Bill Myers wrote on Jun 20th, 2012 at 5:22pm:
Right below this will be something that looks like the following:

/var/www/virtual/YourDomainHere.com/cgi-bin/yabb/

The path above will not be as you have it (not exactly), but whatever it is, that is the path setting for your forum.

So if your HTML Dir looks like the following:

/var/www/virtual/YourDomainHere.com/htdocs/yabbfiles


Thanks for the pointers.  I've noticed this and thought it was odd.  Here is my setup:

Absolute Path:
/var/sites/w/www.MYDOMAIN.co.uk/public_html/cgi-bin/yabb2/

Board Directory:
/var/sites/w/www.MYDOMAIN.co.uk/cgi-bin/yabb2/

Avatar & Attachment Directory:
These were along the lines of this format but when I started to troubleshoot I changed it to:
http://www.MYDOMAIN.co.uk/public_html/yabbfiles/Attachments

I've been playing with Paths.pl all day and I haven't yet found the correct combination.  Sad

 
 
IP Logged  
 Reply #11 - Jun 20th, 2012 at 7:41pm
There are no actions to perform.  

legrant 
YaBB Newbie
*
Offline
Posts: 11


YaBB 2.5
Re: Attachments M.I.A
JonB wrote on Jun 20th, 2012 at 7:18pm:
@legrant

Shazaam -

You have 5 posts
Smiley



Made it to 5 - have sent the file to you via email though!
 
 
IP Logged  
 Reply #12 - Jun 20th, 2012 at 7:43pm
There are no actions to perform.  

JonB 
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 3,619
Land of the Blazing Sun!


None
Re: Attachments M.I.A
I'm pretty I see what is wrong.

When I take a break in a just bit, I will get it sorted.

I'm dealing with a network printer subnet issue/problem that should be fixed in a couple

OK here is the issue:

$htmldir = "http://www.hbw.********.co.uk/public_html/yabbfiles";
                                                                      # Base Path for all public-html files and folders
$facesdir = "http://www.********.co.uk/public_html/yabbfiles/avatars";
                                                                     # Base Path for all avatar files
$uploaddir = "http://www.********.co.uk/public_html/yabbfiles/Attachments";
                                                                     # Base Path for all attachment files



Those are supposed to be FOLDER names on your server (notice the variable ends in 'dir':  $htmldir = )

such as


/var/www/.../htdocs/yabbfiles

/var/www/.../htdocs/yabbfiles/avatars

/var/www/.../htdocs/yabbfiles/Attachments

much like the $boarddir line above that in Paths.pl,

but instead pointing to your DocumentRoot (which could be htdocs, public_html, wwwdocs or anything else the server geek decided to call it when provisioning. Its also often called the 'web root'. Its where you put your content on the server.) rather than cgi-bin (which is where executables -- like Yabb -- belong).

Good Luck

Cool
« Last Edit: Jun 20th, 2012 at 7:55pm by JonB »  
I find your lack of faith disturbing.
 
IP Logged  
 Reply #13 - Jun 20th, 2012 at 8:37pm
There are no actions to perform.  

Bill Myers 
God Member
Beta Testers
*****
Offline
Posts: 1,482
Los Angeles


YaBB 2.4
Re: Attachments M.I.A
Edited:
After reading your reply more carefully, the following should work for your site (keeping my fingers crossed).


legrant wrote on Jun 20th, 2012 at 7:40pm:
Thanks for the pointers.  I've noticed this and thought it was odd.  Here is my setup:

Absolute Path:
/var/sites/w/www.MYDOMAIN.co.uk/public_html/cgi-bin/yabb2/

Board Directory:
/var/sites/w/www.MYDOMAIN.co.uk/cgi-bin/yabb2/

Avatar & Attachment Directory:
These were along the lines of this format but when I started to troubleshoot I changed it to:
http://www.MYDOMAIN.co.uk/public_html/yabbfiles/Attachments

What you're actually doing is doubling up on your path, which is why the actual path settings aren't working. A few different variations on your end will get you to the right paths.

One thing is for certain; JonB happens to be an expert on this stuff, and he has many years of experience behind him, so without a doubt he'll get this corrected for you in due time as long as he's given the right information about your server's setup.

***************************************

Okay, now that you've provided your server's information, the following path settings should work (obviously, what's highlighted in yellow needs to be corrected):

Path Settings:

/var/sites/w/www.MYDOMAIN.co.uk/cgi-bin/yabb2/yabbfiles

and

/var/sites/w/www.MYDOMAIN.co.uk/cgi-bin/yabb2/Attachments

and

/var/sites/w/www.MYDOMAIN.co.uk/cgi-bin/yabb2/avatars

***************************************

Additionally, and this may be confusing, below those path settings should be your URL settings, which will look more familiar to you.

So the following is what you should have listed:

HTML URL: http://www.MYDOMAIN.co.uk/cgi-bin/yabb2/yabbfiles

and

Attachments URL: http://www.MYDOMAIN.co.uk/cgi-bin/yabb2/Attachments

and

Avatar URL: http://www.MYDOMAIN.co.uk/cgi-bin/yabb2/yabbfiles/avatars

***************************************

I hope this works. Please let us know how it turns out. Wink
« Last Edit: Jun 20th, 2012 at 9:13pm by Bill Myers »  
Morning, noon, or night, have a great one! ...
WWW BillHMyers  
IP Logged  
 Reply #14 - Jun 20th, 2012 at 8:59pm
There are no actions to perform.  

Bill Myers 
God Member
Beta Testers
*****
Offline
Posts: 1,482
Los Angeles


YaBB 2.4
Re: Attachments M.I.A
By the way, even after you've correctly listed your path settings, and your url settings, neither your attachments nor your avatars will show up if you inadvertently uploaded all of those files into different directories.

One way or the other, you'll have evidence of this once your path settings and url settings have been correctly listed.
 
Morning, noon, or night, have a great one! ...
WWW BillHMyers  
IP Logged  
Pages: 1 2 
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.