Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

errore en buddypress

Estas en el tema de errore en buddypress en el foro de Sistemas de gestión de contenidos en Foros del Web. hola señores , ando indagando en el tema de buddypress y me pasa algo curioso , cuando esta el tema por defecto funciona bien, cuando ...
  #1 (permalink)  
Antiguo 28/09/2011, 15:04
 
Fecha de Ingreso: diciembre-2010
Ubicación: tenerife
Mensajes: 60
Antigüedad: 13 años, 4 meses
Puntos: 0
errore en buddypress

hola señores , ando indagando en el tema de buddypress y me pasa algo curioso , cuando esta el tema por defecto funciona bien, cuando le cambio y le pongo otro tema
que es mas parecido al facebook me da error y no puedo acceder al menu para cambiarlo, el error que me da es este

Fatal error: Call to undefined function bp_forums_is_installed_correctly() in /home/a1054820/public_html/wp-content/plugins/buddypress/bp-forums/bp-forums-loader.php on line 102

no se si el archivo que hay que modificar es el bp-forums-loader.php pongo aqui el codigo , ya que no se donde esta el error

Código PHP:
Ver original
  1. <?php
  2. /**
  3.  * BuddyPress Forums Loader
  4.  *
  5.  * A discussion forums component. Comes bundled with bbPress stand-alone.
  6.  *
  7.  * @package BuddyPress
  8.  * @subpackage Forums Core
  9.  */
  10.  
  11. // Exit if accessed directly
  12. if ( !defined( 'ABSPATH' ) ) exit;
  13.  
  14. class BP_Forums_Component extends BP_Component {
  15.  
  16.     /**
  17.      * Start the forums component creation process
  18.      *
  19.      * @since 1.5
  20.      */
  21.     function __construct() {
  22.         parent::start(
  23.             'forums',
  24.             __( 'Discussion Forums', 'buddypress' ),
  25.             BP_PLUGIN_DIR
  26.         );
  27.     }
  28.  
  29.     /**
  30.      * Setup globals
  31.      *
  32.      * The BP_FORUMS_SLUG constant is deprecated, and only used here for
  33.      * backwards compatibility.
  34.      *
  35.      * @since 1.5
  36.      * @global obj $bp
  37.      */
  38.     function setup_globals() {
  39.         global $bp;
  40.  
  41.         // Define the parent forum ID
  42.         if ( !defined( 'BP_FORUMS_PARENT_FORUM_ID' ) )
  43.             define( 'BP_FORUMS_PARENT_FORUM_ID', 1 );
  44.  
  45.         // Define a slug, if necessary
  46.         if ( !defined( 'BP_FORUMS_SLUG' ) )
  47.             define( 'BP_FORUMS_SLUG', $this->id );
  48.  
  49.         // The location of the bbPress stand-alone config file
  50.         if ( isset( $bp->site_options['bb-config-location'] ) )
  51.             $this->bbconfig = $bp->site_options['bb-config-location'];
  52.  
  53.         // All globals for messaging component.
  54.         // Note that global_tables is included in this array.
  55.         $globals = array(
  56.             'path'                  => BP_PLUGIN_DIR,
  57.             'slug'                  => BP_FORUMS_SLUG,
  58.             'root_slug'             => isset( $bp->pages->forums->slug ) ? $bp->pages->forums->slug : BP_FORUMS_SLUG,
  59.             'has_directory'         => true,
  60.             'notification_callback' => 'messages_format_notifications',
  61.             'search_string'         => __( 'Search Forums...', 'buddypress' ),
  62.         );
  63.  
  64.         parent::setup_globals( $globals );
  65.     }
  66.  
  67.     /**
  68.      * Include files
  69.      */
  70.     function includes() {
  71.  
  72.         // Files to include
  73.         $includes = array(
  74.             'actions',
  75.             'screens',
  76.             'classes',
  77.             'filters',
  78.             'template',
  79.             'functions',
  80.         );
  81.  
  82.         // Admin area
  83.         if ( is_admin() )
  84.             $includes[] = 'admin';
  85.  
  86.         // bbPress stand-alone
  87.         if ( !defined( 'BB_PATH' ) )
  88.             $includes[] = 'bbpress-sa';
  89.  
  90.         parent::includes( $includes );
  91.     }
  92.  
  93.     /**
  94.      * Setup BuddyBar navigation
  95.      *
  96.      * @global obj $bp
  97.      */
  98.     function setup_nav() {
  99.         global $bp;
  100.  
  101.         // Stop if forums haven't been set up yet
  102.         if ( !bp_forums_is_installed_correctly() )
  103.             return;
  104.  
  105.         // Stop if there is no user displayed or logged in
  106.         if ( !is_user_logged_in() && !isset( $bp->displayed_user->id ) )
  107.             return;
  108.  
  109.         // Add 'Forums' to the main navigation
  110.         $main_nav = array(
  111.             'name'                => __( 'Forums', 'buddypress' ),
  112.             'slug'                => $this->slug,
  113.             'position'            => 80,
  114.             'screen_function'     => 'bp_member_forums_screen_topics',
  115.             'default_subnav_slug' => 'topics',
  116.             'item_css_id'         => $this->id
  117.         );
  118.  
  119.         // Determine user to use
  120.         if ( isset( $bp->displayed_user->domain ) ) {
  121.             $user_domain = $bp->displayed_user->domain;
  122.             $user_login  = $bp->displayed_user->userdata->user_login;
  123.         } elseif ( isset( $bp->loggedin_user->domain ) ) {
  124.             $user_domain = $bp->loggedin_user->domain;
  125.             $user_login  = $bp->loggedin_user->userdata->user_login;
  126.         } else {
  127.             return;
  128.         }
  129.  
  130.         // User link
  131.         $forums_link = trailingslashit( $user_domain . $this->slug );
  132.  
  133.         // Additional menu if friends is active
  134.         $sub_nav[] = array(
  135.             'name'            => __( 'Topics Started', 'buddypress' ),
  136.             'slug'            => 'topics',
  137.             'parent_url'      => $forums_link,
  138.             'parent_slug'     => $this->slug,
  139.             'screen_function' => 'bp_member_forums_screen_topics',
  140.             'position'        => 20,
  141.             'item_css_id'     => 'topics'
  142.         );
  143.  
  144.         // Additional menu if friends is active
  145.         $sub_nav[] = array(
  146.             'name'            => __( 'Replied To', 'buddypress' ),
  147.             'slug'            => 'replies',
  148.             'parent_url'      => $forums_link,
  149.             'parent_slug'     => $this->slug,
  150.             'screen_function' => 'bp_member_forums_screen_replies',
  151.             'position'        => 40,
  152.             'item_css_id'     => 'replies'
  153.         );
  154.  
  155.         // Favorite forums items. Disabled until future release.
  156.         /*
  157.         $sub_nav[] = array(
  158.             'name'            => __( 'Favorites', 'buddypress' ),
  159.             'slug'            => 'favorites',
  160.             'parent_url'      => $forums_link,
  161.             'parent_slug'     => $this->slug,
  162.             'screen_function' => 'bp_member_forums_screen_favorites',
  163.             'position'        => 60,
  164.             'item_css_id'     => 'favorites'
  165.         );
  166.         */
  167.  
  168.         parent::setup_nav( $main_nav, $sub_nav );
  169.     }
  170.  
  171.     /**
  172.      * Set up the admin bar
  173.      *
  174.      * @global obj $bp
  175.      */
  176.     function setup_admin_bar() {
  177.         global $bp;
  178.  
  179.         // Prevent debug notices
  180.         $wp_admin_nav = array();
  181.  
  182.         // Menus for logged in user
  183.         if ( is_user_logged_in() ) {
  184.  
  185.             // Setup the logged in user variables
  186.             $user_domain = $bp->loggedin_user->domain;
  187.             $user_login  = $bp->loggedin_user->userdata->user_login;
  188.             $forums_link = trailingslashit( $user_domain . $this->slug );
  189.  
  190.             // Add the "My Account" sub menus
  191.             $wp_admin_nav[] = array(
  192.                 'parent' => $bp->my_account_menu_id,
  193.                 'id'     => 'my-account-' . $this->id,
  194.                 'title'  => __( 'Forums', 'buddypress' ),
  195.                 'href'   => trailingslashit( $forums_link )
  196.             );
  197.  
  198.             // Topics
  199.             $wp_admin_nav[] = array(
  200.                 'parent' => 'my-account-' . $this->id,
  201.                 'title'  => __( 'Topics Started', 'buddypress' ),
  202.                 'href'   => trailingslashit( $forums_link . 'topics' )
  203.             );
  204.  
  205.             // Replies
  206.             $wp_admin_nav[] = array(
  207.                 'parent' => 'my-account-' . $this->id,
  208.                 'title'  => __( 'Replies', 'buddypress' ),
  209.                 'href'   => trailingslashit( $forums_link . 'replies' )
  210.             );
  211.  
  212.             // Favorites
  213.             $wp_admin_nav[] = array(
  214.                 'parent' => 'my-account-' . $this->id,
  215.                 'title'  => __( 'Favorite Topics', 'buddypress' ),
  216.                 'href'   => trailingslashit( $forums_link . 'favorites' )
  217.             );
  218.         }
  219.  
  220.         parent::setup_admin_bar( $wp_admin_nav );
  221.     }
  222.  
  223.     /**
  224.      * Sets up the title for pages and <title>
  225.      *
  226.      * @global obj $bp
  227.      */
  228.     function setup_title() {
  229.         global $bp;
  230.  
  231.         // Adjust title based on view
  232.         if ( bp_is_forums_component() ) {
  233.             if ( bp_is_my_profile() ) {
  234.                 $bp->bp_options_title = __( 'Forums', 'buddypress' );
  235.             } else {
  236.                 $bp->bp_options_avatar = bp_core_fetch_avatar( array(
  237.                     'item_id' => $bp->displayed_user->id,
  238.                     'type'    => 'thumb'
  239.                 ) );
  240.                 $bp->bp_options_title  = $bp->displayed_user->fullname;
  241.             }
  242.         }
  243.  
  244.         parent::setup_title();
  245.     }
  246. }
  247. // Create the forums component
  248. $bp->forums = new BP_Forums_Component();
  249.  
  250. ?>
  #2 (permalink)  
Antiguo 29/09/2011, 06:04
Avatar de chichote
Colaborador
 
Fecha de Ingreso: diciembre-2004
Ubicación: Santiago - Chile
Mensajes: 1.868
Antigüedad: 19 años, 4 meses
Puntos: 145
Respuesta: errore en buddypress

Lo primero que debes hacer es ver los requerimientos del nuevo template, muchas veces pasa que los template requieren de plugins extras para funcionalidades adicionales o bien no son compatibles con versiones ya sea de wordpress o en este caso buddypress.

revisa este link, quizas te sirva.

http://www.k-government.com/2011/07/...wordpress-3-2/

saludos.
__________________
http://chicho.ninja yiaaaa

Etiquetas: buddypress, html, variables
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 23:45.