Favorites entries tag outputting error
Posted: 21 May 2007 09:54 AM   [ Ignore ]
Newbie
Rank
Total Posts:  29
Joined  2006-09-16

Hello mk, Ingmar,

first off, thanks so much for these forums and the modules, of course. grin

I am facing an issue with this tag. It might be due to lack of understanding how this module works. I would like to display the favorites:entries tag in a template. But this does not seem to work.

In the template where I utilize

<a href="{path='forms/favorite-add/'}{entry_id}">Add to favorites</a


I get the correct success/error message and the data is saved in the favorites cp.

I have created another template called “viewprofile”. This template is supposed to display the favorites saved by a user. The URL looks something like this

my_template_group//viewprofile/1/ 

In the viewprofile template, I added this code as described via the docs:

{exp:favorites:entries weblog="master_weblog_name" limit="10"}

<a href="{title_permalink='my_template_group/template'}">{title}</a><br />

{/exp:favorites:entries} 

That, however, only outputs an error:

NoticeTrying to get property of non-object in xxxx/modules/favorites/mod.favorites.php on line 578 

What am I doing wrong? Any pointers would be awesome.

Maleika

Profile
 
 
Posted: 21 May 2007 10:26 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

That sounds like a pretty good bug. I’ll have to have a look.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 21 May 2007 10:27 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  29
Joined  2006-09-16

Hi mk,

I just updated to the latest EE build and now it seems to work.

Profile
 
 
Posted: 21 May 2007 12:24 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Thank you Malieka.

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 30 July 2007 01:56 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  29
Joined  2006-09-16

Hi Mitchell,

I guess I spoke too soon. There does seem to be a bug. When I view the page where I store the saved favorites and have at least 1 favorite listed, it works. When I delete the favorite, however, I get the same error again on the top of the page:

NoticeTrying to get property of non-object in /home/xxx/xxx/xxx/system/modules/favorites/mod.favorites.php on line 578 

This error notice only appears if I delete all saved favorites. It does not occur if I have e.g. 2 favorites and delete only one of them.

I made sure that the EE installation is at its current build and the favorites module is also using the latest build.

I am hoping dearly that perhaps you or Ingmar can give me a hint as to what needs to be corrected and I’ll more than happily do anything that is needed in terms of code alteration myself as it’s a client’s site and the launch is dependent on this error being corrected.

Many many thanks in advance for any pointers,

Maleika

Profile
 
 
Posted: 05 August 2007 10:04 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  29
Joined  2006-09-16

Some sort of echo would be nice.
I am not sure how to proceed, whether to leave the module out then or whether there is something one could do. Searching did not bring up anything, neither here nor in the EE forums.

Profile
 
 
Posted: 06 August 2007 08:43 AM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Maleika,

I just emailed you a slightly modified Favorites file. Ping me back about the status once you upload it.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 27 August 2007 08:58 AM   [ Ignore ]   [ # 7 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Maleika, any progress?

 Signature 

Ingmar Greil

Profile
 
 
Posted: 25 October 2007 04:29 PM   [ Ignore ]   [ # 8 ]
Member
Avatar
RankRankRank
Total Posts:  56
Joined  2007-07-16

Hmmm - I have this problem too, any news?!

Profile
 
 
Posted: 25 October 2007 04:46 PM   [ Ignore ]   [ # 9 ]
Member
Avatar
RankRankRank
Total Posts:  56
Joined  2007-07-16

FOUND!

Well, kinda.

If you have custom member fields with a - symbol in, eg:

member-city

...it produces and SQL error in the plugin and the PHP notice detailed above.

Renamed, and its all good now smile

Profile
 
 
Posted: 26 October 2007 02:35 AM   [ Ignore ]   [ # 10 ]
Member
Avatar
RankRankRank
Total Posts:  56
Joined  2007-07-16

Another small thing, it would be nice to say on this page:

http://www.solspace.com/docs/entry/favorites_20_members_tag/

...that the member list won’t work within the weblog tag smile

Profile
 
 
   
 
 
     Mass Delete ››