File(/class.wp-object-cache.php) is not within the allowed path(s): (/var/www/vhosts/****.com/httpdocs:/tmp) in /var/www/vhosts/****.com/httpdocs/bbpress/bb-includes/backpress/functions.wp-object-cache.php on line 14, referer: http://www.****.com/bbpress/bb-admin/install.php?step=1
[client 212.57.254.102] PHP Warning: main(class.wp-object-cache.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/****.com/httpdocs/bbpress/bb-includes/backpress/functions.wp-object-cache.php on line 14, referer: http://www.****.com/bbpress/bb-admin/install.php?step=1
[client 212.57.254.102] PHP Fatal error: main() [function.require]: Failed opening required ‘class.wp-object-cache.php’ (include_path=’.:.:.:’) in /var/www/vhosts/****.com/httpdocs/bbpress/bb-includes/backpress/functions.wp-object-cache.php on line 14, referer: http://www.****.com/bbpress/bb-admin/install.php?step=1
This is from my log. I’ve checked the config syntax and copied it many times to make sure it was ok.
I’ll have a look at that link thanks as I can contact the guy who runs the server.
Hi,
The site is hosted by a Plesk enviroment which runs linux. bbpress version the latest beta and the current stable one. I intend to integrate it with wordpress but I did’t even get that far.
Maybe someone who uses GoDaddy hosting has a Linux account there and can test _ck_’s NFS Detector™?
I know, I rethought that after I posted it. I don’t understand Windows/IIS servers either, so it makes no sense to me. On Linux, there’s nothing funny about it at all. It just works. Make a directory, it works. You can write to it. It’s easy. This makes no sense.
I will check into write permissions for that folder. I don’t see why a file in that folder can’t write to the folder, but hey, I don’t know anything about Windows servers at all.
Is there a way to go ’round the problem, hardcoding something or creating the file manually first?
Well the creation errors aren’t exactly godaddy’s fault, it’s just something weird with windows I don’t completely know about since I hate IIS and won’t even test it.
Makes no sense that a php program can’t create a file. Something is wrong there.
Only intelligent thing I can find about it is here:
http://us2.php.net/manual/en/function.fopen.php#50601
Do you have some kind of security panel where you can give your account write permission to the /test/ directory?
There are no other errors but that one?
What type of host OS are you using?
What version bbPress did you install?
Are you integrating with WordPress and if so, what version?
_ck_
Sorry, that didn’t work. More errors this time. It’s making GoDaddy look worse and worse.
Warning: fopen(
Hosting123456htmlgodaddytesttest.txt) [function.fopen]: failed to open stream: Permission denied in
Hosting123456htmlgodaddytestdefault.php on line 9
Warning: fclose(): supplied argument is not a valid stream resource in
Hosting123456htmlgodaddytestdefault.php on line 9
Warning: chmod() [function.chmod]: No such file or directory in
Hosting123456htmlgodaddytestdefault.php on line 9
Warning: touch() [function.touch]: Unable to create file
Hosting123456htmlgodaddytesttest.txt because Permission denied in
Hosting123456htmlgodaddytestdefault.php on line 11
0.00039196014404297 seconds
I know my config file is right and the database name, user and password are ok. I installed WordPress no problem.
when I go to /bbpress , I get the inital screen where you enter the details but as soon as I went to step 2 I just got a blank screen. As soon as there is a config file I get nothing !!.
I’ve looked in the errors and I see “open_basedir restriction in effect. File(/bb-includes/db.php) is not within the allowed path(s):”
Is open_basedir the problem?
Thanks
Hi there i just installed bbpress 1.0-alpha with wordpress 2.7 everything went great untill i started creating useres.
If you go under admin to the user edit profile page i get this error under user type
Warning:array_key_exists() [function.array-key-exists]: the second argument should be an array or an object in functions-bb-template.php on line 2021 >Key Master
Warning:array_key_exists() [function.array-key-exists]: the second argument should be an array or an object in functions-bb-template.php on line 2021 >Administrator
Warning:array_key_exists() [function.array-key-exists]: the second argument should be an array or an object in functions-bb-template.php on line 2021 >Moderator
Warning:array_key_exists() [function.array-key-exists]: the second argument should be an array or an object in functions-bb-template.php on line 2021 >Member
and so on for all user types
this is what i got from line 2021 in functions-bb-template.php
<option value=”<?php echo $r; ?>”<?php if ( array_key_exists($r, $user->capabilities) ) echo ‘ selected=”selected”‘; ?>><?php echo $n; ?></option>
with this error only admin can post comments all other users i guess dont have a type assigned because of this error
wordpress and bbpress our using the same data base, i can login to wordpress and go to bbpress and still be loged in so i know that part works just something with transferring the user type is not working.
Any help would be greatly appreciated
I can confirm that I’ve experienced this issue as early as alpha 2 as well.
@ipstenu:
No, I can assure you it was that way since beta2, since that’s when I first started trying to research this whole integrating thing and noticed this issue myself. I assumed then that it was bad integration on my part, or that one of the several plug-ins or modifications I’ve made was causing it. Because I personally plan on avoiding that profile page all together, I skipped the error and prioritized my efforts more towards integrating logins and themes.
@johnjamesjacoby
The issue with roles has actually been since I remember integration starting with 2.7/1.0 series. It’s basically because there is no role set and no role map set for the bbPress side of it.
The issue with roles being set as INACTIVE is expected and worked without issue (once the user logged in, all was fine). But having the roles show up as an ‘error’ is new since 1.0a4.
@sambauers
Yes, I’m viewing that as the Key Master. I’ll run another test with a new user to see what’s happening as well.
@johnjamesjacoby
Yes, this has been a problem since the 2.7/1.0 integration. Registration through bbPress works fine, but that won’t be an option for me once going live.
Update:
I tried adding a user through WordPress, then logging in with that profile in bbPress. No user role was set. Then, I checked it with the Key Master account and got the same error I posted above.
Users are still logged in fine across both installations.
Well I implemented my silly workaround with the conditional in the header and it works;
if this is_bbress -> bbpress search form
else -> wp search form
you get results only for the forum inf you are browsing bbpress and only for wordpress if you are in wp.
Yes too bad and goodbye Godaddy, Candice, and Danica.
Thanks for the code John
Half the results but it actually could solve the 404 problem.
However, adding a get_settings(‘home’) to the search form makes this search;
/wordpress/wordpress/bbpress/?s=
I had in mind that perhaps anybody developed a wordpress plugin that could search both, wp and bb and then display the results, first all the wp entries and next all the bb entries.
Or maybe a conditional in the wp template where I placed wp searcher; first the wp searcher with anything similar to John’s get_settings(‘home’) and then a conditional; if this is bbpress then use bbpress searcher and append the results. I already have a function to create bb conditionals in wp;
function is_bbpress() {
global $bb;
return $bb ? true : false;
}
There is another search plugin for bbPress that appends a WordPress search to the bbPress search.
I wanted all the contrary
a wp plugin that appends bb results at the end of the search.
BTW, after finding the searcher issue I realized that 404 templates need integration too.
There are numerous other quirks too in bbPress’s parsing.
For example paragraph tags are stripped inside of backticks.
You might want to create a static page outside of your bbPress installation that still uses the matching header and footer you have in bbPress. Well it’s very easy.
Make yourself a directory above bbPress with any name you’d like, let’s say “/about/”
In “/about/” make an index.php with this content:
<?php
require('../forums/bb-load.php'); // change /forums/ to your actual forum path
add_action('bb_head','about_css');
include(bb_get_active_theme_uri()."header.php");
function about_css() { // put any custom CSS you want in here
echo '<style>
img {border:0;}
</style>';
}
?>
<h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a> » About</h3>
<h2>About</h2>
Your "about" text goes here!
<?php include(bb_get_active_theme_uri()."/footer.php"); ?>
Using deep integration, if you load the WordPress search box into the header of bbPress, you can still search WordPress alone if you use something like
<form id="searchform" method="get" action="<?php echo get_settings('home'); ?>">
This way the search form is using the WordPress root directory as it’s destination rather than trying to redirect to a bbPress file.
As far as a unified search solution, the problem there really then becomes which engine do you use to display the results, WP or BBP? Either way it requires a plug-in on that relative side of the equation. It’s certainly possible, but you’re only making 50% of your audience happy at that point, because the other 50% will want it the other way.
There is another search plugin for bbPress that appends a WordPress search to the bbPress search.
https://bbpress.org/plugins/topic/wp-search/
I will eventually add wordpress searching to super-search, I just ran out of time/interest.
vannak, 10 seconds is very bad (the time is independent of where you access it from)
chrishajer, something’s not right there, Windows must think you don’t have access rights to write to the directory. Whatever Windows’s equal to chmod has to be done.
According to php.net the chmod in php actually does do something on some windows setups.
So try replacing this line, like so:
$file=dirname(__FILE__)."/test.txt"; $h=fopen($file, "wb"); fclose($h); chmod($file, 0777 );
Just found out that entities behave really strangely in bbPress. For some reason the standard behaviour is to take unencoded entities and encode them when editing a post.
Hi _ck_ i did what you told already. and the fastest one is 9.9959759712219 seconds (in Cambodia). what do u think about it?
_ck_
I needed to change the /test.txt to \test.txt, but even once that was done, I get this error (prior to this, the filename and path were not right):
Warning: file_put_contents(
Hosting123456htmlgodaddytesttest.txt) [function.file-put-contents]: failed to open stream: Permission denied in
Hosting123456htmlgodaddytestdefault.php on line 9
Warning: touch() [function.touch]: Unable to create file
Hosting123456htmlgodaddytesttest.txt because Permission denied in
Hosting123456htmlgodaddytestdefault.php on line 11
0.00028681755065918 seconds