En to test.
bbPress ShowcasebbPress Showcase
bbPress Showcase » Plugins by _ck_
-
-
Testing with a piggie :-).
Posted 3 years ago # -
-
-
just testing file size restrictions
Posted 3 years ago # -
Hi
I am setting up a test bbpress forthe first time at http://www.ps123.co.uk/bbpress/
I have plugged-in bb-attachments but it isn't working.
My problem appears to be exactly as a.dima but he/she was lucky enough to get the right path from his shared hosting ISP.
I asked my ISP and they said
the path needs to be: /home/httpd/vhosts/domain/httpdocs
. At the time I was trying to upload to the public area - I thought maybe if I could get that to work then I could go on to get it in the web root. I have tried and tried but just can't get it.Where I am at the moment is:
I have created the target folder as /private/bb-attachments/ (I can create it in the private folder but denied at level above that which is the root folder). Permissions are set to 777.
I have edited bb-attachments.php and the path line is:
$bb_attachments['path']="/home/httpd/vhosts/ps123.co.uk/private/bb-attachments/";
I made a path test file at http://www.ps123.co.uk/test/doc1.php which is simply:
<p>path test</p>
<?php $p=dirname($_SERVER['DOCUMENT_ROOT'])."/private/bb-attachments/";
?>
<?php echo $p ?>and you can see the output as:
path test
/home/httpd/vhosts/ps123.co.uk/private/bb-attachments/When I test the file upload it still fails to upload the file although there is an entry in the mysql bb-attachments table.
Looking at my server error log the report is:
[Mon Jan 19 01:58:32 2009] [error] [client 80.3.172.250] PHP Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/httpd/vhosts/ps123.co.uk/private/bb-attachments/0) is not within the allowed path(s): (/home/httpd/vhosts/ps123.co.uk/httpdocs:/tmp) in /home/httpd/vhosts/ps123.co.uk/httpdocs/bbpress/bb-plugins/bb-attachments/bb-attachments.php on line 355, referer: http://www.ps123.co.uk/bbpress/topic.php?id=6
I noticed the "0" at the end of "File(/home/httpd/vhosts/ps123.co.uk/private/bb-attachments/0)". Is that the problem? Or do I just need to get the path right? I would be so grateful if you could help me with this - I have tried for hours to get it top work and it is essential for the forum I need to run - if I can't get it working I will have to look at another forum and I would be very sad as I am a great fan of Wordpress.
Sorry for sucha long post
Thanks
Posted 3 years ago # -
Your host doesn't allow directories above httpdocs since they don't put your domain's root in the open_basedir (which is stupid)
So you can only create and use this path
/home/httpd/vhosts/ps123.co.uk/httpdocs/bb-attachments/it will work if you change the path in the settings but you'll have less security.
Posted 3 years ago # -
Thanks _ck_ but that didn't work either.
When you say "change the path in the settings" do you mean line 67 of bb-attachments.php?
Dolphin
Posted 3 years ago # -
I mean
$bb_attachments['path']=
"/home/httpd/vhosts/ps123.co.uk/httpdocs/bb-attachments/";Posted 3 years ago # -
Hello.
Many thanks to __ck__ for this great plugin, and for contributing to bbpress.Trouble:
The upload button posts the content instead of just uploading the image.
And I don't get any errors or anything and neither any attachment link to my post.
Here's the url: http://solar.mridkash.com/forums/
Posted 3 years ago #
RSS feed for this topic