Module Manager error (CMSMS 1.10.)

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

Module Manager error (CMSMS 1.10.)

Post by urheat »

I have a clean 1.10 installation.

If I look at Module Manager, I can't see the listing of availabe modules. In Admin Log there is:

Code: Select all

ERROR DETECTED: Call to undefined function json_decode() at /var/www/html/modules/ModuleManager/lib/class.modmgr_utils.php:463
If I try to install a module via XML-file, nothing happes and Admin Log says:

Code: Select all

ERROR DETECTED: Class 'XMLReader' not found at /var/www/html/lib/classes/class.moduleoperations.inc.php:217
I've cleared CMSMS and browsers cache.

Everything else seems to work fine...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Module Manager error (CMSMS 1.10.)

Post by calguy1000 »

This means your PHP version is either too old, or customized without some key and important libraries. You should contact your host.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

Re: Module Manager error (CMSMS 1.10.)

Post by urheat »

Thanks!

The PHP version is 5.2.8.
User avatar
jaslorax
Forum Members
Forum Members
Posts: 25
Joined: Thu Jan 14, 2010 12:34 am
Location: The States

Re: Module Manager error (CMSMS 1.10.)

Post by jaslorax »

Was there a change to the code regarding the parsing of XML in the last few iterations of CMSMS?

I'm not certain when it stopped working for me - I believe it to be recent, like 1.10 . . . I am currently on 1.10.1 with PHP 5.2.14, which is supposed to have the XML function enabled by default - I have my host looking into it but they haven't found anything yet.

My error in the CMS log:
ERROR DETECTED: Class 'XMLReader' not found at /www/lib/classes/class.moduleoperations.inc.php:217

In the Error Log:
PHP Fatal error: Class 'XMLReader' not found in /www/lib/classes/class.moduleoperations.inc.php on line 217, referer: http://www.x.com/admin/moduleinterface. ... uleManager

My system info in the CMS shows all green including the following line:
Basic XML (expat) support (xml_function) Success On (True)

Any thoughts or ideas?

I tried this simple code and got the same error:

Code: Select all

{php}
$xml = XMLReader::open('test.xml');

// You must to use it
$xml->setParserProperty(XMLReader::VALIDATE, true);

var_dump($xml->isValid());
{/php}
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Module Manager error (CMSMS 1.10.)

Post by calguy1000 »

The XMLReader class is a class that is included with PHP on standard installs of PHP since PHP 5.1.2

See here: http://www.php.net/manual/en/xmlreader.open.php

If your system does not support it, then your host is using a custom compile of PHP (this is supposed to be standard, so we don't even check it in the installer). I suggest you contact your host.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
jaslorax
Forum Members
Forum Members
Posts: 25
Joined: Thu Jan 14, 2010 12:34 am
Location: The States

Re: Module Manager error (CMSMS 1.10.)

Post by jaslorax »

Thanks for the reply - I understood that part and do have my host looking into it; but as it used to work for me I was wondering if there was a change in the way the module manager/module xml upload parses those files in the last year or so - did it use a different class before (besides XMLReader)?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Module Manager error (CMSMS 1.10.)

Post by calguy1000 »

ModuleManager got a significant overhaul in CMSMS 1.10 ... it's in the release notes.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
jaslorax
Forum Members
Forum Members
Posts: 25
Joined: Thu Jan 14, 2010 12:34 am
Location: The States

Re: Module Manager error (CMSMS 1.10.)

Post by jaslorax »

OK, thanks calguy1000 - I know I read it, but it must not have stuck . . .

;)

For anyone else interested here are the relevant notes:

ModuleManager (and it’s partner server component ModuleRepository) have been significantly revised to use a RESTFUL interface rather than a SOAP interface (sorry for the geek talk). Which results in a dramatic reduction in memory requirements for downloading modules from our forge. Additionally, the XML parsing functionality has been rewritten to use memory more optimally, and there are functionality improvements as well. As a side benefit to this effort we were able to completely remove the nuSOAP module from our distribution.

Full release info here: http://forum.cmsmadesimple.org/viewtopic.php?t=57370
proboscidian
Forum Members
Forum Members
Posts: 23
Joined: Sun Feb 24, 2008 11:12 pm

Re: Module Manager error (CMSMS 1.10.)

Post by proboscidian »

What is the minimum PHP version? I am using 5.2.13 and getting the same error as in the first post:
ERROR DETECTED: Call to undefined function json_decode() at /var/www/html/modules/ModuleManager/lib/class.modmgr_utils.php:463
but I am able to install modules with the xml file without any problems.
proboscidian
Forum Members
Forum Members
Posts: 23
Joined: Sun Feb 24, 2008 11:12 pm

Re: Module Manager error (CMSMS 1.10.)

Post by proboscidian »

I upgraded to PHP 5.3, and it worked - but then a lot of other things on the server didn't (seems to have something to do with ioncube loaders) so until I get that straightened out I guess I'm stuck uploading modules through xml.
Locked

Return to “[locked] Installation, Setup and Upgrade”