Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Jun 15, 2019 11:50 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: After upgrade 1.1.38 >> 1.2.2 get a PHP xml_parser errror
PostPosted: Mon Mar 11, 2019 7:18 am 
Offline

Joined: Mon Mar 11, 2019 4:43 am
Posts: 3
Hi,

After upgrade from 1.1.38 >> 1.2.2 i get a Error when i try to add a graph to a existing device or to a new added device. It Fails with error Message

Code:
2019/03/11 11:59:58 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/03/11 11:59:58 - ERROR PHP ERROR: Uncaught Error: Call to undefined function xml_parser_create() in /opt/cacti/lib/xml.php:29 Stack trace: #0 /opt/cacti/lib/data_query.php(519): xml2array('<interface>\n\t<n...') #1 /opt/cacti/graphs_new.php(573): get_data_query_array('1') #2 /opt/cacti/graphs_new.php(66): graphs() #3 {main} thrown in file: /opt/cacti/lib/xml.php on line: 29

Phpinfo for libxml:
libXML support    active
libXML Compiled Version    2.9.3
libXML Loaded Version    20904
libXML streams    enabled

php -m
xml
xmlreader
xmlrpc
xmlwriter
xsl


cati runs on a Ubuntu 18.04 with PHP 7.0.33
Does anyone have any idea why the error occurrs?

Thanks, Marco.


Top
 Profile  
 
 Post subject: Re: After upgrade 1.1.38 >> 1.2.2 get a PHP xml_parser errro
PostPosted: Mon Mar 11, 2019 8:49 am 
Offline

Joined: Mon Mar 11, 2019 4:43 am
Posts: 3
i switched now to PHP 7.2.15 an the error is gone, adding new devices an graphs works as before the upgrade.
Now i get a new error message ...

Code:
2019-03-11 14:48:49 - CMDPHP PHP ERROR WARNING Backtrace: (/clog.php[27]:include(), /include/auth.php[28]:require_once(), /include/global.php[338]:session_name(), CactiErrorHandler())
2019-03-11 14:48:49 - ERROR PHP : session_name(): Cannot change session name when session is active in file: /opt/cacti/include/global.php on line: 338
2019-03-11 14:48:49 - CMDPHP PHP ERROR WARNING Backtrace: (/clog.php[27]:include(), /include/auth.php[28]:require_once(), /include/global.php[322]:ini_set(), CactiErrorHandler())
2019-03-11 14:48:49 - ERROR PHP : ini_set(): A session is active. You cannot change the session module's ini settings at this time in file: /opt/cacti/include/global.php on line: 322


Top
 Profile  
 
 Post subject: Re: After upgrade 1.1.38 >> 1.2.2 get a PHP xml_parser errro
PostPosted: Mon Mar 11, 2019 8:55 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
That function is part of the XML library. As long as you have that module enabled for both CLI and Web then it would be found.

See https://github.com/Cacti/cacti/issues/1871

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: After upgrade 1.1.38 >> 1.2.2 get a PHP xml_parser errro
PostPosted: Mon Mar 11, 2019 9:53 am 
Offline

Joined: Mon Mar 11, 2019 4:43 am
Posts: 3
malibtec wrote:
i switched now to PHP 7.2.15 an the error is gone, adding new devices an graphs works as before the upgrade.
Now i get a new error message ...

Code:
2019-03-11 14:48:49 - CMDPHP PHP ERROR WARNING Backtrace: (/clog.php[27]:include(), /include/auth.php[28]:require_once(), /include/global.php[338]:session_name(), CactiErrorHandler())
2019-03-11 14:48:49 - ERROR PHP : session_name(): Cannot change session name when session is active in file: /opt/cacti/include/global.php on line: 338
2019-03-11 14:48:49 - CMDPHP PHP ERROR WARNING Backtrace: (/clog.php[27]:include(), /include/auth.php[28]:require_once(), /include/global.php[322]:ini_set(), CactiErrorHandler())
2019-03-11 14:48:49 - ERROR PHP : ini_set(): A session is active. You cannot change the session module's ini settings at this time in file: /opt/cacti/include/global.php on line: 322




i changed php.ini session.auto_start = 1 >> session.auto_start = 0 makes this warning dissapear


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group