Post by radi8tor » Tue Apr 03, 2018 3:06 am

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?

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by straightlight » Tue Apr 03, 2018 4:02 am

If you install the previous version of 2.6.3, does the same issue occur?

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by radi8tor » Fri Apr 06, 2018 4:45 am

Why would it help? Only 2.6.3 supports OC 3.

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by straightlight » Fri Apr 06, 2018 4:54 am

Incorrect statement since I still use 2.6.1 on a test environment and it works accordingly with OC v3.x releases.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by radi8tor » Sat Apr 07, 2018 2:56 am

Installed previous version. Non-english language files were deleted from storage/modifications/catalog folder.

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by straightlight » Sat Apr 07, 2018 3:07 am

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.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by radi8tor » Fri Apr 13, 2018 11:37 pm

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.

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by straightlight » Sat Apr 14, 2018 12:32 am

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

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by radi8tor » Sat Apr 14, 2018 2:00 am

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

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by straightlight » Sat Apr 14, 2018 2:30 am

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.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by radi8tor » Sat Apr 14, 2018 4:34 am

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.

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by straightlight » Sat Apr 14, 2018 8:02 am

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.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by radi8tor » Sat Apr 14, 2018 2:21 pm

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?

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by straightlight » Sat Apr 14, 2018 9:49 pm

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.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by radi8tor » Sun Apr 15, 2018 1:53 am

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

New member

Posts

Joined
Thu Feb 01, 2018 6:21 pm

Post by straightlight » Sun Apr 15, 2018 5:41 am

What does the pointed topic have in relations with this current topic?

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 13 guests