I'm having issues with my VQMOD running alongside with OCmod. I have used a theme with some modules in it bought from themeforest called Bossthemes.
This theme runs on OpenCart version 2.2.0.0
After having the Bossthemes with OC 2.2.0.0 running smoothly I had to install VQMOD for running 3 additional mods I need for my webshop. But installing VQMOD caused errors.
The first error I encountered is the following one.
vqmod_opencart.xml is exectuted and alters some files in the system. But somehow VQM seems to add to few ) to a file. Below a description of what happens:
1) vqmod_opencart.xml runs
2) it alters the file system_engine_action.php is changes the following:
On line 34
include_once($file);
Changes to:
include_once(\VQMod::modCheck($file));
3) Then it alters the system_engine_action.php again (from the system/storage folder)
thel file: system_storage_modification_system_engine_action.php
on line 34 (from the VQCache file vq2-system_engine_action.php)
include_once(\VQMod::modCheck($file));
changes to (line 34):
include_once(\VQMod::modCheck(modification(modification($file), modification($file)));
This is the point where the error is generated. Because the line include_once has 1 ) missing at the end. But i'm wondering why VQMod is altering this file twice. Is that nessecary?
Below the code responsible for changing the file twice (vqmod_opencart.xml):
Line 11: <add><![CDATA[$1$2(\\VQMod::modCheck($3)]]></add>
And this change also:
Line 15: <add><![CDATA[$1$2(\\VQMod::modCheck(modification($3), $3]]></add>
It would work if I change line 15 to: <add><![CDATA[$1$2(\\VQMod::modCheck(modification($3), $3)]]></add>
Adding a ) after the last $3. But this causes other files to not work. It's also strange that i have to alter a default VQMOD file in order to let this work.
Does anyone have an idea what is going wrong here? is OCmod interfering with my VQMOD?
I have tested running VQMOD without the OCMOD Cache, so a clean version. This way VQMOD is working properly.
Is it possible VQMOD overwrites OCMOD files?
It should have generated:
in file vqmod/vqcache/vq2-system_storage_modification_system_engine_action.php
VQmod does its changes after OCmod. The generated modification is still a wrong include_once, but it simply ignores the 2nd parameter.
It might be a better idea to use the Integrated VQmod instead of the Qphoria's VQmod, because the Integrated VQmod is basically just a modified OCmod with added VQmod XML syntax support, and it would only generate this:
in file system/storage/modification/system/engine/action.php.
Code: Select all
include_once(\VQMod::modCheck(modification($file), $file));
VQmod does its changes after OCmod. The generated modification is still a wrong include_once, but it simply ignores the 2nd parameter.
It might be a better idea to use the Integrated VQmod instead of the Qphoria's VQmod, because the Integrated VQmod is basically just a modified OCmod with added VQmod XML syntax support, and it would only generate this:
Code: Select all
include_once(modification($file));
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Hi JNEUHOFF,
Thanks for your input! The integrated version of VQMOD is a success! My mods are working now! thanks!
After about 16hrs of puzzling the solution is there!
- I completely removed VQMOD from my system and used JNeuhoffs integrated version!
Thanks!
Thanks for your input! The integrated version of VQMOD is a success! My mods are working now! thanks!
After about 16hrs of puzzling the solution is there!
- I completely removed VQMOD from my system and used JNeuhoffs integrated version!
Thanks!
Who is online
Users browsing this forum: No registered users and 3 guests