Closed (fixed)
Project:
User points Nodes and Comments
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2009 at 03:10 UTC
Updated:
10 Aug 2010 at 11:50 UTC
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
Comment #1
kenorb commentedAnother problem:
PHP Fatal error: Cannot redeclare userpoints_comment() (previously declared in ...
Changed to:
function userpoints_nc_comment($comment, $op) {
Comment #2
Anjaro commentedJust wanna say THANKS.
Comment #3
jredding commentedYou 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.
Comment #4
kenorb commentedSo the name of function has been fixed now?
Comment #5
rolf van de krol commentedThis 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.