Post by Qphoria » Wed Feb 16, 2011 8:19 am

The only thing I saw was you had the vqmod initialized higher up than the readme states.. but that shouldn't make any difference as I don't use any of the config data anyway. But without ftp access I can't be sure.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by reynierpm » Wed Feb 16, 2011 9:29 am

As you notice before in the snapshoot I'm using Windows 7 x64 and XAMPP, can this be the problem? I don't know what I'm doing wrong.

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm

Post by Qphoria » Wed Feb 16, 2011 9:38 am

No.. i use win7 x64 and xampp too

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by reynierpm » Wed Feb 16, 2011 9:43 am

I can send (by email PM your address) you all my code so if you can you can take a closer look if you have time of course, I'm stopped because I need to change a lot of things and can't do this in core files. What you think?

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm

Post by Qphoria » Thu Feb 17, 2011 9:00 am

The index file is all that changes and I've seen that. I can't tell what the issue is by the files alone

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by reynierpm » Thu Feb 17, 2011 9:09 am

Well, in my hosting (Linux) works fine but in my PC no :( I can't change any code because I never see the changes until I upload the code so I don't know what's happen here.

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm

Post by reynierpm » Sun Feb 20, 2011 12:15 am

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:

Code: Select all

die($this->vqCachePath);
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 !!!! ;)

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm

Post by Qphoria » Sun Feb 20, 2011 2:28 am

Did you say it works fine on your linux webhost install.. just not on your local windows install?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by reynierpm » Sun Feb 20, 2011 4:26 am

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

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm

Post by JNeuhoff » Sun Feb 20, 2011 6:23 am

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


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by reynierpm » Sun Feb 20, 2011 6:55 am

See the attached images, I set permissions to full in every user in the PC ???

Attachments

Untitled1.jpg

Untitled1.jpg (70.92 KiB) Viewed 4034 times

Untitled.jpg

Untitled.jpg (55.98 KiB) Viewed 4034 times


User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm

Post by JNeuhoff » Sun Feb 20, 2011 7:05 am

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


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by reynierpm » Tue Feb 22, 2011 8:29 pm

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:

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);
}
It uses the GLOBAL variable DIR_CACHE wich points to, in my case,

Code: Select all

define('DIR_CACHE', 'd:\Webserver\htdocs\oc\system/cache/');
Now seeing inside vqmod.php I can see this piece of code in the constructor:

Code: Select all

$this->cwd = str_replace("\\", "/", dirname(dirname(realpath(__FILE__))));
Wich means that routes are treated as:

Code: Select all

d:/Webserver/htdocs/oc/system/cache/
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 :)

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm

Post by Qphoria » Tue Feb 22, 2011 8:52 pm

shouldn't be. Windows can handle forward slash routes

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by reynierpm » Tue Feb 22, 2011 8:57 pm

So ... any help QPhoria? I not know where to search for the problem and I really need this working because I depend on it. I friend either have the same issue in his Windows 7

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm

Post by Qphoria » Tue Feb 22, 2011 11:47 pm

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by reynierpm » Tue Feb 22, 2011 11:58 pm

Perfect, can you PM the upcoming release in order to testing? Or just tell me where I can find it :)

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm

Post by Qphoria » Wed Feb 23, 2011 12:50 am

Apparently the new version fixed the problem with reynierpm
I'll work on getting a final version released asap

Q

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by reynierpm » Wed Feb 23, 2011 12:55 am

Yes, you rocks Qphoria thx a lot

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm

Post by reynierpm » Wed Feb 23, 2011 2:32 am

Hi, it's me again. In /admin/view/template/common/header.tpl appears this code:

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>
For remove it using vQmod I wrote this:

Code: Select all

<operation>
 <search position="after" index="1">
  <![CDATA[
   <script type="text/javascript">
  ]]>
 </search>
 <add trim="true" offset="24">
   <![CDATA[ ]]>
 </add>
</operation>
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?

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 9:51 pm
Who is online

Users browsing this forum: No registered users and 2 guests