在实践中,我试图改变其他文件中的某些内容,但即便是这个简单的例子也行不通。我一直在OpenCart 2.6.1
上使用vQmod版2.2.0
。
public static $_vqversion = '2.6.1';
其他信息:
Linux version 3.19.0-61-generic (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) )
我已经创建了另一个xml
文件来执行我想要它做的事情(我已经修改了一些tpl
文件,所以我知道可以用它做的事情)
这是我的问题。
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>do something</id>
<version>1.0.0</version>
<vqmver>2.3.0</vqmver>
<author>Me (my@gmail.com)</author>
<file name="index.php">
<operation error="skip">
<search position="before"><![CDATA[
if (is_file('config.php')) {
]]></search>
<add><![CDATA[
echo "This doesn't work.";
]]></add>
</operation>
</file>
</modification>
我已经尝试过的事情:
sudo chmod 777 -R
foldername
)<?xml version="1.0" encoding="UTF-8"?>
请记住,我已经尝试更改系统/供应商/中的其他一些php文件...我没有在vQmod管理器中获取任何错误日志,但它仍然无法正常工作或创建缓存文件。 vQmod管理员没有检测到任何错误。
任何帮助将不胜感激
安装源:https://github.com/vqmod/vqmod/releases/tag/v2.6.1-opencart 我已经从vqmod-2.6.1-opencart.zip
安装了它日志文件(我已经应用了错误=&#34; log&#34;到vqmod / xml文件夹中的所有xmls):
---------- Date: 2016-06-23 06:44:42 ~ IP : 127.0.0.1 ----------
REQUEST URI : /
MOD DETAILS:
modFile : /path/to/devsite/vqmod/xml/vqmod_opencart.xml
id : VQMOD CORE FOR OPENCART - DO NOT REMOVE
version : 1.4.x and above
vqmver : 2.6.0
author : vqmod.com
File Name : system/engine/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/engine/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/engine/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/engine/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/engine/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/engine/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/engine/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/engine/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/engine/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/engine/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/engine/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/engine/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/engine/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/engine/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/library/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
File Name : system/library/*.php(1)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()modification\(([^)]+)~
File Name : system/library/template/*.php(0)
VQModObject::applyMod - SEARCH NOT FOUND (SKIPPED): ~(require|include)(_once)?\((?!VQMod::modCheck\()(?!modification\()([^)]+)~
----------------------------------------------------------------------