Hi Susan,
thanks for your answer. I tried to track the error down with the help you provided, but I can’t figure it out completly. Maybe you could help me again?
I put echo __LINE__; print_r($pluginCode); // Frisco
in manager/includes/document.parser.class.inc.php, to see what is eval’d, as I couldn’t find s.th. in the webloginpe files. I also looked at my configuration for wrong path’s, but it looks well, and everything else works fine.
A look in the manager showed me, that all webusers were registered, so the error message seems to be wrong, it works. Now the question remains, why the error is raised.
"Grep -iR issuccess *" and the print_r($pluginCode); show me, that isSuccess() seems to belong to a Gallery module I use (Gallery2 for Menalto Gallery). This module offers possibilities to import and export users, which could have s.th. to do with the registration process of webloginpe.
The output of $pluginCode (only the last part) is:
744/** * Gallery Plugin for MODx * Written by Raymond Irving, Sept 2005 * Modyfied by Hisanori Muramoto, Feb, 2007 * Integrates Gallery2 with MODx * * Events: * OnWebChangePassword,OnWebDeleteUser,OnWebSaveUser,OnWebLogout * * Version: 1.1 * */ $e = &$modx->event; # build mod path $modpath = $modx->config["base_path"].($mpth ? $mpth:"assets/modules/gallery/"); # include main class include_once $modpath."g2cms.base.class.inc.php"; $g2base = new G2CMS_Base(); // include Gallery API require_once($g2base->g2Path.'embed.php'); $ret = GalleryEmbed::init(array( 'embedUri' => $g2base->embedUri, 'g2Uri' => $g2base->g2Uri, 'activeUserId' => $modx->getLoginUserName() )); if ($ret) { $modx->logEvent(0,2,$ret->getAsHtml(),'Gallery'); exit; } // Event switch switch($e->name) { case "OnWebLogout": $ret = GalleryEmbed::logout(array( 'embedUri' => $g2base->embedUri, 'embedPath' => $g2base->embedPath )); if ($ret) { $modx->logEvent(0,2,$ret->getAsHtml(),'Gallery'); exit; } break; case "OnWebSaveUser": $uid = $username; $args = array( 'username' => $username, 'fullname' => $userfullname, 'email' => $useremail, 'hashmethod' => 'md5', 'hashedpassword' => md5($userpassword) ); if($mode=="new") { $ret = GalleryEmbed::createUser($uid,$args); if (!$ret->isSuccess()) { $modx->logEvent(0,2,"Unable to create Gallery user account ($username)
".$ret->getAsHtml(),"Gallery"); } } else if($mode=="upd"){ $uid=($oldusername ? $oldusername:$username); if(GalleryEmbed::isExternalIdMapped($uid,'GalleryUser')==null) { $ret = GalleryEmbed::updateUser($uid,$args); if (!$ret->isSuccess()) { $modx->logEvent(0,2,"Unable to update Gallery user account ($username)
".$ret->getAsHtml(),"Gallery"); } } } break; case "OnWebChangePassword": if(GalleryEmbed::isExternalIdMapped($username,'GalleryUser')==null) { $ret = GalleryEmbed::updateUser($username,array( 'username'=>$username, 'password'=>$userpassword, )); if (!$ret->isSuccess()) { $modx->logEvent(0,2,"Unable to update Gallery user ($username) password
".$ret->getAsHtml(),"Gallery"); } } break; case "OnWebDeleteUser": if(strpos(strtolower($ondel),'delete')!==false) {; if(GalleryEmbed::isExternalIdMapped($username,'GalleryUser')==null) { $ret = GalleryEmbed::deleteUser($username); if (!$ret->isSuccess()) { $modx->logEvent(0,2,"Unable to update Gallery user ($username) password
".$ret->getAsHtml(),"Gallery"); } } } break; default: return; break; }
Fatal error: Call to undefined function: issuccess() in /var/www/modx/manager/includes/document.parser.class.inc.php(746) : eval()'d code on line 65
This is all related to Gallery, not to webloginpe at all.
But seems to be interconnected anyhow.
Any clues?
Cheers
Frisco