Description
Preconditions and environment
- Magento version -> 2.3.5
- WHM (cPanel version 110)
- CloudLinux
- PHP 7.1
Steps to reproduce
Install Magento via the command:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.5 magento2
Then:
bin/magento setup:install
--base-url=http://bumbinguglies.com
--db-host=localhost
--db-name=bumbinguglies_magento
--db-user=bumbinguglies_magento
--db-password=aoNACCk2W1qQh9
--admin-firstname=admin
--admin-lastname=admin
--admin-email=admin@admin.com
--admin-user=admin
--admin-password=admin123
--language=en_US
--currency=USD
--timezone=America/Chicago
--use-rewrites=1
Then the website doesn't load only 500 error is received and the error log shows
[bumbinguglies@workhard public_html]$ tail -f error_log
#1 /home/bumbinguglies/public_html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): Magento\Framework\Config\Dom->__construct()
#2 /home/bumbinguglies/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(151): Magento\Framework\ObjectManager\Config\Reader\Dom->_createConfigMerger()
#3 /home/bumbinguglies/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(132): Magento\Framework\Config\Reader\Filesystem->_readFiles()
#4 /home/bumbinguglies/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(279): Magento\Framework\Config\Reader\Filesystem->read()
#5 /home/bumbinguglies/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(140): Magento\Framework\App\ObjectManagerFactory->_loadPrimaryConfig()
#6 /home/bumbinguglies/public_html/vendor/magento/framework/App/Bootstrap.php(211): Magento\Framework\App\ObjectManagerFactory->create()
#7 /home/bumbinguglies/public_html/vendor/magento/framework/App/Bootstrap.php(126): Magento\Framework\App\Bootstrap->__construct()
#8 /home/bumbinguglies/public_html/index.php(36): Magento\Framework\App\Bootstrap::create()
#9 {main}
thrown in /home/bumbinguglies/public_html/vendor/magento/framework/Config/Dom.php on line 449
Expected result
To see the luma theme after the installation instead of a 500 error.
Actual result
500 error:
-> https://prnt.sc/xNGesINRzwbW
PHP fatal error in error log
Additional information
I am receiving the same error on 2.3.5 installed via Magento-CLI, composer install works fine, however, the error log provides the following output:
[14-Jun-2023 18:17:06 UTC] PHP Fatal error: Uncaught Error: Class "DOMDocument" not found in /home/bumbinguglies/public_html/vendor/magento/framework/Config/Dom.php:449Stack trace:
#0 /home/bumbinguglies/public_html/vendor/magento/framework/Config/Dom.php(116): Magento\Framework\Config\Dom->_initDom()#1 /home/bumbinguglies/public_html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): Magento\Framework\Config\Dom->__construct()#2 /home/bumbinguglies/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(151): Magento\Framework\ObjectManager\Config\Reader\Dom->_createConfigMerger()#3 /home/bumbinguglies/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(132): Magento\Framework\Config\Reader\Filesystem->_readFiles()#4 /home/bumbinguglies/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(279): Magento\Framework\Config\Reader\Filesystem->read()#5 /home/bumbinguglies/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(140): Magento\Framework\App\ObjectManagerFactory->_loadPrimaryConfig()#6 /home/bumbinguglies/public_html/vendor/magento/framework/App/Bootstrap.php(211): Magento\Framework\App\ObjectManagerFactory->create()
#7 /home/bumbinguglies/public_html/vendor/magento/framework/App/Bootstrap.php(126): Magento\Framework\App\Bootstrap->__construct()#8 /home/bumbinguglies/public_html/index.php(36): Magento\Framework\App\Bootstrap::create()
#9 {main} thrown in /home/bumbinguglies/public_html/vendor/magento/framework/Config/Dom.php on line 449
PHP extensions enabled:
[PHP Modules]
bcmath
clos_ssa
Core
ctype
date
dom
filter
ftp
hash
json
libxml
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zlib
Magento is installed with the following command:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.5 magento2
It looks like the dom extension is completely installed on PHP 7.1, yet Magento 2.3.5 is looking for it for some reason as it is not there, what may the reason be for that?
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.