MyBB Community Forums

Full Version: Error 500 when Uploading a Theme
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.
This is a brand new install of a forum.
It is fully working, however, whenever I try to upload the .xml of a theme (from local file & url), I get an Internal Error (http 500 error).

Link: www.minelight.uk/community

It is a VPS.

Error log (/var/log/httpd/error_log):

[Fri Feb 17 13:25:31.201031 2017] [:error] [pid 5042] [client 77.49.52.21:51386] PHP Fatal error:  Uncaught Error: Call to undefined function xml_parser_create() in /var/www/html/community/inc/class_xml.php:53\nStack trace:\n#0 /var/www/html/community/admin/inc/functions_themes.php(25): XMLParser->get_tree()\n#1 /var/www/html/community/admin/modules/style/themes.php(386): import_theme_xml('<?xml version="...', Array)\n#2 /var/www/html/community/admin/index.php(803): require('/var/www/html/c...')\n#3 {main}\n  thrown in /var/www/html/community/inc/class_xml.php on line 53, referer: http://www.minelight.uk/community/admin/index.php?module=style-themes&action=import
[Fri Feb 17 16:10:57.364268 2017] [:error] [pid 5235] [client 193.92.197.73:54286] PHP Fatal error:  Uncaught Error: Call to undefined function xml_parser_create() in /var/www/html/community/inc/class_xml.php:53\nStack trace:\n#0 /var/www/html/community/admin/modules/style/themes.php(185): XMLParser->get_tree()\n#1 /var/www/html/community/admin/index.php(803): require('/var/www/html/c...')\n#2 {main}\n  thrown in /var/www/html/community/inc/class_xml.php on line 53, referer: http://www.minelight.uk/community/admin/index.php?module=style
[Fri Feb 17 16:11:15.730535 2017] [:error] [pid 5043] [client 193.92.197.73:54289] PHP Fatal error:  Uncaught Error: Call to undefined function xml_parser_create() in /var/www/html/community/inc/class_xml.php:53\nStack trace:\n#0 /var/www/html/community/admin/inc/functions_themes.php(25): XMLParser->get_tree()\n#1 /var/www/html/community/admin/modules/style/themes.php(386): import_theme_xml('<?xml version="...', Array)\n#2 /var/www/html/community/admin/index.php(803): require('/var/www/html/c...')\n#3 {main}\n  thrown in /var/www/html/community/inc/class_xml.php on line 53, referer: http://www.minelight.uk/community/admin/index.php?module=style-themes&action=import
[Fri Feb 17 16:11:35.480599 2017] [:error] [pid 5051] [client 193.92.197.73:54324] PHP Fatal error:  Uncaught Error: Call to undefined function xml_parser_create() in /var/www/html/community/inc/class_xml.php:53\nStack trace:\n#0 /var/www/html/community/admin/inc/functions_themes.php(25): XMLParser->get_tree()\n#1 /var/www/html/community/admin/modules/style/themes.php(386): import_theme_xml('\\x89PNG\\r\\n\\x1A\\n\\x00\\x00\\x00\\rIHD...', Array)\n#2 /var/www/html/community/admin/index.php(803): require('/var/www/html/c...')\n#3 {main}\n  thrown in /var/www/html/community/inc/class_xml.php on line 53, referer: http://www.minelight.uk/community/admin/index.php?module=style-themes&action=import
[Fri Feb 17 16:21:53.070604 2017] [:error] [pid 5529] [client 193.92.197.73:54537] PHP Fatal error:  Uncaught Error: Call to undefined function xml_parser_create() in /var/www/html/community/inc/class_xml.php:53\nStack trace:\n#0 /var/www/html/community/admin/inc/functions_themes.php(25): XMLParser->get_tree()\n#1 /var/www/html/community/admin/modules/style/themes.php(386): import_theme_xml('<?xml version="...', Array)\n#2 /var/www/html/community/admin/index.php(803): require('/var/www/html/c...')\n#3 {main}\n  thrown in /var/www/html/community/inc/class_xml.php on line 53, referer: http://www.minelight.uk/community/admin/index.php?module=style-themes&action=import
[Fri Feb 17 16:27:43.180033 2017] [:error] [pid 5529] [client 193.92.197.73:54623] PHP Fatal error:  Uncaught Error: Call to undefined function xml_parser_create() in /var/www/html/community/inc/class_xml.php:53\nStack trace:\n#0 /var/www/html/community/admin/inc/functions_themes.php(25): XMLParser->get_tree()\n#1 /var/www/html/community/admin/modules/style/themes.php(386): import_theme_xml('<?xml version="...', Array)\n#2 /var/www/html/community/admin/index.php(803): require('/var/www/html/c...')\n#3 {main}\n  thrown in /var/www/html/community/inc/class_xml.php on line 53, referer: http://www.minelight.uk/community/admin/index.php?module=style-themes&action=import
You have already tryed to test this with another template?
(2017-02-19, 07:04 PM)broatcast Wrote: [ -> ]You have already tryed to test this with another template?

I realised that I didn't have xml for PHP 7 installed.
It's working now.