Adding CGFeedback to CGBlog causing an error

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
elkman
Power Poster
Power Poster
Posts: 262
Joined: Thu Jan 11, 2007 9:16 pm

Adding CGFeedback to CGBlog causing an error

Post 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
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: Adding CGFeedback to CGBlog causing an error

Post by Jo Morg »

As you didn't add any other info or details, my guess is: clear cache?!...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
elkman
Power Poster
Power Poster
Posts: 262
Joined: Thu Jan 11, 2007 9:16 pm

Re: Adding CGFeedback to CGBlog causing an error

Post 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
chandra

Re: Adding CGFeedback to CGBlog causing an error

Post by chandra »

Please post your complete detail template.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: Adding CGFeedback to CGBlog causing an error

Post 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...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
elkman
Power Poster
Power Poster
Posts: 262
Joined: Thu Jan 11, 2007 9:16 pm

Re: Adding CGFeedback to CGBlog causing an error

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Adding CGFeedback to CGBlog causing an error

Post by Dr.CSS »

You have one of your 'keys' as Blog, maybe it needs to be CGBlog..?
Post Reply

Return to “Modules/Add-Ons”