Re: Mon theme saute sur search.php | Titre du sujet : Re: Mon theme saute sur search.php par irishcofee sur 07/02/2012 14:43:37
ah merci, en mode debug ca donne ca :
Fatal error: Call to a member function getVar() on a non-object in /homez.406/espritgo/www/modules/mpmanager/include/search.inc.php on line 51
En recherchant sur les forums les pb sur ce fichier j'ai trouvé la solution. Il faut modifier ce fichier. la solution est donnée là par Trabis : http://www.xoops.org/modules/newbb/vi ... at&order=ASC&type=&mode=0
au cas où le lien saute, voici le copier coller :
Citation :Well, in my Mpmanager line 51(include/search.inc.php) is
$sql = "SELECT msg_id, subject, from_userid, to_userid, msg_time, msg_text FROM ".$xoopsDB->prefix("priv_msgs")." WHERE (to_userid = ".$xoopsUser->getVar('uid').") ";
$xoopsUser is not a object if you are a anonym user so:
this lines are not very useful:
$gperm_handler =& xoops_gethandler('groupperm'); if (is_object($xoopsUser)) { $groups = $xoopsUser->getGroups(); } else { $groups = XOOPS_GROUP_ANONYMOUS; }
You can change this to: if (!is_object($xoopsUser)) { return false;}
Et ca marche ! super. merci à tous.
|
|