deepakvishwakarma / vqmod

Automatically exported from code.google.com/p/vqmod
0 stars 0 forks source link

Notice: Undefined variable: vqmod in F:\xampp\htdocs\opencart_test\admin\index.php on line 17 #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
NOTE THAT THIS IS FOR VQMOD ENGINE ERRORS ONLY. FOR GENERAL ERRORS FROM
MODIFICATIONS CONTACT YOUR DEVELOPER

What steps will reproduce the problem?
1.Install OpenCart 1.5.5.1
2.Install VqMod 2.3.2
3.Open Opencart admin or shop home page

please note this is a first-time install, no modifications made.. just the 
basic setup to hook up with the db.

What is the expected output? What do you see instead?
I expect to see the OpenCart Admin page or the shop home page (depending on 
which url I'm loading), instead I see the following error in both cases

Notice: Undefined variable: vqmod in 
F:\xampp\htdocs\opencart_test\admin\index.php on line 17

Fatal error: Call to a member function modCheck() on a non-object in 
F:\xampp\htdocs\opencart_test\admin\index.php on line 17

(for the shop just take admin off the uri above)

this happen after VqMOD was installed and confirmed via 
http://localhost/opencart_test/vqmod/install

vQmod Version: 2.3.2
Server Operating System: Windows 8 with XAMPP

Please provide any additional information below.
Checking the index.php files I've found that the method $vqmod->modCheck is 
called before creating the object $vqmod. 

The following code is wrong and the Modification block must be swapped with the 
VirtualQMOD block and everything works.

16.// Modification
17.require_once($vqmod->modCheck(DIR_SYSTEM . 'engine/modification.php'));
18.$modification = new Modification();
19.
20.//VirtualQMOD
21.require_once('../vqmod/vqmod.php');
22.$vqmod = new VQMod();

Original issue reported on code.google.com by ping...@gmail.com on 3 Jun 2013 at 2:06

GoogleCodeExporter commented 9 years ago
You are using the latest version of OpenCart from the repository, not an 
official download hence this error

Original comment by DJG6...@gmail.com on 3 Jun 2013 at 2:13

GoogleCodeExporter commented 9 years ago
Thanks for the fast response. I've downloaded the official version from the 
opencart website (not the rep) and it works just fine. you can close this 
ticket :)

Original comment by ping...@gmail.com on 3 Jun 2013 at 2:22