Search not working in 2.6.7

Please report bugs here!

Moderator: Thorsten

Post Reply
flds
Posts: 3
Joined: Tue Oct 20, 2009 10:01 am

Search not working in 2.6.7

Post by flds »

Hi,

after upgrading from 2.6.6 to 2.6.7 i got the following message in my apache error log when searching:

PHP Fatal error: Call to undefined method PMF_Perm_PermBasic::getUserGroups() in /usr/local/www/phpmyfaq/inc/PMF_Search/Resultset.php on line 110

My quick and dirty fix which made it work was:

Code: Select all

--- /usr/ports/www/phpmyfaq/work/phpmyfaq-2.6.7/inc/PMF_Search/Resultset.php	2010-07-29 20:34:39.000000000 +0200
+++ inc/PMF_Search/Resultset.php	2010-08-02 09:59:39.000000000 +0200
@@ -107,8 +107,9 @@
         
         $duplicateResults = array();
         $currentUserId    = $this->user->getUserId();
+        if ('medium' == PMF_Configuration::getInstance()->get('main.permLevel')) {
         $currentGroupIds  = $this->user->perm->getUserGroups($currentUserId);
-
+        }
         foreach ($this->rawResultset as $index => $result) {
             
             $permission = false;
I don't know if this is correct at all, but my search results now show again.

Thanks,
Florian
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search not working in 2.6.7

Post by Thorsten »

Hi,

you're right. This error happens by using search and basic permission level. Your fix is correct.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply