Skip to:

CSS pathing incorrect

  • stwc


    Hey, just testing this out, and it looks like the pathing to the CSS file is messed up. On my install, it’s writing

    buddypress-docs/includes/cssbp-docs.css?ver=3.1.2' type='text/css' media='all'

    into the head. No slash between css and bp-docs.css.

    Looks like it doesn’t know what DIRECTORY_SEPARATOR is on line 651 of integration-bp.php

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

  • Boone Gorges


    Hm. Weird, I thought that PHP had to have this constant defined.

    As a test, would you mind putting the following line into your bp-custom.php or wp-config.php file?

    if ( !defined( 'DIRECTORY_SEPARATOR' ) )
    define( 'DIRECTORY_SEPARATOR', '/' );

    If that works, I can add it to the plugin itself.

    Hugo Ashmore


    It is a constant, but is it not somewhat redundant? All sane environments that matter use forward slash ‘/’ windows uses ” because it’s hugely perverse but in reality it will translate one to tother

    Boone Gorges


    Yeah, I did some more research. The DIRECTORY_SEPARATOR constant really only needs to be used when parsing a local path that is given to you by the system (such as dirname()), but not when defining includes.

    I’ll refactor in the next version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS pathing incorrect’ is closed to new replies.
Skip to toolbar