Содержание
- vqmod DOMDocument missing in php5.6 issue #5112
- Comments
- Footer
- DOMDocument отсутствует в php5.6
- Решение
- Другие решения
vqmod DOMDocument missing in php5.6 issue #5112
I’m attempting to set up a store using opencart which i am honestly very new to. I bought a theme and for some reason the team uses vqmod. I was able to install the vqmod using:
and i get this response.
Now, when i navigate to
An error pops up saying
The full error message is missing
VQMod::bootup — ERROR — YOU NEED THE PHP «DOMDocument» EXTENSION INSTALLED TO USE VQMod
After a little research, i figured i had to install the php5.6-xml and php7.0-xml which i have.
However the error is still showing.
I went into the vqmod code and noticed the section raising the error is this.
which means there’s a DOMDocument class i’m missing.
However, i have tried everything i’ve seen online. From installing php-xml, purging php, installing php-dom,restarting apache2, checking phpinfo.
None of these seem to solve the issue.
How do i get the DOMDocument class?
The text was updated successfully, but these errors were encountered:
First off, this is not really an opencart coding issue which is what this posting forum is strictly here for. Your theme was created by a third party that you bought it from and VQmod is additionally an independent extension handler also created by a third party. When you go and buy OC themes, they are basically modified versions of opencart files, and furthermore, they can come bundled with other third party extensions. The only suggestion I can offer you is to either contact the theme developer in hopes of maybe seeking advice from them (most theme developers should offer some sort of a limited-time support for a paid theme right after it’s bought — right?), or contact your hosting provider rather than further dabbling with php settings that may damage the functionality of your website. Again, this has nothing to do with the original opencart coding itself, since opencart didn’t create your theme nor your extensions. Thus, it can’t be deemed a coding issue. I hope my explanation makes sense to you, and I hope you seek out the appropriate forums/channels to get the support you are seeking.
@Olamyy if you install fresh Opencart, without theme — and add/install vqmod, does the original opencart with default theme works?
You must have libxml installed, to use VQmod, check this one: http://stackoverflow.com/questions/3403407/enabling-domxml-in-php
© 2023 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник
DOMDocument отсутствует в php5.6
Я пытаюсь создать магазин, используя opencart, к которому я, честно говоря, очень новичок.
Я купил тему, и почему-то команда использует vqmod.
Я смог установить vqmod используя:
локальный / MyStore / vqmod / установки
и я получаю этот ответ.
Теперь, когда я перехожу к
Появляется ошибка, говорящая
Полное сообщение об ошибке
После небольшого исследования я решил установить php5.6-xml и php7.0-xml, которые у меня есть.
Однако ошибка все еще показывает.
Я пошел в код vqmod и заметил раздел, поднимающий ошибку это.
это означает, что есть класс DOMDocument, который я пропускаю.
Тем не менее, я перепробовал все, что видел в Интернете.
От установки php-xml, очистки php, установки php-dom, перезапуска apache2, проверки phpinfo.
Ни один из них, кажется, не решает проблему.
Как я могу получить класс DOMDocument?
Решение
DOMDocument является частью PHP Расширение DOM вместе с libxml, которые включены по умолчанию, следовательно, уже должны быть частью PHP. Вам может понадобиться перекомпилировать PHP.
Другие решения
Как упомянуто JBES — apt-get install php5.6-xml
работал на меня.
VQMod :: bootup — ОШИБКА — ВАМ НУЖНО РАСШИРЕНИЕ PHP «DOMDocument», УСТАНОВЛЕННОЕ ДЛЯ ИСПОЛЬЗОВАНИЯ VQMod
Лучшее решение, которое мне помогло, это написать в PHP.ini:
Это решит проблему 🙂
Я решил эту проблему на PHP 7.2.10-0ubuntu0.18.04.1 с помощью следующих команд.
Источник
Hello;
I try switch to litespeed I get this error web page display.
VQMod::bootup — ERROR — YOU NEED THE PHP «DOMDocument» EXTENSION INSTALLED TO USE VQMod
Please help.
Long
Guest
Hi,
The error message basically speaks for itself.
The PHP «DOMDocument» EXTENSION is missing.
You need to install this extension to make the site work.
Which OS are you using? Are you using lsphp?
You may need to install this extension from source.
Long
Guest
If you are using lsphp, you may try to install lsphpXX-xml (XX is the lsphp main version, e.g., 56, 55, etc) package to see whether it got your issue resolved.
Hello;
I use Centos 7.2 WHM and Opencart Switch Apache no problem all is ok, but I can switch litespeed, web page not display and get this error.
VQMod::bootup — ERROR — YOU NEED THE PHP «DOMDocument» EXTENSION INSTALLED TO USE VQMod
php -i | grep DOM
DOM/XML => enabled
DOM/XML API Version => 20031129
Please help this.
PHP 5.5.33 (cli) (built: Mar 22 2016 19:31:52)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd.
Long
Guest
You have to build matching php for lsws.
Switch to apache first, make sure it’s working as expected,
and at the same time go to lsws WHM plugin, click «Build Matching PHP».
Make sure the php build is successful, and then switch to lsws.
Я пытаюсь создать магазин с помощью opencart, в котором я, честно говоря, очень новичок. Я купил тему и почему-то команда использует vqmod. Мне удалось установить vqmod, используя:
локальный / mystore / vqmod / установить
И я получаю этот ответ.
VQMOD УЖЕ УСТАНОВЛЕН!
Теперь, когда я перехожу к
localhost / mystore
Появляется сообщение об ошибке
DomDocument
Полное сообщение об ошибке
VQMod::bootup - ERROR - YOU NEED THE PHP "DOMDocument" EXTENSION INSTALLED TO USE VQMod
После небольшого исследования я решил, что мне нужно установить php5.6-xml и php7.0-xml, которые у меня есть.
Однако ошибка все еще отображается.
Я вошел в код vqmod и заметил, что ошибка возникает в следующем разделе.
if(!class_exists('DOMDocument')) {
die('VQMod::bootup - ERROR - YOU NEED THE PHP "DOMDocument" EXTENSION INSTALLED TO USE VQMod');
}
Это означает, что мне не хватает класса DOMDocument.
Однако я перепробовал все, что видел в сети. От установки php-xml, очистки php, установки php-dom, перезапуска apache2, проверки phpinfo.
Кажется, что все это не решает проблему.
Как мне получить класс DOMDocument?
4 ответа
DOMDocument является частью PHP расширение DOM вместе с libxml, которые включены по умолчанию, следовательно, уже должны быть частью PHP. Возможно, вам потребуется перекомпилировать PHP.
0
JBES
3 Янв 2017 в 09:12
Я решил эту проблему на PHP 7.2.10-0ubuntu0.18.04.1 с помощью следующих команд.
sudo apt-get install php7.2-xml
sudo apt-get install php7.2-mbstring
2
Nanhe Kumar
5 Фев 2019 в 16:21
Как упоминалось в JBES, у меня работал apt-get install php5.6-xml.
0
Karan Ahuja
17 Май 2017 в 18:41
VQMod :: bootup — ОШИБКА — ДЛЯ ИСПОЛЬЗОВАНИЯ VQMod НЕОБХОДИМО УСТАНОВЛЕННОЕ РАСШИРЕНИЕ PHP «DOMDocument»
Лучшее решение, которое мне помогло, — написать в PHP.ini:
extension=dom.so
Это решит проблему
0
Sergey Glotov
7 Июн 2017 в 13:08