Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

bug in functions_user.php

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
Matroskin

Beginner
Beginner


Joined: Oct 05, 2007
Posts: 1

PostPosted: Sat May 03, 2008 3:10 pm    Post subject: bug in functions_user.php Reply with quote

I just found a bug in functions_user.php. When I try to remove dead users from my forum (search all, that registered year ago and have zero post count, and visited more than half-year ago), select remove all... and just a couple removed and I get a blank page.
In apache error log I found next string:
Code: ›
PHP Fatal error:  Cannot redeclare class g2helper in /home/.../httpdocs/forum/g2helper.php on line 23, referer: http://.../forum/adm/index.php?i=prune&sid=_some_SID_&mode=users

I found, that function user_delete (in functions_user.php, after MOD 1.0.1a) have next code:
Code: ›         // Delete user in Gallery
        require($phpbb_root_path . 'g2helper.' . $phpEx);
        $g2h = new g2helper();
        $g2h->deleteUser($user_id);


When you delete one user - it's ok, when more than one.. there a loop, that includes g2helper.php more and more... so, I changed call to
Code: › require_once($phpbb_root_path . 'g2helper.' . $phpEx);

so all works properly now.
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: bug in functions_user.php  

Back to top
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1050

PostPosted: Sun May 04, 2008 7:50 pm    Post subject: Re: bug in functions_user.php Reply with quote

Thanks for the report, I'll check that out! Smile
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia