Hi,

I ran cron update, when I got this error:

warning: min() [function.min]: Array must contain at least one element in /home/newmill/public_html/sites/all/modules/user_karma/user_karma.module on line 396.

Please help.

Hanly

Comments

mercmobily’s picture

Status: Active » Fixed

Hi,

I fixed this in the development branch of the module.
However, this really shoudln't happen. The warning tells me that you haven't activated any calculation plugins. This means that no karma will ever be awarded.

See step 3a:

3a. Enable the plugin modules. They will add functionality to
the otherwise useless module :-D The plugins will assign karma for
specific events (somebody votes on his/her comment, etc.).

Bye!

Merc.

shooommmm’s picture

Hi Merc,

What is the pulgins ? Where can I enable it ?

Thanks,

Hanly

mercmobily’s picture

Hi,

The plugins should be in Admin -> Build -> Modules : then look into the "karma" thing.
However, it looks like I was wrong and there was indeed a bug.

I fixed it in the DRUPAL-5 branch are you able to get it? Or shall I release a new version of the module?
(I'd love you to test it first...)

Merc.

shooommmm’s picture

Hi merc,

Where is the link to the updated user karma ? Can you email it to me :

hanlylim (at) gmail (dot) com

Cheers,

Hanly

mercmobily’s picture

Hi,

DOne :-D

Merc.

shooommmm’s picture

Hi Merc,

Sorry but I still get the same error msg:

warning: min() [function.min]: Array must contain at least one element in /home/newmill/public_html/sites/all/modules/user_karma/user_karma.module on line 396.

Don't know why ? I did download the latest version of user_karma.

Thanks,

Hanly

mercmobily’s picture

Hi,

Are you getting the same error using the DRUPAL-5 branch?

Merc.

mercmobily’s picture

Status: Fixed » Closed (fixed)

Hi,

Closed. Submitter disappeared, and was using an old version of Drigg.

Merc.