CMS Made Simple Forums
https://forum.cmsmadesimple.org/

[SORTED] Error on NMS (2.2.2) running on a CMS Made Simple MLE version 1.5.2
https://forum.cmsmadesimple.org/viewtopic.php?f=41&t=35103
Page 1 of 1

Author:  pgingao [ Tue Jun 30, 2009 10:15 am ]
Post subject:  [SORTED] Error on NMS (2.2.2) running on a CMS Made Simple MLE version 1.5.2

Hi all,

I'v just installed the last NMS (2.2.2) on a CMS Made Simple MLE version 1.5.2 "Caguas" runing on PHP 5.2.6 and I get the following error wen I go to Modules>NMS:

Fatal error: Call to a member function FetchRow() on a non-object in /home/becoach/public_html/2009/modules/NMS/function.utils.php on line 57

Thanks in advance

Paulo

Author:  alby [ Tue Jun 30, 2009 10:32 am ]
Post subject:  Re: Error on NMS (2.2.2) running on a CMS Made Simple MLE version 1.5.2 "Caguas"

pgingao \pgingao:
Fatal error: Call to a member function FetchRow() on a non-object in /home/becoach/public_html/2009/modules/NMS/function.utils.php on line 57


Have you apply patch?

Alby

Author:  pgingao [ Tue Jun 30, 2009 10:33 am ]
Post subject:  Re: Error on NMS (2.2.2) running on a CMS Made Simple MLE version 1.5.2 "Caguas"

Hi Alby,

sorry but what patch?

Thank you

Paulo

Author:  alby [ Tue Jun 30, 2009 10:38 am ]
Post subject:  Re: Error on NMS (2.2.2) running on a CMS Made Simple MLE version 1.5.2 "Caguas"

pgingao \pgingao:
sorry but what patch?


Here, it's for 2.2
but you must substitute query (about) row #50:
\$1:
................
  $mypages = array();
  $parms = array('content');
//Start MLE
global $mleblock;
  $q = "SELECT content_id,content_name{$mleblock}
                FROM ".cms_db_prefix()."content
               WHERE type = ?
                 AND active = 1";
//End MLE

  if( $templateid != '' )
    {
.........


Alby

Author:  pgingao [ Tue Jun 30, 2009 10:47 am ]
Post subject:  Re: Error on NMS (2.2.2) running on a CMS Made Simple MLE version 1.5.2 "Caguas"

Thanks a lot Alby, I've seen that topic but I didn't give it a try it because it was a bit old.

It's now running smooth with that patch and the change on the query.

Cheers

Paulo

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/