Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress pages not working –> http://xxx.xxx.xx.xxx/members/admin/profile/public/, etc.

  • I’ve reinstalled WP twice (which is working just fine) and also BP twice, but I can’t get to where the BuddyPress activity, blogs, forums, friends, groups, etc. will show pages with content. All I get is the following in the error log:

    [Sat Mar 05 03:19:18 2011] [error] [client xxx.xxx.xxx.x] File does not exist: /data01/home/username/production/wordpress/members, referer: http://xxx.xxx.xx.xxx/

    where /data01/home/username/production/wordpress is the document root for Apache.

    Now, I followed the installation directions (http://codex.buddypress.org/getting-started/setting-up-a-new-installation/) exactly, including changing the permalink structure, but for some reason buddypress is looking in the wordpress directory for /members. I thought all of that was supposed to be under /wordpress/wp-content/plugins/buddypress/bp-themes/bp-default/members. But maybe I’m wrong?

Viewing 21 replies - 1 through 21 (of 21 total)

  • @mercime
    Participant

    @mercime

    == I thought all of that was supposed to be under /wordpress/wp-content/plugins/buddypress/bp-themes/bp-default/members ==

    That would be the folder where template files of bp-default theme is located.
    If you installed WordPress in /wordpress folder and activated BP in main site then yes, the default url for members directory would look like …/wordpress/members

    Thanks, mercime. But when I add in “/wordpress/” in front of “/members/…”, I still get 404.

    http://xxx.xxx.xx.xxx/wordpress/ also returns a 404. But http://xxx.xxx.xx.xxx/ returns the buddypress-enabled home page, fully themed and functional, except for the fact that clicking any deeper part of the admin menus returns 404.

    My apache virtualhost settings are as follows:

    `
    ServerAdmin webmaster @xxx.xxx.xx.xxx
    DocumentRoot /data01/home/username/production/wordpress
    ServerName xxx.xxx.xx.xxx
    ErrorLog logs/xxx.xxx.xx.xxx-error_log
    CustomLog logs/xxx.xxx.xx.xxx-access_log common
    `

    Does anything need to change there to fix this problem?

    Grr. Ignore the part after “webmaster” in previous post. The forum is doing weird stuff to it. It’s supposed to be just the IP address.

    As an experiment, I changed “wordpress” in the documentroot path to “wp”. Restarted apache. Still, the home page loads beautifully, yet every link in the site (buddypress link or blog post link) leads to 404. Totally confused here. Never had this happen before after many, many installs.


    @mercime
    Participant

    @mercime

    Do post your .htaccess file here – something might have gotten messed up there.

    # There are lots of WordPress hacks designed to take the contents of your wp-config
    # file (username and password) and dump them to a text file a spambot can pickup and
    # send to a hacker. If you block access to wp-config file in your .htaccess using
    # this method, you block those hackers from getting your database login information.
    Order deny,allow
    deny from all

    # Turn off directory indexing to keep anyone from seeing the contents of a directory
    # if there is no index file.
    Options All -Indexes

    # Block known spambots and crawlers. Update the following section with newly discovered
    # spambots and crawlers. This blocks them from ripping off posts and images (costing
    # bandwidth in the process.
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Bot mailto:craftbot @yahoo.com [OR]
    RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
    RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Download Demon [OR]
    RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
    RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
    RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
    RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Express WebPictures [OR]
    RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
    RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
    RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
    RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
    RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
    RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
    RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
    RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^Image Stripper [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Image Sucker [OR]
    RewriteCond %{HTTP_USER_AGENT} Indy Library [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Internet Ninja [OR]
    RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
    RewriteCond %{HTTP_USER_AGENT} ^JOC Web Spider [OR]
    RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
    RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Mass Downloader [OR]
    RewriteCond %{HTTP_USER_AGENT} ^MIDown tool [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Mister PiX [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
    RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
    RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
    RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Net Vampire [OR]
    RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]

    RewriteCond %{HTTP_USER_AGENT} ^Offline Explorer [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Offline Navigator [OR]
    RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Papa Foto [OR]
    RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
    RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
    RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
    RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
    RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
    RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
    RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
    RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
    RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Teleport Pro [OR]
    RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Web Image Collector [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Web Sucker [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebGo IS [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Website eXtractor [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Website Quester [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
    RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Xaldon WebSpider [OR]
    RewriteCond %{HTTP_USER_AGENT} ^Zeus
    RewriteRule ^.* – [F,L]

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress


    Andrea Rennick
    Participant

    @andrea_r

    “Still, the home page loads beautifully, yet every link in the site (buddypress link or blog post link) leads to 404. “

    This means your htaccess file isn’t even being read. So it matters little what’s actually *in* it. Cuz it’s not even getting that far.

    BP requires pretty permalinks to work. If they aren’t working, no BP.

    You have to fix the Apache config. AllowOverride FileInfo Options usually does it.

    Andrea_r: Thanks. So I commented out the current AllowOverride None directive and added AllowOverride FileInfo Options, like this:

    `# First, we configure the “default” to be a very restrictive set of
    # features.
    #

    Options FollowSymLinks
    #AllowOverride None
    AllowOverride FileInfo Options
    `

    Then I restarted httpd. Now I get 500 internal server error. Is there another place I should be putting AllowOverride FileInfo Options instead?

    I have tried adding all these settings, selecting all different forms of pretty permalinks, relocating my .htaccess file to various locations throughout the /var/www/html hierarchy, and restarting httpd over and over again, but none of them have worked.

    The only other thing I can think of is that at one point I was using a symlink to point documentroot /var/www/html/wp to /data01/home/username/production/wp (i.e. /var/www/html/wp –> /data01/home/username/production/wp). Right now, documentroot points directly at /data01/home/username/production/wp for the VirtualHost DocumentRoot directive without using a symlink. I still can’t get WordPress posts or buddypress activity, group, member, etc. pages to appear. All 404s.

    Any ideas of other things I could try?

    Delete your custom .htaccess and use the default (go into wp-admin permalinks, change it to another setting, then save, then change it back to what you want the permalinks to be. This should regenerated htaccess).

    Paul,

    Thanks for your suggestion. I deleted .htaccess, restarted Apache, did the permalink switch and changed it back, and saw that the .htaccess file was regenerated, but it didn’t fix the problem of getting 404s on everything but the home page.

    I’m beginning to wonder if it’s the host. Problem is, the particular (corporate) hosting package i’m using (SAVVIS) is such that I’m responsible for all apps. They don’t support anything above the basic OS setup, so I can’t turn to them for troubleshooting. However, if you can think of anything at the network (maybe the firewall settings?) or OS level that I might be missing, then I could ask them to troubleshoot that part of it all.

    Here are example lines from my error log and access log (IP numbers obfuscated for security):

    Error log:
    `[Tue Mar 08 14:25:49 2011] [error] [client 123.456.789.0] File does not exist: /data01/home/username/production/wp/members, referer: http://098.765.43.210/`

    Access log:
    `123.456.789.0 – – [08/Mar/2011:14:25:49 +0000] “GET /members/admin/profile/ HTTP/1.1” 404 300`

    With Permalinks set to “Month and Name”, a hit to the hello world blog post for this install generates the following error and access log entries:

    Error log:
    `[Tue Mar 08 14:38:48 2011] [error] [client 123.456.789.0] File does not exist: /data01/home/username/production/wp/2011, referer: http://098.765.43.210/`

    Access log:
    `123.456.789.0 – – [08/Mar/2011:14:38:48 +0000] “GET /2011/03/hello-world/ HTTP/1.1” 404 298`

    Setting the Permalinks to “Day and Name” gives this:

    Error log:
    `[Tue Mar 08 14:35:02 2011] [error] [client 123.456.789.0] File does not exist: /data01/home/username/production/wp/2011, referer: http://098.765.43.210/`

    Access log:
    `123.456.789.0 – – [08/Mar/2011:14:35:02 +0000] “GET /2011/03/05/hello-world/ HTTP/1.1” 404 301`

    Noting that it wants to go to `wp/members` rather than where the buddypress install and BP Compatibility configuration directions had me put that and its other folders (which was in `/wp/wp-content/themes/bp-default`), I copied all the bp-themes directories to where WordPress and the web server are looking for them… `/wp/members`.

    The URL that appears in the browser is http://098.765.43.210/members/admin/activity/

    That’s not exactly right, though, as the structure “admin/activity” isn’t even part of “members”. The error log reflects this (correctly) as:
    `[Tue Mar 08 14:48:36 2011] [error] [client 123.456.789.0] File does not exist: /data01/home/username/production/wp/members/admin`

    And so does the access log:
    `123.456.789.0 – – [08/Mar/2011:14:48:36 +0000] “GET /members/admin/activity/ HTTP/1.1” 404 301`

    So I truncate the URL in the address bar to be http://098.765.43.210/members and now I get a blank page. No source.

    The access log now says:
    `123.456.789.0 – – [08/Mar/2011:14:53:01 +0000] “GET /members/ HTTP/1.1” 200 -`

    But the error log now says:
    `[Tue Mar 08 14:53:01 2011] [error] [client 123.456.789.0] PHP Fatal error: Call to undefined function get_header() in /data01/home/username/production/wp/members/index.php on line 1`

    I’m soooo totally baffled by all of this. I thought the BuddyPress installation instructions were pretty straightforward, but it seems to actually work in a whole different way from what is documented.


    @mercime
    Participant

    @mercime

    === … relocating my .htaccess file to various locations throughout the /var/www/html hierarchy … I thought the BuddyPress installation instructions were pretty straightforward, but it seems to actually work in a whole different way from what is documented. ===

    BuddyPress installation is pretty straightforward when server configuration is stable and meets standard requirements https://codex.buddypress.org/getting-started/before-installing/
    which includes WordPress install already working with pretty permalinks at the very least https://codex.wordpress.org/Using_Permalinks#Using_.22Pretty.22_permalinks You should read this as it addresses the .htaccess file which is at the crux of the matter

    The .htaccess file for your WordPress installation should be where WP is installed.
    If WP in root, http://yoursite.com/ then .htaccess should be at http://yoursite.com/.htaccess.
    if WP in subdirectory, then .htaccess should be at http://yoursite.com/subdirectory/.htaccess.

    Strongly recommend you restart from scratch by deactivating BuddyPress and BP plugins, change theme to default twentyten theme, deleting .htaccess file wherever you placed it and dropping tables in DB. Reinstall WordPress and resolve pretty permalinks issues at https://wordpress.org/support/forum/how-to-and-troubleshooting before installing BuddyPress.

    Good luck.

    Well, I definitely had PHP 4.3 or better, MySQL 4.1.2 or better, and Apache Module mod_rewrite enabled for “pretty permalinks”. I had installed it a couple of times over before that, but I can’t remember whether I tested the clickthrough to the single hello world post for that (just saw the home page and that the dashboard worked), so I wouldn’t know whether I had a fully stable WordPress install to begin with.

    I’ll give the reinstall a try and report the results for posterity in this thread.


    @mercime
    Participant

    @mercime

    Good call. Looking forward to your successful report here :-)

    Might I add that if you’re planning to allow your users to create blogs, go multisite (create a network) first before installing BuddyPress.

    Still not fixed.

    I did a ground-up uninstall and reinstall of all the components of the LAMP stack:

    Uninstall
    1) yum remove httpd (preserved my httpd.conf file in the /etc/httpd/conf directory, deleting everything else)
    2) yum remove mysql
    3) yum remove php
    4) deleted everything out of /var/www/html

    This puts the server back to its fresh install situation before I ever added any packages. This is a brand new RedHat Enterprise Linux install with nothing else running on it.

    Install
    1) yum install httpd
    2) yum install -y mysql mysql-server
    3) yum install -y php php-mysql
    4) Copied wordpress files to /var/www/html, which is the DocumentRoot setting in my httpd.conf file, ensuring that chown -R apache:apache and chmod -R 755 on everything, including html directory
    5) Restored /etc/httpd/conf/httpd.conf from backup
    6) Started httpd using /sbin/service httpd start. It starts with zero errors. All ok.

    I type in http:// followed by the IP address currently standing in for my domain name (as yet undetermined). Earlier in our discussion thread, I used to get the wordpress install script. Now I just get the Apache server test page for RedHat Linux. If I put index.html with “

    It Works!

    ” into /var/www/html, then I see that. If I remove the index.html, I still don’t see the install script starting up. Just that Apache RHEL default test page.

    But, if I add /wp-admin to my URL, it DOES go into the install script. That was something I didn’t have to do before. But at least I’m getting this far. So I go through the install and get into the Dashboard.

    I immediately go to the Permalinks menu and switch to a different scheme so as to generate the .htaccess file. That works just fine. I then immediately go to test the home page. Nothing but a 404. Earlier in this thread, I at least got the home page when none of the other links worked. Now that doesn’t even work.

    This really sucks. I can’t figure out what’s wrong because this server is exactly like other servers our hosting provider has given us for the same thing, and those all work fine. They don’t troubleshoot WordPress installs because, well, they just don’t. Their business is server hosting. The app level is up to the customer.

    What did I miss? How could this time through (the same as the first, second, third, and fourth time through) of the install have resulted in something so different?

    Thanks.

    Ok, I did finally realize that my problem of getting nothing at http://ip.address… was because I my index.php file went missing.

    Duh.

    But, despite the permalink update and correctly generated .htaccess file, I still don’t have access to posts and pages. Just the home page. BuddyPress isn’t installed yet. This is just the base WP 3.1 install.

    Found the answer! Yet again, it’s that darn AllowOverride None to AllowOverride All thing. I wish that was configured during WP setup, but can understand why it isn’t.


    @mercime
    Participant

    @mercime

    I know. I just keep forgetting about it. Thanks for your prompt help, though. It helped unstick my thinking.

Viewing 21 replies - 1 through 21 (of 21 total)
  • The topic ‘BuddyPress pages not working –> http://xxx.xxx.xx.xxx/members/admin/profile/public/, etc.’ is closed to new replies.
Skip to toolbar