Skip to:
Content
Pages
Categories
Search
Top
Bottom

upgrading to 1.5 prior to 1.6 (with a hail mary :-)


  • mischiefwizard
    Participant

    @mischiefwizard

    Hi guys,
    I just upgraded WP to latest version, and then after a long search found the CP 1.5 files and overwrote my 1.2.8 installation. Now to get it all working with my custom child theme 🙂 Would love some help.

    I’m trying to implement the article at http://codex.buddypress.org/developer/releases/developer-and-designer-information/, and

    1) it says:

    >>>>>>You’ll also need to modify the following file in your WP theme:

    /wp-content/themes/YOUR-THEME/members/single/home.php
    Open up /members/single/home.php in your editor and add:

    <<<<<<<<<<>>>>>>In your functions.php declare the function like this:

    ?
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    function bp_dtheme_enqueue_styles() {
    // Bump this when changes are made to bust cache
    $version = ‘20110804’;

    // Default CSS
    wp_enqueue_style( ‘bp-default-main’, get_template_directory_uri() . ‘/_inc/css/default.css’, array(), $version );

    // Right to left CSS
    if ( is_rtl() )
    wp_enqueue_style( ‘bp-default-main-rtl’, get_template_directory_uri() . ‘/_inc/css/default-rtl.css’, array( ‘bp-default-main’ ), $version );
    }
    add_action( ‘wp_enqueue_scripts’, ‘bp_dtheme_enqueue_styles’ );
    <<<<<<

    But then I get a "Call to undefined function add_action() " error

    3) How do I ensure it will enqueue the .css file in my child theme directory?

    4) Do I need to find the developer notes for upgrading to buddy press 1.4 and 1.5 as well and make other changes to my child theme? Where would I find these? The above link just talks about BP 1.5 and 1.5.2

    5) I get undefined function error from my child them header calling

    a) "bp_dtheme_page_on_front()" function.:

    b) Call to undefined function bp_is_page()

    <li

    It seems these functions aren’t deprecated, so how can i ensure they get loaded properly?

    Thanks in advance 🙂

    David

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

  • mischiefwizard
    Participant

    @mischiefwizard

    I tried to delete this and repost it under “How to – when up and running”, but the Edit button says ‘down for maintenance’, and the reposting went into the same category. At least the reposted version is more readable, don’t know what happened to the above – seems it’s hacked up a bit.


    mischiefwizard
    Participant

    @mischiefwizard

    and now it seems the REPOST has disappeared, so here’s a better version:

    Hi guys,
    I just upgraded WP to latest version, and then after a long search found the CP 1.5 files and overwrote my 1.2.8 installation. Now to get it all working with my custom child theme Would love some help.

    I’m trying to implement the article at https://codex.buddypress.org/developer/releases/developer-and-designer-information/, and

    1) it says:

    >>>>>>
    You’ll also need to modify the following file in your WP theme:

    /wp-content/themes/YOUR-THEME/members/single/home.php
    Open up /members/single/home.php in your editor and add:

    <<<<<<<>>>>>In your functions.php declare the function like this:

    function bp_dtheme_enqueue_styles() {
    // Bump this when changes are made to bust cache
    $version = ’20110804′;

    // Default CSS
    wp_enqueue_style( ‘bp-default-main’, get_template_directory_uri() . ‘/_inc/css/default.css’, array(), $version );

    // Right to left CSS
    if ( is_rtl() )
    wp_enqueue_style( ‘bp-default-main-rtl’, get_template_directory_uri() . ‘/_inc/css/default-rtl.css’, array( ‘bp-default-main’ ), $version );
    }
    add_action( ‘wp_enqueue_scripts’, ‘bp_dtheme_enqueue_styles’ );
    <<<<<<

    But then I get a "Call to undefined function add_action() " error

    3) How do I ensure it will enqueue the .css file in my child theme directory?

    4) Do I need to find the developer notes for upgrading to buddy press 1.4 and 1.5 as well and make other changes to my child theme? Where would I find these? The above link just talks about BP 1.5 and 1.5.2

    5) I get undefined function error from my child them header calling

    a) "bp_dtheme_page_on_front()" function.:

    b) Call to undefined function bp_is_page()

    It seems these functions aren’t deprecated, so how can i ensure they get loaded properly?

    Thanks in advance

    David


    mischiefwizard
    Participant

    @mischiefwizard

    I just wrote a custom.php file to include the functions that somehow weren’t loaded, and now a new fatal error:

    Fatal error: Cannot unset string offsets in /var/www/vhosts/gpu.getpaidforwhoyouare.com/httpdocs/wp-includes/theme.php on line 1359

    From these offending lines:
       $jit = isset( $args[0][‘__jit’] );
               unset( $args[0][‘__jit’] );

    ideas?

    I feel like it’s progress 🙂

    David


    modemlooper
    Moderator

    @modemlooper

    Brave! I would have just created a new child theme or got a new BP theme and call it a redesign. 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘upgrading to 1.5 prior to 1.6 (with a hail mary :-)’ is closed to new replies.
Skip to toolbar