Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,526 through 28,550 (of 32,499 total)
  • Author
    Search Results
  • #61886
    livibetter
    Member

    The generated result, when you navigate to /wrdp2/bbp1/rss/.

    The thing starts with <?xml

    #62076

    In reply to: Installation woes

    livibetter
    Member

    Well I updated WP…

    You probably need to ask in WordPress Support.

    Here is a document: https://codex.wordpress.org/Upgrading_WordPress_Extended#Detailed_Upgrade_Instructions_for_1.5.x.2C_2.0.x.2C_2.1.x.2C_or_2.2.x_to_2.3.1

    #61882
    livibetter
    Member

    What is that line of generated RSS? <link></link>? (posting completely to pastebin would be better to find out)

    Have you set $bb->uri in your config file?

    What browser are you using?

    #62079

    In reply to: Posts lost :(

    r4zv4n
    Member

    Unfortunately, not only they aren’t in the DB, but I don’t have a usable backup either (the last full backup I have is from about two weeks ago and the daily backup has the same thing as.. what i see).

    Another weird thing is that some days ago, in my Akismet spam list I found some posts from way back (that weren’t spam, but.. why check them if they were already “accepted” ?).

    So I suspect that something might have triggered a full check and it automagically deleted what it considered spam or something..

    So, I lost about a month and some of posts :(

    #61933

    In reply to: Excerpts

    fel64
    Member

    livibetter, if you can separate the logic code from the presentation it’d be even better. You can always put a hook into the template and put the code into a plugin, or use the query filter to find when the topics are being looked for.

    #62057
    livibetter
    Member

    !defined('DB_NAME') is redundant, since you should be only one can code on your files.

    I will use

    if ( !strpos($_SERVER["PHP_SELF"], 'bb-admin') )
    require_once('../wp-blog-header.php');

    Anyway, you did a great job!

    PS. could you show us your forums?

    #62056
    ixray2
    Member

    Here is a quick workaround I just figured out, but I’m not sure this is state of the art:

    Instead of

    require_once(dirname(__FILE__) . '/../wp-blog-header.php');

    in config.php, I put

    `if ( !defined(‘DB_NAME’) && !strstr($_SERVER[“PHP_SELF”],’bb-admin’) )

    require_once(dirname(__FILE__) . ‘/../wp-blog-header.php’); `

    #60927

    There is still a set of problems with this. The value of $this->$dbhname isn’t checked before it’s used in mysql_get_server_info() on line 75 in db-mysqli.php. If the connection fails, the error won’t be echoed to the user because the use of @ on the mysql_connect() call and then the script just continues, assuming the connection went fine, which in my case, it din’t. Also, the call should be to mysql<b>i</b>_connect() and not mysql_connect(), as far as I can understand.

    The patch doesn’t fix these problems and they need to be fixed for bbPress to work on my host. I’d write these comments on the associated ticket, but there doesn’t seem to be any way to register or comment anonymously there.

    #60854

    I have the same problem and overwriting db-mysqli.php with db.php didn’t help. Just for completeness, here’s the error messages I encounter:

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/<snip>/bbpress/bb-includes/db-mysqli.php on line 73

    I suspect bbPress of having hard coded a connection to localhost and thus configuring define('BBDB_HOST', '...') to be something else than localhost doesn’t really matter. I don’t have MySQL and Apache installed on the same physical server, so I have to access MySQL through a hostname and thus localhost won’t work.

    #2712

    Topic: Posts lost :(

    in forum Troubleshooting
    r4zv4n
    Member

    This morning when I logged in, I noticed a big chunk of the posts on my forum were gone. I still have posts from the beginning and some recent ones, but a large batch of posts from the middle was lost :(

    Any ideas on why or how I could get them back ?

    #62071

    In reply to: Installation woes

    chrishajer
    Participant

    You really, really, really need to upgrade your WordPress:

    <meta name="generator" content="WordPress 1.5.1.2" />

    Until then, I think it would be silly to try and fix any errors in your install.

    Current WordPress version is 2.3.1: 1.5.1.2 was released 2.5 years ago and has security issues as well as limited functionality.

    http://blog.taragana.com/index.php/archive/serious-security-vulnerabilities-of-wordpress-1512-and-below/

    #61878
    livibetter
    Member

    Here is a temporary solution:

    rss.php: http://llbb.pastebin.com/f5c1a8a37

    rss2.php of template: http://llbb.pastebin.com/f24cd6fd3

    If you need the last post content of each topic, please find a recent topic Excerpt and combine this with it.

    Edit: Oops… just find out you are also the starter of that topic.

    #62031
    chrishajer
    Participant

    It’s working for me. I clicked on some forum names and was brought to a page that listed that forum name. There were no topics though so it said “you must be logged in to post.” So, I created an account and I can look around and everything looks normal.

    If any link that had ‘forum’ in it redirected to the main blog, my guess is you had a permalink issue. I would set your mod_rewrite line to false for the time being (which you may have done already to get it working, since it seems to be fine right now.)

    $bb->mod_rewrite = false;

    #62069

    In reply to: Installation woes

    chrishajer
    Participant

    Why is your bbPress calling a WordPress function?

    wp-includes/functions.php

    Is there more to your setup than it appears?

    Actually, I just went to your forum and it is working?

    #61875
    Doobus
    Member

    After all my slicing and dicing with bbPress, I’m finally coming close to completing everything, except one thing. This RSS thing is really killing me :P. I’m wracking my brain trying to explain this the best way possible.

    So here I go. Each forum has a feed, how do I only show the topics in the feed? As it stands right now, the feed is showing the replies as well, I just want topics to show.

    Sorry for sounding redundant, but I’m desperate >_< to complete. Thanks in advance.

    #62054
    livibetter
    Member

    The workaround won’t work for plugins.

    @sambauers: I think there is no complete working solution if you don’t touch the core files.

    First, load_default_textdomain and load_plugin_textdomain are WordPress version, they only look language files in WordPress directories. So, in bbPress, all text won’t be translated since language file are not loaded because WordPress load_*_textdomain won’t find language files in bbPress’ directories.

    Second, WordPress and bbPress both use default as textdomain when calling __() or _e() without assigning textdomain, that means we can only use either WordPress’ or bbPress’ language files at the same time, not both.

    (edit: plugin’s problem can be solved by add a bb_load_plugin_textdomain, but bbPress’s part. If we don’t want to use something like bb__(), bb_e(), maybe we can try to merge bbPress translations into WordPress’ in runtime? or search bbPress’ first, then WordPress’ if can’t find)

    #62052
    livibetter
    Member

    Sorry, didn’t read bbPress source carefully. Replace first if clause with

    if ( defined('BBLANG') && '' != constant('BBLANG') ) {
    if ( function_exists('load_default_textdomain') ) {
    global $l10n;

    $locale = BBLANG;
    $mofile = BBPATH . BBINC . 'languages/' . "$locale.mo";
    if ( is_readable($mofile) ) {
    $input = new CachedFileReader($mofile);
    $l10n['default'] = new gettext_reader($input);
    }
    }
    else {
    include_once(BBPATH . BBINC . 'streams.php');
    include_once(BBPATH . BBINC . 'gettext.php');
    }
    }

    PS. That “..” is how you put variable to be parsed in string in PHP ( Variable parsing )

    #62048
    ixray2
    Member

    tried out your workaround, does not seem to work (doesn’t load language file).

    also, shouldn’t it be $mofile = BBLANGDIR . $locale . ".mo";?

    but even with that fixed, it doesn’t work.

    but still, thanks a lot!!

    #62047
    livibetter
    Member

    Seems you will use a lot of stuff from WordPress. If your WordPress template is already written in German, then you should have no problems. If not or some functions use gettext functions, then you will see many text in original language.

    #62045
    livibetter
    Member

    This is a quick workaround:

    if ( defined('BBLANG') && '' != constant('BBLANG') ) {
    if ( function_exists('load_default_textdomain') ) :
    global $l10n;

    $locale = BBLANG;
    $mofile = BBLANGDIR . "$locale.mo";

    load_textdomain('default', $mofile);
    else:
    include_once(BBPATH . BBINC . 'streams.php');
    include_once(BBPATH . BBINC . 'gettext.php');
    endif;
    }
    if ( !( defined('DB_NAME') || defined('WP_BB') && WP_BB ) ) { // Don't include these when WP is running.
    require( BBPATH . BBINC . 'kses.php');
    if ( !function_exists('load_default_textdomain') )
    require( BBPATH . BBINC . 'l10n.php');
    }

    It should drops WordPress’ language file, and replaces with bbPress’. That means translations need to be done in WordPress won’t be translated since this code drops language file. This wont happen when you read your blog. However, I don’t have any language files, so this is coded by guessing.

    This is not a solution, just a temporary fix. I will file a ticket.

    #62042
    livibetter
    Member

    Reproduced.

    I didn’t use any language files. But after I put a language code in bb-config.php (for r988) and wp-config.php, I got a blank page.

    Don’t know if I can fix this.

    #62040
    livibetter
    Member

    Then, you should trace in bbPress’ code to find out where causes an exit.

    BTW, you can also test error_log(get_option('blogname')); to make sure WordPress loaded database correctly.

    PS. debugging with no debugger is a crazy thing. You have to guess by experiences for best shot.

    #62038
    livibetter
    Member

    I don’t have any clues to solve you problem.

    If I were you, I will

    1. put error_log('WordPress loaded'); after that request_once to make sure wp has been loaded.

    2. check error log for WordPress loaded, if I get that, that means the problem should be on bbPress, or on WordPress.

    3. keep using error_log, find out where causes a program end.

    This is my no-debugger-debugging method.

    #62035
    livibetter
    Member

    Well, I didn’t mean that kind of error message. If your hosting provider gives you cpanel, there should be a “Error Logs”

    And put that line top of original config.php is correct, but to bottom isn’t.

    Maybe you can try to use relative path? (I don’t think this will help…)

    What are the versions of WordPress and bbPress which you are using?

    Still need the error log.

    #62026
    chrishajer
    Participant

    It will support a host name, but are you trying to use a port or a socket? I use MySQL servers on different hosts all the time, but they are always on the default port of 3306.

    Can you post the BBDB_HOST line from your config.php?

    Also, you didn’t post the actual warnings: what were those?

Viewing 25 results - 28,526 through 28,550 (of 32,499 total)
Skip to toolbar