I upgraded to the current development version of CRE and I am no longer receiving any node recommendations at /recommendations. I'm not sure what is wrong. Any ideas?

Comments

Scott Reynolds’s picture

are u using percentage or points voting?

FatPitchFinancials’s picture

I am using points voting with the Vote up/down Package.

Scott Reynolds’s picture

Have u downloaded the lastest one (july 5)? The various messages are here: http://drupal.org/project/cvs/66420

FatPitchFinancials’s picture

Yes, I downloaded the July 5th version. Maybe I need to uninstall and reinstall CRE since I also recently upgraded Drupal from 4.7 to 5.1. Maybe the CRE update failed.

FatPitchFinancials’s picture

I just found the following error in my logs:

Type php 
Date Sunday, July 8, 2007 - 22:54 
User Value Investing News 
Location http://www.valueinvestingnews.com/recommendations 
Referrer http://www.valueinvestingnews.com/node 
Message Invalid argument supplied for foreach() in /home/fatpitch/public_html/drupal51/sites/all/modules/cre/recommendation_modules/node_recommendation.module on line 267. 
Severity error 

Does this mean anything to you? Maybe it is a clue.

Scott Reynolds’s picture

ugg! that helps a lot. That is an awful if statement above that line. I will unwind that mess and find where that happens.

Scott Reynolds’s picture

do me a favor as well. Goto http://www.valueinvestingnews.com/recommendations/

Where UID is some user ID in the system and see if it works. It should work for some and not for others

Scott Reynolds’s picture

FatPitchFinancials’s picture

I had no luck getting recommendations for any of my users.

Scott Reynolds’s picture

Sry fatpitch didnt realize that u responded to this issue. Have you tried the lastest dev?

FatPitchFinancials’s picture

I did try the latest development version. The /recommendations page is still not working for users but it is working for anonymous users. The weird thing is that the blocks for content type recommendations are working. I'm using them for now.

I might end up removing this module because the cre matrix table has already gone up to 800,000 entries! I believe this is impacting the performance of my site. Why is the size of the matrix growing so long?

FatPitchFinancials’s picture

I am also getting the following php error in my logs:

Invalid argument supplied for foreach() in /home/fatpitch/public_html/drupal51/modules/cre/cre.module on line 324.
ressa’s picture

First -- thanks for making this module, it looks very promising!

I am getting the same error though:

warning: Invalid argument supplied for foreach() in C:\wamp\www\drupalsept\modules\cre\cre.module on line 324.

Did somebody find out the reason why?

I am using jRating 5.x-1.0 and 5.x-1.x-dev CRE release

Thanks

Flying Drupalist’s picture

Priority: Normal » Critical

I have the exact same error. Please help fix it.

d0t101101’s picture

I'm also experiencing the same error with the latest dev version, has anyone found a solution?

"warning: Invalid argument supplied for foreach() in /var/www/sites/all/modules/cre/cre.module on line 324."