Forum Replies Created
-
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
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
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.
thank you! Now I can post – that was driving me a little nuts 🙂