absailesh / vqmod

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

VQMod admin paths with OpenCart on Windows Server 2008 #166

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Install VQMod on Windows Server 2008
2. Access OpenCart admin site
3.

What is the expected output? What do you see instead?
I expect to see my site admin (with new extensions in admin menu) but I see 
this error (even before adding in any extension XML files): 

VQMod::dirCheck - CANNOT CREATE "vqmod/logs/" DIRECTORYVQModLog::__destruct - 
LOG FILE "vqmod/logs/6_Sat.log" COULD NOT BE WRITTEN

The folder exists on my site root folder, but it looks like vqmod is expecting 
it in the admin folder.

vQmod Version: 2.4.1 (OpenCart version 1.5.6.1
Server Operating System: Windows 2008

Please provide any additional information below.

Thinking this was an issue with my install, I have explained the full process, 
with debug outputs, at http://forum.opencart.com/viewtopic.php?f=20&t=125939

I have traced this error through myself to the dirCheck method. By removing the 
calls to it (as I know the folders exists - and only for testing/debugging 
purposes) I get my admin loading, but once I add my extension XML files, 
OpenCart doesn't add the items to the menus, because it appears to be looking 
in /admin/vqmod/xml/ instead of /vqmod/xml/

I should note that, when I load the front end of my website, files are created 
in the vqcache so it appears that my install of vqmod is correct, as per the 
instructions at least.

Thanks,

Steven

Original issue reported on code.google.com by stevenga...@hotmail.com on 1 Jun 2014 at 7:36

GoogleCodeExporter commented 9 years ago
Check that the admin index.php has this line, exactly as the following
require_once('../vqmod/vqmod.php');

Original comment by DJG6...@gmail.com on 1 Jun 2014 at 7:40

GoogleCodeExporter commented 9 years ago
It does.

Original comment by stevenga...@hotmail.com on 1 Jun 2014 at 7:44

GoogleCodeExporter commented 9 years ago
in vqmod.php, find this line
    public static $logFolder = 'vqmod/logs/';
and change the path to the full path to the log folder. This should work just 
fine

Original comment by DJG6...@gmail.com on 1 Jun 2014 at 7:47

GoogleCodeExporter commented 9 years ago
This works in that it gets my admin running, but when I then try to see my 
extensions they don't appear in the appropriate menu.

I changed all the paths to have full path, and I also changed the file name="" 
parts in the XML files to contain the full path, but to no avail.

Original comment by stevenga...@hotmail.com on 1 Jun 2014 at 7:57

GoogleCodeExporter commented 9 years ago
Those should all work without full paths, and in fact require it to be so for 
vQmod to work. This sounds like an obscure windows issue to be honest, some 
kind of bad configuration. vQmod was tested on a number of windows machines and 
works just fine - though I don't have a win 2008 server to test on personally

Original comment by DJG6...@gmail.com on 1 Jun 2014 at 7:59

GoogleCodeExporter commented 9 years ago
Well, I've changed all the paths to full paths, including the startup.php in 
the vqmod_opencart.xml and it now seems to work fine.

This is a workable enough fix for me for the meantime, but will prove a pain if 
I need to include any more extensions, or upgrade the site. 

Thanks for you help.

Original comment by stevenga...@hotmail.com on 1 Jun 2014 at 8:07