From: Eloi G. <el...@re...> - 2003-01-03 22:50:31
|
Hey Adam! Fatal error: Cannot instantiate non-existent class: phpws_articlemanager in /www/r/realvidreams/htdocs/testbed/mod/search/class/Search.php on line 81 Yeah, it's mine <dejected sigh>. When I posted it I thought it was a general error, but apparently all other modules work just fine with it! I've been trying to track the problem down for the past 2 days. The Approval Module instantiates the phpws_articlemanager class just fine, and I registered the Search module true to the documentation: if(isset($_SESSION["OBJ_search"])) { /* Register with search module */ $search['module'] = "articlemanager"; $search['search_class'] = "PHPWS_ArticleManager"; $search['search_function'] = "searchArticles"; $search['search_cols'] = "title, text"; $search['view_string'] = "&op=view_article&ARTICLE_id="; $search['show_block'] = 1; if(!$core->sqlInsert($search, "mod_search_register")) $content .= "Problem registering search<br />"; else $content .= "Registered with Search module!<br />"; } registration information shows up in mod_search_register just fine, but STILL it doesn't work. Arrrgh! I even tried replacing line 81 of Search.php with: $tempObj = new PHPWS_ArticleManager(); still nothing. Apparently Search is looking for something or has something set that Approval doesn't, but I can't figure out what... Looking for divine inspiration... -Eloi George- ----- Original Message ----- From: <ad...@tu...> To: <php...@li...> Sent: Tuesday, December 31, 2002 8:41 PM Subject: [Phpwebsite-developers] Hello again > 5. Eloi! The bug you posted about on this list had the class name > PHPWS_ArticleManager in it. Is this not your module? |