Recent Topics

1 Nov 25, 2008 22:59    

Fatal error: Call to a member function on a non-object in /home/gsgboo5/public_html/blog/plugins/am_extra_comment_plugin/_am_extra_comment.plugin.php on line 108

Everything works fine up until you hit submit on the comment. Any ideas on how to fix this?

2 Nov 26, 2008 14:46

Damn it's been ages since I coded that :P

Try changing line 108 to read :

			$the_blog = get_Cache( 'BlogCache' )->get_by_ID( $the_Item->blog_ID );

¥

3 Nov 26, 2008 17:13

I commented out 108 and added your code to 109 and this is the result:

Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/gsgboo5/public_html/blog/plugins/am_extra_comment_plugin/_am_extra_comment.plugin.php on line 109

4 Nov 26, 2008 17:21

:P at least it's a different error :P

Try changing it to the long winded version :

$BlogCache = get_Cache( 'BlogCache' );
$the_blog = $BlogCache->get_by_ID( $the_Item->blog_ID );

As untested as the first solution I'm afraid, as I don't have anywhere with this plugin installed :P

¥

5 Nov 26, 2008 17:24

I will try that. I left 108 commented out and it seems to work now. Not sure what this line is doing anyway.

6 Nov 26, 2008 17:28

That lines used as part of the checks for "comments visible/answerable by members/editors/admins" .... if you don't use those statuses then it's no great loss.

Hopefully the above line will cure it though .... if not, then I guess I need to get off my arse, install it, and fix it properly :P

¥

7 Nov 26, 2008 17:31

it looks like that fixed it. That was my last little pain in the arse error to fix and now I have a fully functional blog site with no errors!!!!!!!!! Hooray!

Thanks for the quick response!

Cheers!

8 Nov 26, 2008 17:34

Yay ... guess now I need to create a new zip and actually add the plugin to BOPIT :D

Thanks for finding the error ;)

¥

9 Nov 26, 2008 17:36

if only I could get BOPIT to work with my site :P

10 Nov 26, 2008 17:47

:| bopit doesn't work with your site? 8|

¥

11 Nov 26, 2008 17:55

not sure if this is the right thread but here is the error from the BOPIT tab:

Fatal error: Cannot instantiate non-existent class: plugins_no_db in /home/gsgboo5/public_html/blog/plugins/am_bopit_plugin/_am_bopit.plugin.php on line 114

12 Nov 26, 2008 17:59

Hmmmm. can you crack open the bopit file and tell me what the version number is? ( somewhere around line 24 )

¥

13 Nov 26, 2008 18:01

1.01

If only there were a plugin that would track such things :P

15 Nov 26, 2008 18:41

jeez, so simple. How many problems can you solve for me today!?!?! My car is making a funny sound, can you fix that too? :p

Not sure where I got that version but it all works great now! Thanks for all of your help!


Form is loading...