Page 1 of 1

Adding CGFeedback to CGBlog causing an error

Posted: Tue Dec 03, 2013 12:25 am
by elkman
I am trying to use CGFeedback as a comment option within CGBlog. I get an error message Fatal error: Cannot use object of type stdClass as array in /home1/angels08/public_html/janna/tmp/templates_c/CGFeedback^6840b5651dab7e9b17dcd7fbf6eb5cf6f3ef625f.module_db_tpl.CGFeedback;commentform_Sample.php on line 107
and the page style breaks when this code is used:

Code: Select all

{CGFeedback key1="Blog" action="summary" key2=$entry->id}
{CGFeedback key1="Blog" key2=$entry->id}
Does anyone know why this may be happening? I found this concept here: http://forum.cmsmadesimple.org/viewtopi ... ack+cgblog

Re: Adding CGFeedback to CGBlog causing an error

Posted: Tue Dec 03, 2013 11:23 am
by Jo Morg
As you didn't add any other info or details, my guess is: clear cache?!...

Re: Adding CGFeedback to CGBlog causing an error

Posted: Tue Dec 03, 2013 1:39 pm
by elkman
Thanks for the reply but clearing the cache is the first thing I always do. What other details would be helpful? The site is using the most current update and modules.

The code shown is placed in the default Detail template after all other Detail template code.

Elkman

Re: Adding CGFeedback to CGBlog causing an error

Posted: Tue Dec 03, 2013 2:13 pm
by chandra
Please post your complete detail template.

Re: Adding CGFeedback to CGBlog causing an error

Posted: Tue Dec 03, 2013 2:17 pm
by Jo Morg
elkman wrote:What other details would be helpful? The site is using the most current update and modules.
There is a lot missing: http://forum.cmsmadesimple.org/viewtopi ... =40&t=2661
Better more than less, particularly the System Info.
elkman wrote:Thanks for the reply but clearing the cache is the first thing I always do
If you have stated that on your 1st post I wouldn't have started by guessing that you might have NOT cleared the cache! :P
What template are you using for action="summary"?
It seems that something in the syntax may very well be wrong...

Re: Adding CGFeedback to CGBlog causing an error

Posted: Tue Dec 03, 2013 5:41 pm
by elkman
Sorry for not posting more detail. Thought that showing use of the current version of CMS, all current modules, and PHP version (to be sure this works with all CG modules) would be helpful.

Everything is at the default level. All templates used are the default templates. Here is the Summary page call: {CGBlog action="default" number="5"}

Thanks for taking your time to take a look.

Re: Adding CGFeedback to CGBlog causing an error

Posted: Mon Dec 30, 2013 6:18 pm
by Dr.CSS
You have one of your 'keys' as Blog, maybe it needs to be CGBlog..?