-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in groups.class.php on line 43 in new installation, BP 1.63 #97
Comments
Thank you for the report, I'll take a look asap. |
Further examination of the problem proved it to be php 5.4 connected. I've been able to fix groups.class.php by adding: if ( !isset( $bp->courseware ) || !is_object($bp->courseware)) { just before line 43. Image upload and media gallery started working, but I still haven't find a way to fix courses.class.php line 347 (on course description page): $old_course->terms = wp_get_object_terms($old_course->ID, 'group_id' ); and a nasty error "BuddyPress Courseware Error! Cheatin' Uh?" appears after clicking course description inside courseware tab. The only way to reach it without that error is by clicking the "Edit course" button. |
hi nikushev from your above mentioned condition I found my solution I was also facing the same problem in groups.class.php at line 43 now the error is fixed and my site is working fine. |
Please shojil tell us how do you fix it ! Warning: Creating default object from empty value in /wp-content/plugins/buddypress-courseware/groups/groups.class.php on line 44 |
I use an if condition now there will be these lines
I used put this condition after global $bp;
$bp->courseware = new stdClass; then it get fixed On Wed, Sep 11, 2013 at 2:55 PM, vespa7681 [email protected] wrote:
|
Thank you but can you tell me in which file should I add this and at which line. I'm not an expert, but with more details it should be good. Thank you again. |
It is groups.class.php in this path plugins/buddypress-courceware/groups/group.class.php it is link 44 u will fine these lines global $bp; put the if condition after global $bp; if ( !isset( $bp->courseware ) || !is_object($bp->courseware)) { On Wed, Sep 11, 2013 at 3:21 PM, vespa7681 [email protected] wrote:
|
Thanks a lot, the problem is fixed now! On Wednesday, September 11, 2013, shojil wrote:
|
Thank you so much! That fixed it immediately |
wellcome :) On Mon, Dec 23, 2013 at 1:32 AM, zaqstavano [email protected]:
|
Guys, @shojil, anyone care to prepare a patch/PR? |
On a new installation I receive "Warning: Creating default object from empty value in E:\Etc\www\wp-content\plugins\buddypress-courseware\groups\groups.class.php on line 43"
I receive the same error in courses.class.php on line 347 on course description page.
Media upload and media gallery stop working after courseware activation as well - after deactivation work fine.
The problem is present in the support tab on plugin download - several people are complaining about it.
WP 3.5, BP 1.63, Courseware 0.9.7, PHP 5.4, MySQL 5, Apache, windows 7, localhost
The text was updated successfully, but these errors were encountered: