-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Fatal error: Uncaught Error: Class "DOMDocument" not found in /home/bumbinguglies/public_html/vendor/magento/framework/Config/Dom.php:449Stack trac #37614
Comments
Hi @georgittanchev. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Dash. Thank you for working on this issue.
|
Hi @georgittanchev , Thanks for collaboration and contribution ! verified the issue 2.4-develop instance and the issue is not reproducible. Kindly refer the below screenshots: Steps to reproduce: We are getting luma theme after composer installation and issue is not reproducible.Kindly recheck the behaviour in 2.4-develop instance as well as kindly update your magento 2.3.5 with latest version and recheck the behaviour. Let us know if are missing anything! Thanks! |
Hi @georgittanchev. Thank you for your request. I'm working on Magento instance for you. |
Hi @georgittanchev, here is your Magento Instance: https://af759bd424aeff5ab3fa72d4228440a2.instances-prod.magento-community.engineering |
The issue at hand pertains specifically to Magento 2.3.5, which is being run in conjunction with CloudLinux and WHM. I am uncertain as to where and why you have conducted your tests using version 2.4, considering that the problem arises from version 2.3.5. I am inclined to carry out an upgrade test for Magento via the terminal. However, I am impeded by the fact that I am unable to install it initially. I would appreciate it if you could clarify on which operating system you are installing Magento 2.4 and delineate the exact commands you are employing. As it stands, there are servers where installation proceeds without a hitch. On this particular server, though, a particular issue arises. Despite the dom extension being enabled, Magento, for some reason, seems unable to locate or detect it, thus triggering a PHP Fatal error. It is imperative to note that conducting tests on version 2.4 does not provide a resolution to our current drawback. |
Hi @georgittanchev , Thanks for Contribution and collaboration! Currently we are using magento 2.4 in Mac OS version 12.6.5 and we are using 2.4-develop branch because this is the latest development branch, and it might be possible the issue you mentioned is already been resolve in this branch. Please try to reproduce the issue in 2.4-develop or latest stable version. Thanks! |
Hi @georgittanchev , Do you need Any further investigation in this issue ???,If it is kindly let me know. Thanks! |
Hi @georgittanchev , As we are not able to get the latest update on the issue. We are closing the issue for now. Please feel free to reopen it or ask us to reopen. Thanks |
Preconditions and environment
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
The text was updated successfully, but these errors were encountered: