Skip to content

Uncaught Error: Class 'DOMDocument' not found in Magento 2.4 CE #29387

Closed
@TheRealHunzik

Description

@TheRealHunzik

Preconditions (*)

1.Magento 2.4 CE
2.Apache 2.4.41 (Ubuntu)
3.PHP 7.4.8 (cli)
4.mysql Ver 8.0.21 for Linux on x86_64 (MySQL Community Server - GPL)
5.Ubuntu 20.04 LTS
6.Installed PHP extensions

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

  1. i have tried to enable xml extension using phpenmod -v 7.4 xml

Steps to reproduce (*)

1.Download Latest version of Magento CE
2.Extract and copy to /var/www/html/magento24
3.Grant 777 permission usng command sudo chmod -R 777 magento24
4.Go to browser and submit url 'http://127.0.0.1/magento24/'

Expected result (*)

  1. Magento Installation Setup should Start

Actual result (*)

  1. Gave an error on
  2. enable display error found Fatal error: Uncaught Error: Class 'DOMDocument' not found in /var/www/html/magento24/vendor/magento/framework/Config/Dom.php:449

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without a 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”.

Metadata

Metadata

Assignees

Labels

Issue: Format is validGate 1 Passed. Automatic verification of issue format passedReported on 2.4.0Indicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions