Page 1 of 1

After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Tue Apr 03, 2018 3:06 am
by radi8tor
After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted from .../storage/modification/catalog/language
Luckily I had a full backup of FTP contents and could easy re-upload the missing .php files.

Is it normal or is it a bug?

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Tue Apr 03, 2018 4:02 am
by straightlight
If you install the previous version of 2.6.3, does the same issue occur?

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Fri Apr 06, 2018 4:45 am
by radi8tor
Why would it help? Only 2.6.3 supports OC 3.

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Fri Apr 06, 2018 4:54 am
by straightlight
Incorrect statement since I still use 2.6.1 on a test environment and it works accordingly with OC v3.x releases.

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Sat Apr 07, 2018 2:56 am
by radi8tor
Installed previous version. Non-english language files were deleted from storage/modifications/catalog folder.

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Sat Apr 07, 2018 3:07 am
by straightlight
Disable each XML files (except vqmod_opencart.xml) in your vqmod/xml folder and reload your non-English files noticing if the same issue will keep occurring.

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Fri Apr 13, 2018 11:37 pm
by radi8tor
I have no vQmod extensions currently, only manager. I have installed vQmod because I am planning to use one extension which needs it.

By the way when installing one extension the sytem crashed with such error messages:

Code: Select all

Fatal error: Uncaught TypeError: Argument 1 passed to Twig_Extension_DTwigManager::__construct() must be an instance of Registry, array given, called in /home/www/clients/client2520/web5842/web/vqmod/vqcache/vq2-_home_www_clients_client2520_web5842_storage_modification_system_library_template_twig.php on line 48 and defined in /home/www/clients/client2520/web5842/web/system/library/template/Twig/Extension/DTwigManager.php:17 Stack trace: 
#0 /home/www/clients/client2520/web5842/web/vqmod/vqcache/vq2-_home_www_clients_client2520_web5842_storage_modification_system_library_template_twig.php(48): Twig_Extension_DTwigManager->__construct(Array) 
#1 /home/www/clients/client2520/web5842/storage/modification/system/library/template.php(57): Template\Twig->render('common/header', '0') 
#2 /home/www/clients/client2520/web5842/web/vqmod/vqcache/vq2-_home_www_clients_client2520_web5842_storage_modification_system_engine_loader.php(128): Template->render('common/header', '0') 
#3 /home/www/clients/client2520/web5842/storage/modification/ in /home/www/clients/client2520/web5842/web/system/library/template/Twig/Extension/DTwigManager.php on line 17
I could only solve it by renaming DTwigManager.php and removing twig.php files from storage folder too.

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Sat Apr 14, 2018 12:32 am
by straightlight
Ensure to have followed the cache instructions from the forum rules: viewtopic.php?f=176&p=718325#p717782 and viewtopic.php?f=176&p=718325#p718325

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Sat Apr 14, 2018 2:00 am
by radi8tor
Thanks for the hint.

I have performed:
"Manual settings and the admin is not sure of the next on how to proceed afterwards: viewtopic.php?f=202&t=201745#p713479"

vQmod is currently uninstalled so I skipped that part.

But I don't understand exactly what to do with:
"Automatic settings that has been selected and the cache no longer responds: viewtopic.php?f=202&t=202985&p=717777#p717777"
I cannot delete folders using host file manager as I have only FTP access. Should I ask my service provider to do it?

I have only such error appearing when using: admin - > extensions - > modifications - > refresh button

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Sat Apr 14, 2018 2:30 am
by straightlight
vQmod is currently uninstalled so I skipped that part.
Nowhere on my instructions that mentions anything involved specifically with the use of VQMod.
I cannot delete folders using host file manager as I have only FTP access. Should I ask my service provider to do it?
Either do it from SSH console or ask your host to do it. Although, make an entire backup of your store before proceeding.
I have only such error appearing when using: admin - > extensions - > modifications - > refresh button
No details of the error message provided.

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Sat Apr 14, 2018 4:34 am
by radi8tor
I have rebuilt storage folder from OC installer as instructed then moved manually outside public folder. For a few seconds it looked like that the error is solved, it told me that modifications reloaded but after navigating in admin menu the same error came up.

My error after reloading cache (admin - > extensions - > modifications - > refresh button):

Code: Select all

