Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP.1.2.1 + WP 2.9.2 [ upgraded from WP 2.0.4] (undefined property PHP errors)

  • Avatar of dayaairody
    dayaairody
    Participant

    @dayaairody

    I had WP 2.0.4 originally. Few days back, I upgraded it to WP 2.9.2. Everything was fine on my local machine.

    Today,I decided to try BuddyPress as it is supposed to work on non-MU wordpress installations too from BP1.2 onwards. So I installed BP1.2.1 from wordpress admin and did automatic plugin install.

    I had WP_DEBUG turned on in wp_config.php. Automatic Plugin install warned me that BuddyPress install is not verified with my version of WP (2.9.2). I had deactivated updates using “disable-wordpress-core-update” plugin as I saw some PHP warnings today. Anyway, automatic install completed and had created wp_bp_xyz tables in the database. However, apache error logs showed below errors:


    [Sat Mar 06 03:01:18 2010] [error] [client 127.0.0.1] WordPress database error Table ‘wp.wp_bp_xprofile_data’ doesn’t exist for query SELECT value FROM … referer: http://localhost/wp/wp-admin/plugins.php

    [Sat Mar 06 03:01:18 2010] [error] [client 127.0.0.1] WordPress database error Table ‘wp.wp_bp_xprofile_fields’ doesn’t exist for query SELECT * FROM …. referer: http://localhost/wp/wp-admin/plugins.php

    [Sat Mar 06 03:01:18 2010] [error] [client 127.0.0.1] WordPress database error Table ‘wp.wp_bp_xprofile_fields’ doesn’t exist for query SELECT id FROM … referer: http://localhost/wp/wp-admin/plugins.php

    [Sat Mar 06 03:01:18 2010] [error] [client 127.0.0.1] WordPress database error Table ‘wp.wp_bp_groups’ doesn’t exist for query SELECT id FROM …referer: http://localhost/wp/wp-admin/plugins.php

    [Sat Mar 06 03:01:18 2010] [error] [client 127.0.0.1] WordPress database error Table ‘wp.wp_bp_groups_members’ doesn’t exist for query SELECT COUNT(DISTINCT m.group_id) FROM … referer: http://localhost/wp/wp-admin/plugins.php

    [Sat Mar 06 03:01:18 2010] [error] [client 127.0.0.1] WordPress database error Table ‘wp.wp_bp_messages_recipients’ doesn’t exist for query SELECT unread_count FROM ….referer: http://localhost/wp/wp-admin/plugins.php

    [Sat Mar 06 03:01:20 2010] [error] [client 127.0.0.1] WordPress database error Table ‘wp.wp_bp_xprofile_groups’ doesn’t exist for query SELECT id FROM …. referer: http://localhost/wp/wp-admin/plugins.php


    all the above tables were actually created. WordPress plugin installation script (plugins.php) seems to have triggered above errors. It is strange that it reported that “installation completed successfully”.

    After activating the plugin, I am seeing below NOTICES :


    Notice: Undefined offset: 0 in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core\bp-core-catchuri.php on line 72

    Notice: Trying to get property of non-object in C:\web\xampp\htdocs\wp\wp-includes\query.php on line 367

    Notice: Use of undefined constant VHOST – assumed ‘VHOST’ in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core\bp-core-catchuri.php on line 132

    Notice: Undefined offset: 1 in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core\bp-core-catchuri.php on line 141

    Notice: Use of undefined constant VHOST – assumed ‘VHOST’ in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core\bp-core-catchuri.php on line 151

    Notice: Undefined property: stdClass::$loggedin_user in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-forums.php on line 509

    Notice: Trying to get property of non-object in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-forums.php on line 509

    Notice: Undefined property: stdClass::$displayed_user in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core.php on line 1029

    Notice: Trying to get property of non-object in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core.php on line 1029

    Notice: Undefined index: user-avatar-default in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core.php on line 159

    Notice: Undefined property: stdClass::$profile in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-xprofile\bp-xprofile-classes.php on line 796

    Notice: Undefined index: bb-config-location in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-forums.php on line 23

    Notice: Constant BP_XPROFILE_BASE_GROUP_NAME already defined in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-xprofile.php on line 109

    Notice: Constant BP_XPROFILE_FULLNAME_FIELD_NAME already defined in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-xprofile.php on line 110

    Notice: Undefined property: stdClass::$current_group in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-groups.php on line 218

    Notice: Trying to get property of non-object in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-groups.php on line 218

    Notice: Undefined variable: count_indicator in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-messages.php on line 113

    Notice: Undefined index: fileupload_maxk in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core\bp-core-avatars.php on line 35

    Notice: Undefined index: action in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core\bp-core-signup.php on line 283


    I could still access WP admin features in the middle of all these NOTICES. However, BuddyPress related links were allover the page. As my theme was not supported by BuddyPress, I decided to activate bp_template_pack. Now, I got essentially a WHITE screen along with following debug information. There was no information about whether activation succeeded or not.:


    Notice: Undefined offset: 0 in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core\bp-core-catchuri.php on line 72

    Notice: Trying to get property of non-object in C:\web\xampp\htdocs\wp\wp-includes\query.php on line 367

    Notice: Use of undefined constant VHOST – assumed ‘VHOST’ in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core\bp-core-catchuri.php on line 132

    Notice: Use of undefined constant VHOST – assumed ‘VHOST’ in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core\bp-core-catchuri.php on line 151

    Notice: Undefined property: stdClass::$loggedin_user in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-forums.php on line 509

    Notice: Trying to get property of non-object in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-forums.php on line 509

    Notice: Undefined property: stdClass::$displayed_user in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core.php on line 1029

    Notice: Trying to get property of non-object in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core.php on line 1029

    Notice: Undefined index: user-avatar-default in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core.php on line 159

    Notice: Undefined property: stdClass::$profile in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-xprofile\bp-xprofile-classes.php on line 796

    Notice: Undefined index: bb-config-location in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-forums.php on line 23

    Notice: Constant BP_XPROFILE_BASE_GROUP_NAME already defined in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-xprofile.php on line 109

    Notice: Constant BP_XPROFILE_FULLNAME_FIELD_NAME already defined in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-xprofile.php on line 110

    Notice: Undefined property: stdClass::$current_group in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-groups.php on line 218

    Notice: Trying to get property of non-object in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-groups.php on line 218

    Notice: Undefined variable: count_indicator in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-messages.php on line 113

    Notice: Undefined index: fileupload_maxk in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core\bp-core-avatars.php on line 35

    Notice: Undefined index: page in C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-xprofile\bp-xprofile-cssjs.php on line 9

    Warning: Cannot modify header information – headers already sent by (output started at C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core\bp-core-catchuri.php:72) in C:\web\xampp\htdocs\wp\wp-includes\pluggable.php on line 868

    Warning: Cannot modify header information – headers already sent by (output started at C:\web\xampp\htdocs\wp\wp-content\plugins\buddypress\bp-core\bp-core-catchuri.php:72) in C:\web\xampp\htdocs\wp\wp-includes\pluggable.php on line 868


    However, I could still access WP Admin pages and my theme retained its previous look and feel. Of course, this meant BuddyPress was not visible on my blog. I guess I have to add those links manually myself. I will look at the codex.buddypress and the default BuddyPress themes for further info.

    What is bothering me is, all those PHP NOTICES. Disabling the DEBUG, makes them go away. My blog looks the same as before; My WP admin pages also look the same except for BuddyPress being enabled. I would like to take care of these Warnings.

    Can somebody clarify what is going wrong here ? Are these something I should worry about ?

Viewing 1 replies (of 1 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    How did you upgrade from WP 2.0.4 to WP 2.9.2?

    Did you do incremental WP upgrades?

    Are you using any other plugins on your test install?

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.