[wp-hackers] Debugging some strange error

Daniel danielx386 at gmail.com
Fri Nov 29 00:23:43 UTC 2013


Hi guys,

Just wondering, how many of you been in a position where you know that
there a bug in your plugin/theme, you know what condition that it will
happen but you are unable to work out why?

Right now I'm debugging a theme that I've picked up from someone else,
that also integrate into phpBB.

The wordpress comment feature will work fine IF:
- User is logged into both wordpress and phpbb (it will happen when a
user logs into phpBB then go to the blog)
- There are matching accounts on both database
- There are no comments with the user ID 0.in the wp_comment table

The issue start when someone makes a comment when they are not logged
in (both wordpress and phpBB). The error that get outputted is

/home/xxx/public_html/wp-content/themes/phpBB/includes/wp_phpbb_bridge_core.php
on line 915: Creating default object from empty value.

Would anyone have any ideas on how I can go about debugging it? Also
please note that most of it wasn't written by me so there may be
something that been missed and I have not been able to pick up on it.

The file in question:
https://github.com/Danielx64/WP-phpbb-bridge/blob/master/phpBB-WordPress-bridge/Bridge-phpBB-WordPress/wordpress/wp-content/themes/phpBB/includes/wp_phpbb_bridge_core.php#L915

As per before, credit will be given for anyone who can help me nut
this one out :)

Regards,
Daniel


More information about the wp-hackers mailing list