Fatal error: Uncaught TypeError: Argument 1 passed to Twig_Extension_DTwigManager::__construct() must be an instance of Registry, array given, called in /home/www/clients/client2520/web5842/storage/modification/system/library/template/twig.php on line 48 and defined in /home/www/clients/client2520/web5842/web/system/library/template/Twig/Extension/DTwigManager.php:17 Stack trace: #0 /home/www/clients/client2520/web5842/storage/modification/system/library/template/twig.php(48): Twig_Extension_DTwigManager->__construct(Array) #1 /home/www/clients/client2520/web5842/storage/modification/system/library/template.php(57): Template\Twig->render('extension/dashb...', '0') #2 /home/www/clients/client2520/web5842/storage/modification/system/engine/loader.php(128): Template->render('extension/dashb...', '0') #3 /home/www/clients/client2520/web5842/web/admin/controller/extension/dashboard/activity.php(118): Loader->view('extension/dashb...', Array) #4 /home/www/clients/client2520/web5842/storage/modification/system/engine/action.php( in /home/www/clients/client2520/web5842/web/system/library/template/Twig/Extension/DTwigManager.php on line 17
And on website:

Code: Select all

Fatal error: Uncaught TypeError: Argument 1 passed to Twig_Extension_DTwigManager::__construct() must be an instance of Registry, array given, called in /home/www/clients/client2520/web5842/storage/modification/system/library/template/twig.php on line 48 and defined in /home/www/clients/client2520/web5842/web/system/library/template/Twig/Extension/DTwigManager.php:17 Stack trace: #0 /home/www/clients/client2520/web5842/storage/modification/system/library/template/twig.php(48): Twig_Extension_DTwigManager->__construct(Array) #1 /home/www/clients/client2520/web5842/storage/modification/system/library/template.php(57): Template\Twig->render('zemez810/templa...', '0') #2 /home/www/clients/client2520/web5842/storage/modification/system/engine/loader.php(128): Template->render('zemez810/templa...', '0') #3 /home/www/clients/client2520/web5842/web/catalog/controller/common/column_left.php(72): Loader->view('common/column_l...', Array) #4 /home/www/clients/client2520/web5842/storage/modification/system/engine/action.php(79): Cont in /home/www/clients/client2520/web5842/web/system/library/template/Twig/Extension/DTwigManager.php on line 17
Only after renaming
/web/system/library/template/Twig/Extension/DTwigManager.php
and
/storage/modification/system/library/template/twig.php
can access site.

I am clueless.

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Sat Apr 14, 2018 8:02 am
by straightlight
called in /home/www/clients/client2520/web5842/storage/modification/system/library/template/twig.php
This error is, however, caused by an installed extension. By default, the modification folder does not show in the error trigger.

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Sat Apr 14, 2018 2:21 pm
by radi8tor
Yes this extension was installed recently: https://www.opencart.com/index.php?rout ... load_id=55
Their support was contacted immediately.

I see this part in oc_modification table entry which is related to my error:

Code: Select all

    <file path="system/library/template/twig.php">
        <operation error="skip" info="">
            <search><![CDATA[private $data = array();]]></search>
            <add position="after"><![CDATA[
            //d_twig_manager.xml
            private $registry = array();
            ]]></add>
        </operation>
        <operation error="skip" info="">
            <search><![CDATA[public function __construct() {]]></search>
            <add position="replace"><![CDATA[
            //d_twig_manager.xml
            public function __construct($registry) {
            ]]></add>
        </operation>
        <operation error="skip" info="">
            <search><![CDATA[\Twig_Autoloader::register();]]></search>
            <add position="after"><![CDATA[
            //d_twig_manager.xml
            $this->registry = $registry;
            ]]></add>
        </operation>
        <operation error="skip" info="">
            <search><![CDATA[$this->twig = new \Twig_Environment($loader, $config);]]></search>
            <add position="after"><![CDATA[
            //d_twig_manager.xml
            $this->twig->addExtension(new \Twig_Extension_DTwigManager($this->registry));
            ]]></add>
        </operation>
    </file>
Do you have any clue how this can be fixed?

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Sat Apr 14, 2018 9:49 pm
by straightlight
This extension intends to add the OC registry into the TWIG engine. This tactic is unnecessary since the TWIG engine can already be called from OC. If you downloaded this extension from a publisher, contact the extension developer to resolved this issue.

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Sun Apr 15, 2018 1:53 am
by radi8tor
Thanks I already did that 1 week ago but it is not resolved.
If they cannot help me resolve it soon I will request a refund.

Can you help me further in this topic with filtering? viewtopic.php?f=202&t=203470

Re: After installed vQmod 2.6.3 on version 3.0.2.0 my non-english language files were deleted

Posted: Sun Apr 15, 2018 5:41 am
by straightlight
What does the pointed topic have in relations with this current topic?