bbPress

Simple, Fast, Elegant

bbPress support forums » Installation

Updated to Desmond But Theme Not Working

(65 posts)
  • Started 1 year ago by pfdebate
  • Latest reply from uwemekpenyong
  • This topic is resolved
  1. Kirkk
    Member

    I did everything but it is still the same :/

    Posted 1 year ago #
  2. Kirkk
    Member

    Tomorrow i will try it on a different server and with different directory path. If i can, i will write you the reason ...

    Thanks everyone...

    Posted 1 year ago #
  3. Sorry, I should have done this sooner for you (just been crazy busy!). Create a file called whatever you want, but I recommend path-to-url.php and put the following in it and upload it to /my-plugins/ directory:

    <?php
    
    function fix_bb_path_to_url( $url ) {
    	$url = str_replace(array('//', '\\\\'), array('/', '\\'), $url);
    	return preg_replace( '|:/([^/])|', '://$1', $url );
    }
    
    add_filter( 'bb_path_to_url', 'fix_bb_path_to_url', 1, -1 );
    
    ?>

    That might work with the stylesheet issue. Let me know

    Trent

    Posted 1 year ago #
  4. ccmve
    Member

    I'm having a similar problem.

    I've uploaded my custom theme to /my-templates/mytheme
    The default theme is in /bb-templates/kakumei/

    The site is working fine, but I see this error: "Theme not found. Default theme applied." And I cannot switch to my custom theme. The reason is in the URL to the custom theme in the presentation>themes panel:

    http:// forum.mybbpress.com/bb-admin/themes.php? theme=C:\\WWW\\PUBLIC\\forums.mybbpress.com/ bb-templates/mytheme/&_wpnonce=36ec0251eb

    Obviously that URL won't work. I've uploaded both plugins above. Neither worked. How do I fix the URL to mytheme?

    Posted 1 year ago #
  5. Kirkk
    Member

    To fix this, i have uploaded all my files and directories without installing them on localhost... First, i uploaded wordpress to my web server and installed it then uploaded bbpress and installed it on web server...

    ... before of that "above" , i had installed both of them on my localhost then i had uploaded them to my web-server, but that moment i had problems with slashes. Because there is an confusing section about slashes between the normal windows and web server...

    And i recommend that do not change the folder name of your "bbpress" after u upload it to your web server . I tried it two or three times after i installed both of my wordpress and bbpress on my web server, it caused slashes to head backwards...

    Now i have solved all my problems :)
    forward to hearing from you with the same :)

    (sorry for my english if i made any mistake, it is not my first language)

    Posted 1 year ago #
  6. ccmve
    Member

    I think my problem is slightly different though since bbpress is incorrectly mixing the directory path with the URL and adding extra slashes.

    Posted 1 year ago #
  7. Just a note, and it would be nice if this was FIXED in core soon please! I currently just did a fresh install of the TRUNK on localhost, and have the same problem as Kirkk here:

    http://bbpress.org/forums/topic/700?replies=36#post-4849

    Stylesheet URL is this:
    <link rel="stylesheet" href="http://localhost\forum/bb-templates/kakumei/style.css" type="text/css" />

    That plugin Trent posted is applied, and is NOT working... Please, fix this issue soon guys.. ;) :) And by the way, no, my localhost copy of the forums are still borked.. >_<

    And course! My config.php file settings are right.. I've done this numerous of times before.. wheee! Even used the original config.php file from before, when it was installed before and working.. she still borked regardless sigh..

    spencerp

    Posted 1 year ago #
  8. Dang, I just re-read what I said last time. I swear folks... I wasn't drinking when I wrote that lmao! But yes, It's still borked gerd damn its!!! Anyone with a possible fix (solution) ... thanks?!

    I'd like to get Chelsea working here soon!! Wheee!

    spencerp

    Posted 1 year ago #
  9. I'll second that, spencerp, the paths are all screwy on localhost installs on Windows machines. It works fine on linux, though.

    Posted 1 year ago #
  10. What is bbPress used for when installed locally on a Windows machine? Is that just a test environment?

    Posted 1 year ago #
  11. Yeah, I setup Xampp Lite on my computer to be able to run WordPress and bbPress. Then I modify things, and play with it on the localhost before uploading things to my live sites/forums..

    spencerp

    Posted 1 year ago #
  12. What OS is the live site/server running? I have always had problems testing on platforms other than the final one, even from linux to linux, with things like PHP and MySQL versions. So, the testing I did never seemed worth it. Why not set up a subfolder or subdomain on the live host and play there, to eliminate variables?

    I think the developers could better use their resources making bbPress work in production environments (MS and *nix) rather than on localhost. There seem to be quite a few path/slash\config issues getting it running on localhost.

    Posted 1 year ago #
  13. Here's one site's informations:
    http://spencerp.net/blah.php

    Yeah, I've played on the live environments before. Sub domains and such. However, I'm also on crap dial-up connections and don't always have time to be online. Also, since there is only ONE phone line in the house and the family using the line .. it sucks.

    But this issue wasn't that bad before, it just started up I think the past few times of fondling the bbPress software. They need to fix this shit, and once it's working good.. leave it the hell alone! LoL! =P

    spencerp

    Posted 1 year ago #
  14. Do you have any issues transitioning from a desktop environment to a server environment (as I did, with MySQL and PHP versions and configs and such)?

    How about installing a linux distro in house since your server is linux also?

    Posted 1 year ago #
  15. Do you have any issues transitioning from a desktop environment to a server environment (as I did, with MySQL and PHP versions and configs and such)?

    To tell you the truth, I didn't have any issues going from my Xampp Lite localhost copies, straight to my live servers. I just find it odd though that this whole time of running that bbPress on the localhost, and just applying the SVN updated files from time to time. It was fine..

    It was only when I installed it fresh, with the latest copies of Trunk that it gave me this problem. I SVN CO the trunk on my other new domain via SSH and it went smoothly... no troubles though, I guess that's to be expected. Hmm.. I'll have to look into the problem a little deeper.

    I'm trying to when I have the time, but with being so busy.. it's hard taking a gander at it...sigh.

    How about installing a linux distro in house since your server is linux also?

    Geesh, didn't even think of that, or try it. Thanks for that, I'll have to give it a go then. ;) :)

    spencerp

    Posted 1 year ago #
  16. How about installing a linux distro in house since your server is linux also?

    That's a temporary solution, but once bbPress goes final and gets publicity the likes of WordPress, this Windows/localhost problem will need to be addressed.

    Posted 1 year ago #
  17. Is there a problem on Windows servers, or just on localhost on Windows?

    Of course my suggestion is only a temporary solution. But I am of the belief that the QA or dev server should be the same configuration as the production server, to eliminate the possibility of bugs being introduced when you go live. Installing this on localhost on a Windows desktop machine and 'making it work' when your production site is on a linux server seems to me like too much work.

    With bbPress still being beta, I'm not too worried about it. Wordpress 1.0-RC1 was released somewhere around Jan 1 2004. Their version before that, 0.72 beta1 was released in August 2003. There's certainly time to get it right.

    Posted 1 year ago #
  18. nanome
    Member

    Testing bbpress on localhost (xampp, windows) and viewing with firefox I get the same error in the stylesheet link.

    <link rel="stylesheet" href="http://localhost/lee\bbpress/bb-templates/kakumei/style.css" type="text/css" />

    Created the plugin as Trent suggested but that didn't solve the problem. Played around with the code a bit and now it does work.

    Here is my hacked version.

    <?php
    
    function fix_bb_path_to_url( $url ) {
    	$url = str_replace(array('//', '\\\\', '\\'), array('/', '\\', '/'), $url);
    	return preg_replace( '|:/([^/])|', '://$1', $url );
    }
    
    add_filter( 'bb_path_to_url', 'fix_bb_path_to_url', 1, -1 );
    
    ?>

    Only difference is adding '\\' to the str_replace.

    Posted 1 year ago #
  19. Nanome, UBD Man! (or woman, whatever)

    That fix, as path-to-url.php in the my-plugins directory, did the trick immediately. Thanks for the hack.

    Posted 1 year ago #
  20. nanome
    Member

    Last time I checked (about a minute ago :) ) I was still a man.

    Glad it worked for you as well.

    Since I only downloaded BBpress today this hack comes with "use at own risk warning". Don't know what other effects it may have on other parts of the script. Saying that, it works ok for me so far.

    Posted 1 year ago #
  21. It does seem to be wreaking havoc with some of the other slashes and paths, particularly within the Admin panel.

    Posted 1 year ago #
  22. nanome
    Member

    Weird as I am not having any trouble in the admin area.

    Prehaps, the more experienced mods here will be able to help.

    What are you running on?

    Posted 1 year ago #
  23. I'm viewing all this on Firefox/Mac 10.4.9 (in other words, I'm not trying anything fancy here). When I first began having the reversed-slash issue in Firefox (and IE Windows), I still was at least able to navigate through my admin panel. Now it's giving me errors and redirects.

    Admittedly your fix might not be the cause of the current problem. I'll reinstall and see what happens. Your fix certainly was successful with the original problem. Thanks again.

    Posted 1 year ago #
  24. ISSUE NOW RESOLVED. I have reinstalled bbPress, this time using only a pure text editor (TextWrangler) and a different FTP client. Before I was using Dreamweaver as my interface, and you would think, after years of web work and experience with DW's thug-like behavior with relative paths, that I would have known better.

    By the way, upon reinstalling without using DW, I did not have the initial reverse-slash issue. In other words, I am not having to use the path-to-url plugin, with or without its subsequent tweak.

    By the way 2: I know this would be a "duh" comment for many, but just in case it helps someone avoid the problems I had: When running bb-admin/install.php, in the field where it calls for your web site, do not enter a trailing slash. I tend to add one out of habit, and I think that was the cause of some of my earlier problems.

    Posted 1 year ago #
  25. @nanome, nope.. still a no-go. I even tried it with BOTH "plugins" your's and trent's together. Then one at a time... no-go.. =/ =(

    spencerp

    Posted 1 year ago #
  26. Screw it, I just manually added in the straight URL path to the style.css file instead of worrying about it. It's working on my live version, so it's no biggie to just manually add the straight URL to the stylesheet for localhost... whee!

    <link rel="stylesheet" href="http://localhost/forum/bb-templates/kakumei/style.css" type="text/css" />

    I just hope they get this crap fixed soon though.. /Yes, I'm an impatient prick.. wheee! LmaoAOAOAO....

    spencerp

    Posted 1 year ago #
  27. Sorry to hear that Spencer. I guess you found a way to patch it for now. mdawaffe will be releasing a 'fix up' release pretty soon that hopefully will address most (if not all) issues people are having!!

    Thanks,

    Trent

    Posted 1 year ago #
  28. It's ok Trent. :) It's really not a big deal since it's for the localhost copy only. ;) It's just that it *would be* nice to have this fixed in general though, ya know.. ? :)

    Do you know if mdawaffe had applied a fix yet or not? I noticed a handful of files come through the SVN, just not sure if one contains a "fix" or whatever.. lol!

    spencerp

    Posted 1 year ago #
  29. I let him know about the problems people are having from this thread and he mentioned the 'localhost' thing and the 'other slash' problems should be fixed in the next release, but may be re-worked. I haven't tested the localhost install yet, but I think the 'slash for stylesheet' thing is fixed.

    Trent

    Posted 1 year ago #
  30. Oh okay. However, I just SVN-ed my localhost copy, and she's still not working like supposed too. So, I just manually re-added the straight URL to the stylesheet for now.. ;) :)

    So evidently it hasn't been fixed yet sigh.. Hmm..

    spencerp

    Posted 1 year ago #

RSS feed for this topic

Reply »

You must log in to post.

Code is Poetry.