Welcome, Guest. Please Login or Register.
August 20, 2025, 03:52:26 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Posting attachments not working « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Posting attachments not working  (Read 794 times)
doddgolf
Guest
Posting attachments not working
« on: January 09, 2003, 03:01:03 AM »
Reply with quote

I have installed 1.5.0 and seems to be fine except when posting with attachements.  Tried small size .gif, set attachments for administator and logged on a such and get this error message

2: OpenDir: No such file or directory (errno 2)
(/home/gbo/cgi-bin/yabbse/Sources/Post.php ln 871)

I have the file post.php in the directory shown so I cannot understand the error message.

Sort of new at this and could use some help, please excuse any idiot questions on my part.

Thanks in advance
« Last Edit: January 09, 2003, 03:01:37 AM by doddgolf » Logged
Killer Possum
Sr. Member
****
Posts: 446


turboz3@msn.com WWW
Re:Posting attachments not working
« Reply #1 on: January 09, 2003, 03:02:31 AM »
Reply with quote

I've seen this one before and if I remember correctly you just have to creat a attachments folder in your YaBBSE directory. Try that and see if that works.
Logged
doddgolf
Guest
Re:Posting attachments not working
« Reply #2 on: January 09, 2003, 03:09:36 AM »
Reply with quote

Wish that is was that easy - already have the folder.

Thanks for the try.

Any other suggestions???
Logged
Killer Possum
Sr. Member
****
Posts: 446


turboz3@msn.com WWW
Re:Posting attachments not working
« Reply #3 on: January 09, 2003, 03:14:37 AM »
Reply with quote

http://www.yabbse.org/community/index.php?board=133;action=display;threadid=15851;start=0

This tpoic discusses the same thing... try searhcing there. Sorry I couldn't be more help, don't know much PHP yet.
Logged
Killer Possum
Sr. Member
****
Posts: 446


turboz3@msn.com WWW
Re:Posting attachments not working
« Reply #4 on: January 09, 2003, 03:18:07 AM »
Reply with quote

You can also use the search option to search for topics on this same problem cause like I said I've seen it before, there are many topics on this problem.
Logged
riz
Noobie
*
Posts: 12


I'm a llama!

ICQ - 52398124 WWW
Re:Posting attachments not working
« Reply #5 on: January 09, 2003, 03:24:40 AM »
Reply with quote

i am getting this error too, but i think it is because i have not set the upload directory properly in the Installed 'Mods' in the admin panel.

like an idiot i overwrote what was in the text box with what i thought was correct,

all i remember it had was something like
"httpd/myserver.com/yabbse/attachments/"
but that doesnt work when i put it in.

can somebody with working attachments please check what is in their "Attachments Upload Path" text box and let me know please  :)


btw it is version 1.5.0 i am running  ;)
« Last Edit: January 09, 2003, 03:25:36 AM by riz » Logged
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:Posting attachments not working
« Reply #6 on: January 09, 2003, 03:46:42 AM »
Reply with quote

okay let me try to help you!

look in your settings.php please, there is a var called $boarddir! this plus /attachments is the attachmentpath

i.e.

$boarddir = "/usr/local/httpd/htdocs/host/www/yabbse";

then your attachmentpath is
/usr/local/httpd/htdocs/host/www/yabbse/attachments

the attachment url is something like http://www.yourdomain.com/yabbse/attachments

mediman
« Last Edit: January 09, 2003, 03:48:27 AM by mediman » Logged

mainComm Dev Team
doddgolf
Guest
Re:Posting attachments not working
« Reply #7 on: January 09, 2003, 12:20:43 PM »
Reply with quote

Thanks Mediman

I thought I had to use the httpd, but once I looked in my settings.php I found that $boarddir was actually

/home/username/cgi-bin/yabbse

tried it with /attachments added and works like a charm.

attachment path was already correct as per your example

Thanks again.

doddgolf
Logged
rosdi
Noobie
*
Posts: 35


I'm a llama!

Re:Posting attachments not working
« Reply #8 on: January 16, 2003, 02:18:10 AM »
Reply with quote

I can't get it. My setting.php is like this:

$boarddir = "/home/qd-race/public_html/forum";

My YABB is installed in this /public_html/forum folder. I did create Attachments folder in /forum. I still cannot attach image.

I confuse on how to set it.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Posting attachments not working
« Reply #9 on: January 16, 2003, 03:41:46 AM »
Reply with quote

The attachments url, for you, should be:

/home/qd-race/public_html/forum/attachments

Make sure you set this in the settings.  Then use http://sub.yourhost.com/forum/attachments as your URL.

If it does not work after that, please provide us with a link.

-[Unknown]
Logged
rosdi
Noobie
*
Posts: 35


I'm a llama!

Re:Posting attachments not working
« Reply #10 on: January 16, 2003, 05:03:26 AM »
Reply with quote

Quote from: [Unknown] on January 16, 2003, 03:41:46 AMThe attachments url, for you, should be:

/home/qd-race/public_html/forum/attachments

-[Unknown]

So my new setting in settings.php will be:

$boarddir = "/home/qd-race/public_html/forum/attachments";

The Attachments folder already in ./forum/

Quote from: [Unknown] on January 16, 2003, 03:41:46 AMMake sure you set this in the settings.  Then use http://sub.yourhost.com/forum/attachments as your URL.

-[Unknown]

You mean in Forum Configuration|Forum Preferences and Settings|Board URL to http://www.qd-race.com/forum/attachments

Anyway, my forum address is at http://www.qd-race.com/forum/index.php
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Posting attachments not working
« Reply #11 on: January 16, 2003, 05:35:56 AM »
Reply with quote

Let me try again.

Leave $boardurl the way it was!!!!  It was good already.

In the 'Mods' Settings and options area, there is a whole section dedicated to attachments.

"Attachments Upload Path" should be /home/qd-race/public_html/forum/attachments

Attachments URL should be http://www.qd-race.com/forum/attachements

Your board will cease to function if you change your boardurl or boarddir to these, they are ONLY for the attachments!!!

-[Unknown]
Logged
rosdi
Noobie
*
Posts: 35


I'm a llama!

Re:Posting attachments not working
« Reply #12 on: January 16, 2003, 06:02:55 AM »
Reply with quote

I did change the Upload Path and URL as instructed but still got error:

2: OpenDir: No such file or directory (errno 2)
(/home/qd-race/public_html/forum/Sources/Post.php ln 871)

Attachments folder already in /forum
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Posting attachments not working
« Reply #13 on: January 16, 2003, 08:15:11 AM »
Reply with quote

$dir = opendir($modSettings['attachmentUploadDir']);

Unless your attachment path is simply bad, this should work.

-[Unknown]
Logged
rosdi
Noobie
*
Posts: 35


I'm a llama!

Re:Posting attachments not working
« Reply #14 on: January 16, 2003, 08:33:25 AM »
Reply with quote

What should I do next. Should I send you settings.php file?

Please help...
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Posting attachments not working « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.015 seconds with 20 queries.