Hi Alun!

I have upgraded to the last dev version and when I am going to edit one of the views I constructed on top of leaguesite data I get this error message:

"Fatal error: Cannot redeclare class leaguesite_handler_field_points in /etc/drupal/6/sites/all/modules/leaguesite/leaguesite_league/views/leaguesite_handler_field_points_away.inc on line 34"

I edited the file leaguesite_handler_field_points_away.inc file and I can see the first line

class leaguesite_handler_field_points extends views_handler_field_numeric{

does not match the file name, so I renamed the class to leaguesite_handler_field_points_away.

I went back to the view, and then got the following error message:

Fatal error: Cannot redeclare class leaguesite_handler_field_points in /etc/drupal/6/sites/all/modules/leaguesite/leaguesite_league/views/leaguesite_handler_field_points_home.inc on line 34

I followed the same procedure (open and renamed the class) and now I can edit the view.

Regards

CommentFileSizeAuthor
#1 masterchief.patch1.15 KBMasterChief

Comments

MasterChief’s picture

Assigned: Unassigned » MasterChief
Status: Active » Needs review
StatusFileSize
new1.15 KB

Here the patch :)

ayukko’s picture

Thanks!

Alun’s picture

Status: Needs review » Patch (to be ported)
MasterChief’s picture

Hi Alun,

I am seeing you are online, could i talk with you 2 min on #drupal irc channel ?

ParisLiakos’s picture

Ah i got the same error :P

Alun could you commit the patch?
or i will do it manually