Skip to content
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

Closed
1 of 5 tasks
georgittanchev opened this issue Jun 14, 2023 · 9 comments
Assignees
Labels
Issue: needs update Additional information is require, waiting for response Reported on 2.3.5 Indicates original Magento version for the Issue report.

Comments

@georgittanchev
Copy link

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”.
@m2-assistant
Copy link

m2-assistant bot commented Jun 14, 2023

Hi @georgittanchev. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

@m2-assistant
Copy link

m2-assistant bot commented Jun 15, 2023

Hi @engcom-Dash. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

    1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    1. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
    1. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

@engcom-Dash engcom-Dash added the Reported on 2.3.5 Indicates original Magento version for the Issue report. label Jun 15, 2023
@engcom-Dash
Copy link

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:
Screenshot 2023-06-15 at 5 36 37 PM

Steps to reproduce:
I.install magento install using composer command
2.Verify Front-end Luma theme working or not

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!

@engcom-Dash engcom-Dash added the Issue: needs update Additional information is require, waiting for response label Jun 15, 2023
@m2-community-project m2-community-project bot moved this from Ready for Confirmation to Needs Update in Issue Confirmation and Triage Board Jun 15, 2023
@magento-deployment-service
Copy link

Hi @georgittanchev. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

@georgittanchev
Copy link
Author

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.

@engcom-Dash
Copy link

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!

@engcom-Dash
Copy link

engcom-Dash commented Jul 6, 2023

Hi @georgittanchev ,

Do you need Any further investigation in this issue ???,If it is kindly let me know.

Thanks!

@engcom-Dash
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: needs update Additional information is require, waiting for response Reported on 2.3.5 Indicates original Magento version for the Issue report.
Projects
None yet
Development

No branches or pull requests

2 participants