PHP Fatal error: Cannot redeclare userpoints_nodeapi()
(previously declared in /home/sites/co.uk/public_html/sites/all/modules/contributions/userpoints/userpoints_basic.module:94)
in /home/sites/co.uk/public_html/sites/all/modules/contributions/userpoints_nc/userpoints_nc.module on line 193,
referer: http://mysite/admin
Changing function to:

function userpoints_nc_nodeapi(&$node, $op, $teaser, $page) {

Comments

kenorb’s picture

Another problem:
PHP Fatal error: Cannot redeclare userpoints_comment() (previously declared in ...

Changed to:
function userpoints_nc_comment($comment, $op) {

Anjaro’s picture

Just wanna say THANKS.

jredding’s picture

Status: Needs review » Closed (fixed)

You should not have userpoints_basic and userpoints_nc on the same site. userpoints_basic is a deprecated module for the 6.x branch. I'll look into the function names to make sure that they are different but in either case disable (and remove) userpoints_basic.

kenorb’s picture

Status: Closed (fixed) » Postponed

So the name of function has been fixed now?

rolf van de krol’s picture

Status: Postponed » Fixed

This is legacy from the time the code of userpoints_basic was being moved to userpoint_nc. Currently this works perfectly well. The userpoints_basic module has been removed from the userpoint 6.x package.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.