Comments (7)
[deleted comment]
from vqmod.
[deleted comment]
from vqmod.
Can you provide actual path's (editing out sensitive data but still showing the
relevant paths). The path (both the one you pass and the current vQmod path) is
passed through realpath to resolve the sym links by default, therefore if it's
not working them out, then it sounds like
A) there's an issue with the symlink or
B) realpath isn't working on your system for some reason
C) The directory containing the vQmod directory isn't resolving for some reason
As you've pointed out, the path variable can be passed to the class, however
vQmod isn't intended JUST for OpenCart so this "fix" would only help for an
opencart install, and considering this is the first report of the bug, it's
likely to be your system that is causing it
Original comment by [email protected]
on 28 Dec 2011 at 5:54
from vqmod.
Here they are.
On my test machine I'm using Windows 7 + HardLinkShellExt. My main store is
located at http://localhost/oc1, the second store at http://localhost/oc2. oc2
is an NTFS junction pointing to oc1 directory.
$vqmod->modCheck() resolves startup.php path in oc1 store to:
C:\ServerRoot\oc1\vqmod\vqcache\vq2-system_startup.php, whereas in oc2 store
to: C:\ServerRoot\oc1\system\startup.php.
$vqmod->_cwd is set in constructor to E:\ServerRoot\oc1 and E:\ServerRoot\oc2
for oc1 and oc2 stores respectively.
The problem lies in the following line of modCheck() method:
$stripped_filename = preg_replace('~^' . preg_quote($this->getCwd(), '~') .
'~', '', $sourcePath);
$sourcePath uses DIR_SYSTEM taken from config.php, but $vqmod->_cwd does not.
OpenCart's root path when not given explicitly is set automatically to
dirname(dirname(__FILE__)).
That's why setting vqmod path to DIR_SYSTEM . '/..' fixes the problem.
Original comment by [email protected]
on 28 Dec 2011 at 6:24
from vqmod.
This sounds to me like it's not understanding the symlink in realpath. Where is
HardLinkShellExt from and is it that that creates these sym links? If so, then
it's going to be down to that that it's not resolving them correctly, since
php's realpath will not be able to handle it
Original comment by [email protected]
on 28 Dec 2011 at 9:13
from vqmod.
HardlinkShellExt is a nice tool that, among others, can create symlinks (or
junctions as they are called when directories are involved) under NTFS.
Yes you're right, PHP's realpath() in Windows cannot resolve NTFS symlinks.
That's a shame.
Original comment by [email protected]
on 29 Dec 2011 at 12:17
from vqmod.
Original comment by [email protected]
on 29 Dec 2011 at 3:33
- Changed state: Invalid
from vqmod.
Related Issues (20)
- VQMod admin paths with OpenCart on Windows Server 2008 HOT 6
- Opencart generating empty cache files. HOT 6
- VQMod install returns blank store front HOT 1
- vqmode in opencart HOT 1
- Administrator index.php not writeable HOT 1
- Opencart VQmod fatal error when viewing orders. HOT 3
- VQMOD won't install. HOT 2
- vqmod is not working HOT 2
- Session error and vqmod is not working HOT 1
- error HOT 2
- VQMod does not appear to be properly generating vqcache files HOT 4
- Cant access store because of unexpected $end at vq2-catalog_view_theme_default_template_common_header.tpl on line 337 HOT 1
- Cannot install vqmod 2.5.0 opencart gives permissions issues but vqmod 2.4.1 does not. HOT 1
- New install of vqmod 2.5.0 for open cart 1.5.6.4
- VQMOD - missing files
- Fatal Error
- Empty vqcache on addon domain HOT 2
- I Installed 2 level header menu module and suddenly my site went down displaying an erorr INTERNAL SERVER ERROR, misconfigure kidnly contact your administartor
- Issue with loading model files
- VQ cache is giving errors on various pages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vqmod.