Post by Django29 » Fri Jun 19, 2015 4:36 am

Hi
I have the last VQmod on Opencart 2.0.3.1
An Opencart extension, Delivery date Wizard, doesn't work with VQmod.
http://www.opencart.com/index.php?route ... load_id=41

The developer said :
In your case, the mods work ok, but for an unknown reason are processed twice and therefore the same code is added twice t the VqMod cache.
As soon as I uncomment the xml file, deliverydateswizard.xml, I get this if I want to access to the admin :
Fatal error: Cannot redeclare ModelSaleOrder::loadDDWModel() in /home/myaccount/public_html/mysite/vqmod/vqcache/vq2-vqmod_vqcache_vq2-admin_model_sale_order.php on line 173

This line 173 is : public function loadDDWModel()
And it seems actually to be loaded twice :

Code: Select all

			public function loadDDWModel()
				{
					if (!isset($this->ddwModel))
                    	if (!$this->ddwModel instanceof DDWModel) {
                        	include_once("../system/library/deliverydateswizard/bootstrap.php");
                            $this->load->model('deliverydateswizard/deliverydateswizard');
                            $this->ddwModel = $this->model_deliverydateswizard_deliverydateswizard;
						}
				}
            

				
				public function loadDDWModel()
				{
					if (!isset($this->ddwModel))
                    	if (!$this->ddwModel instanceof DDWModel) {
                        	include_once("../system/library/deliverydateswizard/bootstrap.php");
                            $this->load->model('deliverydateswizard/deliverydateswizard');
                            $this->ddwModel = $this->model_deliverydateswizard_deliverydateswizard;
						}
				}
vcache empty => same problem.

But no problem in frontend.

Is there somebody to help me to find a solution ?

New member

Posts

Joined
Fri May 16, 2014 4:40 pm

Post by IP_CAM » Fri Jun 19, 2015 7:50 am

but it seems to be a commercial contribution, so, how should anyone know,
exept for the fellow, creating it !?
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Django29 » Fri Jun 19, 2015 3:16 pm

Hi ernie
We don't have anything to create. The developer says the problem doesn't come from his module but from (my) VQmod.

So, I was asking what/how/where can I repare VQmod ?

And, for ex, I don't know if it's a good idea to uninstall VQmod and re-install it, as there are other extensions working with it. As I don't know how to uninstall it cleanly.

New member

Posts

Joined
Fri May 16, 2014 4:40 pm

Post by Django29 » Fri Jun 19, 2015 8:25 pm

As I don't find any solution to make this "Delivery date wizard" module working, I removed it completely (files and database), then I re-installed it.

This time these lines in vqcache/vq2-vqmod_vqcache_vq2-admin_model_sale_order.php, are no more doubled :

Code: Select all

public function loadDDWModel()
				{
					if (!isset($this->ddwModel))
                    	if (!$this->ddwModel instanceof DDWModel) {
                        	include_once("../system/library/deliverydateswizard/bootstrap.php");
                            $this->load->model('deliverydateswizard/deliverydateswizard');
                            $this->ddwModel = $this->model_deliverydateswizard_deliverydateswizard;
						}
				}
BUT some fields in this module admin don't work, and when I save I'm immediately disconnected.

So, for now, I don't know if the problem comes from VQmod or this module.

New member

Posts

Joined
Fri May 16, 2014 4:40 pm
Who is online

Users browsing this forum: No registered users and 10 guests