WebDev WaxLotus LLC (@musnake)

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 51 total)
  • Sorry. I didn’t want to hijack the guy’s thread… I’ll keep it focused from now. Thanks.

    Hey Chris,

    Apache version	1.3.41 (Unix)
    PHP version 5.2.5
    MySQL version 5.0.51a-community
    Architecture i686
    Operating system Linux

    I came across the other stuff while searching…

    (and figured, heck, I’m hungry, I think I’ll put that in my mouth…)

    Hey kannued,

    When I edit the forum in the Admin back-end, I used to see the [H] [H] Forum Name so I would delete both of the [H]’s and let the plugin put one back.

    If you take a look at the link to my issue (a few posts up), you’ll see that I stopped using H’s altogether…

    Hey Chrissy,

    If you have six fora (veg, carrot, beets, corn, dog, pets), you set veg and pets as categories. Then you make the dog forum a child of the category forum pet and the rest as children of veg.

    When you display your forum list (e.g. on the frontpage), you’ll see the category fora as ‘headings’ for their children… One doesn’t usually get to post in the category fora. They’re, well, like headings.

    Um, hold on. I can’t seem to replicate this… strange.

    Works for me.

    bbPress 1.0a2 and plugin v.0.0.4*

    Didn’t bother me before (just deleted double H’s) but this is progress!

    Um, _ck_, while you’re looking at that file…peek at another minor thing ;)

    Theme Name: Kakumei Blue Version: 0.01 theta-beta

    Well, a modified copy of it anyway.

    The current incarnation of this is with the Enhanced Tag Heat Map 1.0.2

    If I try to update changes made to the settings I get The Green Box.

    With the change to the PHP error level, I get the following notices displayed at the top of the screen:

    Notice: Undefined index: plugin in /home/musnake/public_html/forum/my-plugins/enhanced-tag-heat-map/enhanced-tag-heat-map.php on line 485

    Notice: Undefined index: host in /home/musnake/public_html/forum/bb-includes/backpress/functions.wp-cron.php on line blah

    Notice: Undefined index: action in /home/musnake/public_html/forum/my-plugins/enhanced-tag-heat-map/enhanced-tag-heat-map.php on line 586

    Notice: Undefined index: action in /home/musnake/public_html/forum/my-plugins/enhanced-tag-heat-map/enhanced-tag-heat-map.php on line 618

    I was looking to debug why I get The Green Box.

    Thanks.

    Ok, I’m getting something printed to the screen.

    The main one (because it’s related to a core file):

    Notice: Undefined index: host in /home/musnake/public_html/forum/bb-includes/backpress/functions.wp-cron.php on line 189

    which is the last line of the following block:

    function wp_cron() {
    // Prevent infinite loops caused by cron page requesting itself
    $request_uri = parse_url($_SERVER['REQUEST_URI']);
    $cron_uri = parse_url(BP_Options::get('cron_uri'));

    if ( $request_uri['host'] == $cron_uri['host'] && $request_uri['path'] == $cron_uri['path'] )

    The rabbit hole leads to bb-includesclass.bp-options.php around line 14:

    function get($option) {
    switch ($option) {
    case 'cron_uri':
    return bb_get_uri('bb-cron.php', array('check' => BP_Options::get('cron_check')), BB_URI_CONTEXT_WP_HTTP_REQUEST);

    Is this ice-cream?:

    if(!isset($_SERVER['REQUEST_URI'])) {
    $_SERVER['REQUEST_URI'] = substr($_SERVER['argv'][0], strpos($_SERVER['argv'][0], ';') + 1);
    }

    $request_uri = parse_url($_SERVER['REQUEST_URI']);

    I guess $request_uri['host'] isn’t set as the notice goes away if wrap a simple if isset around the next block. That snippet doesn’t work for me BTW. I thought $_SERVER['REQUEST_URI'] was the URI used to call up that page. How is it missing? It is just a notice. I should go back to the plugin issues (Undefined index: plugin and Undefined action: )

    In bb-settings.php I changed the line that excluded some PHP errors (error_reporting(E_ALL ^ E_NOTICE);) to error_reporting(E_ALL); hoping to see something in /myforumdir/error_log

    I’ll keep looking for the switch.

    bbSync, aye.

    Thanks man. I’ve been so wrapped up in configuring the base install I haven’t dreamed of integration just yet. This plugin smells like Santa. Thanks again.

    Minor gotcha’? The bbPress blog must have XML-RPC enabled in it's settings I was going to install this to take a peek but I see someone suggested that their site hung. I’m on this ice with my host (WPMu :D )and can’t risk it just now…

    I remember that there was much drama trying to authenticate with Flikr API via XML-RPC… It required a .htaccess file at the domain root with: `<Files xmlrpc.php>

    SecFilterInheritance Off

    <Files>`

    Of course, the ‘Use XML’-thingy setting in the WP Admin/settings needs to be enabled too…

    Fingers crossed…

    I must say that I’m afraid of my shadow when it comes to turning off security filters to get something to work, especially since there was a recent thread on these forums about deleting that file altogether!

    Yeah, I like that. I guess a template option for show/supress child fora would be better. Then you could use that db option…

    I’m still choosing templates but will work on it.

    This is what I had based on _ck_’s snippets:

    The theme’s front-page.php just after the forum list titles:

    </tr>
    <?php $forum_id = 0; //musnake: supress child fora: https://bbpress.org/forums/topic/hiding-subforums-subforums-from-subforum-pages#post-20150 ?>
    <?php $forum_parent=$forum_id; //musnake ?>
    <?php while ( bb_forum() ) : ?>
    <?php if ($GLOBALS['forum']->forum_parent==$forum_parent) { //musnake ?>

    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class=num><?php echo $GLOBALS['forum']->views; ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php } //musnake ?>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>

    That theme didn’t have the breadcrumbs I wanted, so after much searching (including PHPXref!) I found this: which gets put in your theme’s forum.php:

    <h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a> <?php bb_forum_bread_crumb(); ?></h3>

    Hope that helps. Thanks All.

    Oh, just to be clear, the //musnake are to point out where the changes are, not to claim any credit!

    True d’at. Although I think this may be what _ck_ was working on… I see the global declaration in there… I’ll try it…

    Nope. All fora disappear. I’ll look into where this $forum_id comes from…I’m learning.

    Huh. Setting $forum_parent=0; (or $forum_id = 0;) seems to do what I want. Hardcoding. Yuck.

    If so, it kicks the chocks away from a huge cart-O-wpmu that I’ve had sulking on the backburner since 1.6…

    @keymi: Chinese? I tried Kanji too…

    @IPstenu: Yes, I had to apply the fix to get WP to work, that’s what tinkled the bell… Thanks for looking at it. I’ll throttle permissions down though… Do you use the the support forum mod? seeing as we’re both on the same patch level…

    Ok,

    I added the following:

    <IfModule mod_security.c>
    <Files admin-ajax.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    to this file:

    mydomain.org/forum/bb-admin/.htaccess

    This fixed the issues. I can add fora with the sexy yellow flash and all.

    Security people, does this tear a hole in the universe?

    Please advise!

    Absolutely no response. Not even a twitch…which does smell like an ajax problem. Hence, the .htaccess fix for the e.g. from WP where my ajax won’t work unless it’s exempt from that apache mod.

    Do you know which file and what permission would be involved?

    Thanks.

    G’Night!

    Elements
    Index Id Name Type Value Label Size Maximum Length State
    0 fieldset
    1 forum-name forum_name text Forum Name:
    2 forum-desc forum_desc text Forum Description:
    3 forum-parent forum_parent select
    4 forum-is-category forum_is_category checkbox 1 Forum is Category:
    5 order-nonce hidden c2ee0a0be6
    6 _wp_http_referer hidden /forum/bb-admin/content-forums.php
    7 _wpnonce hidden d5944257a4
    8 _wp_http_referer hidden /forum/bb-admin/content-forums.php
    9 action hidden add
    10 Submit submit Add Forum ยป

    I’ll download and push the filebase again, just for laughs…

    haha, sigh. It helps if I push the right version! Ok, it’s still 1.0 alpha 2 and it’s still refusing to add the forum. The CSS is ‘messed up’ for the form but that shouldn’t stop it, right? Naaah.

    Oh look, another straw…

    Just to be clear, guys: I’m working on a WP2.6.2 site, not the WPMu version…

    @eagano: I hear you man. I did as you suggested and I made sure /wp-admin/options.php matched as well.

    I’m using FF3 and the error console shows only warnings generated by the theme’s CSS (doesn’t like the asterisk in declarations: Kakumei 0.01 theta-beta by Bryan Veloso)

    I’m not using Google Gears to cache anything.

    @Ipstenu: I linked to the cookiefix in the first post. Now that you both pointed out that it’s a WPMu-specific fix I have removed it from the WP code. Did you mean a link to the test site?

    I appreciate you looking into this.

    Is there some sort of trace I can place on the submit button? A setting I can toggle to make it/something verbose?

    Cheers.

    Yes, I was referring to the WP single user version, not the WPMu flavor. Thanks for clarifying this!

    http://myurl.com/forum/bb-admin/content-forums.php

    Nope, this project is WP not WPMu

    Ok, I just reinstalled using seperate db’s this time (+WP integration). The installation process is very, very smooth with good feedback at every stage.

    Again, I believe the install was successful.

    Cache cleared etc. but numb ‘Add Forum’ button issue persists.

    I am using the same filebase (with no PHP errors in logs) though.

    The only blank spot I have in the install is:

    >>>>>> WordPress "secure auth" cookie salt not set. which appears to be an acceptable state based on the doc’s.

    The 6 session cookies are all suffixed with COOKIEHASH.

    I am unable to create new fora as keymaster or Admin.

    Can I provide any useful data?

    Hey eagno,

    In WP2.6.2 wp-settings.php line 297…

    Doesn’t this block of code get executed whenever one is not installing, i.e. usually. Isn’t COOKIEHASH usually generated?

    if ( ! defined('WP_INSTALLING') ) {
    // Used to guarantee unique hash cookies
    $cookiehash = md5(get_option('siteurl'));
    /**
    * Used to guarantee unique hash cookies
    * @since 1.5
    */
    define('COOKIEHASH', $cookiehash);
    }

    Caught wearing my underwear on the outside. It doesn’t make me immune to cosmic cookie rays?

    This was a cherry install so I didn’t have any experience with bbPress and its issues etc. The ‘add forum’ button issue existed before I added the quick fix…I found it on my first pass through the support forums trying to see how other WP2.6 success stories started out…

    Did I mention that I have the bbPress files located in a subdomain called ‘forum’ i.e. mydomain.org/forum/ ?

    I’ve just gone through the phpbbb vs SMF review again, just so I can get something going while these small things get cooked off, but I think I’ll stry bbPress as a stand-alone in its own db and integrate later…Do you see any drama with that path?

    I just noticed that I didn’t add the SECRET_KEY value from wp-config.php (sic) to wp-settings.php as per a comment in that file…but it turns out that’s an artifact. Strike that.

    These are some of the cookies that FireBug reports:

    wordpress_logged_in_f004625b18565e7c579076261d01b3a5
    myDomain.org 105 B /forum/ Session

    wordpress_f004625b18565e7c579076261d01b3a5
    myDomain.org 95 B /wp-content/plugins Session

    wordpress_f004625b18565e7c579076261d01b3a5
    myDomain.org 95 B /wp-admin Session

    wordpress_f004625b18565e7c579076261d01b3a5
    myDomain.org 95 B /forum/my-plugins Session

    wordpress_f004625b18565e7c579076261d01b3a5
    myDomain.org 95 B /forum/bb-plugins Session

    wordpress_f004625b18565e7c579076261d01b3a5
    myDomain.org 95 B /forum/bb-admin Session

    wordpress_test_cookie
    myDomain.org 36 B / Session

    I’m checking…

    So, no related trac issue has been logged (I was hoping that this was a known issue not some random thing on my side!) and I didn’t come across anything in these forums.

    I checked the db via PHPMyAdmin to see if there had been any activity, nada.

    I’ll go back to the WP fora and check what version numbers folks are using…

Viewing 25 replies - 26 through 50 (of 51 total)