Hi again:
I'm still stopped here with vQmod because I can't get it to work. I read the 15 pages here at this forum post and I probe every thing without success :'( The only thing that I can think is that vQmod is not initilized. So how can I check if it's initialized or not? I write a small line of code inside init() function looking for some answers wich is: but the page never stop or break so I'm thinking then never goes out there. Also no errors, no cache files or something else to give me a clue. Any help please? ??? I really need this working because is AMAZING !!!! ;)
I'm still stopped here with vQmod because I can't get it to work. I read the 15 pages here at this forum post and I probe every thing without success :'( The only thing that I can think is that vQmod is not initilized. So how can I check if it's initialized or not? I write a small line of code inside init() function looking for some answers wich is:
Code: Select all
die($this->vqCachePath);
Yes, that's what I said. In my Linux hosting under vcache/ folder exists a lot of vcache*.php files and also I can see under /vqmod a file named vqmod.log wich make me think that all is working but why It doesn't work locally in my dev PC? Is to upset make changes and upload every time just for see some changes.
Cheers and thx for ypur support
Cheers and thx for ypur support
I think you have some problems with your write access permissions for the vqcache folder and your vqmod.log on your local PC. Have you checked the error logs, e.g. OpenCart's system/log/error.txt or your XAMPP error_log?
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Hmm, according to your screenshots your vqcache has only full write access for administrator users, and in general it's readonly access. I don't think XAMPP runs under an adminstrator user. I am not a Windows user, but I think that this is the reason for your problem on Windows 7.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Well this isn't the problem :( I search for files inside /system/cache and PHP, Apache or XAMPP can write there without problems and the permissions are set equal in both folders I mean: /system/cache and /vqmod/vqcache. Looking inside system/library/cache.php I notice something really interesting and this maybe could be the solution. Here goes, see this function:
It uses the GLOBAL variable DIR_CACHE wich points to, in my case,
Now seeing inside vqmod.php I can see this piece of code in the constructor:
Wich means that routes are treated as:
Could this be the problem or not? I really known't where to find I'm exhaust looking for a solution without success. Any help will be well appreciated :)
Code: Select all
public function set($key, $value) {
$this->delete($key);
$file = DIR_CACHE . 'cache.' . $key . '.' . (time() + $this->expire);
$handle = fopen($file, 'w');
fwrite($handle, serialize($value));
fclose($handle);
}
Code: Select all
define('DIR_CACHE', 'd:\Webserver\htdocs\oc\system/cache/');
Code: Select all
$this->cwd = str_replace("\\", "/", dirname(dirname(realpath(__FILE__))));
Code: Select all
d:/Webserver/htdocs/oc/system/cache/
Like I said I cant tell without looking at it. I've never heard of this issue. I do all my developing with xampp on Win7 so I would have seen this issue if it was related to slashes. The code itself creates a vqmod.log file as soon as it is instantiated. I can let you try the upcoming unreleased version and see if that helps, but it seems more like the code just isn't instantiating for some reason
Hi, it's me again. In /admin/view/template/common/header.tpl appears this code:
For remove it using vQmod I wrote this:
But doesn't work. How I can remove a piece of code starting on line searched and ending some lines (pe 3 or 4) after?
Code: Select all
<script type="text/javascript">
//-----------------------------------------
// Confirm Actions (delete, uninstall)
//-----------------------------------------
$(document).ready(function(){
// Confirm Delete
$('#form').submit(function(){
if ($(this).attr('action').indexOf('delete',1) != -1) {
if (!confirm ('<?php echo $text_confirm; ?>')) {
return false;
}
}
});
// Confirm Uninstall
$('a').click(function(){
if ($(this).attr('href') != null && $(this).attr('href').indexOf('uninstall',1) != -1) {
if (!confirm ('<?php echo $text_confirm; ?>')) {
return false;
}
}
});
});
</script>
Code: Select all
<operation>
<search position="after" index="1">
<![CDATA[
<script type="text/javascript">
]]>
</search>
<add trim="true" offset="24">
<![CDATA[ ]]>
</add>
</operation>
Who is online
Users browsing this forum: No registered users and 3 guests