Ahh, I see. Thank you for clarifying. I might test if there are any speed differences later.rph wrote:Vqcache files are always used. useCache just controls whether they're generated every time or just once. VQMM doesn't allow you to set useCache status because you need to modify vqmod.php or index.php to do that.
Been experimenting with Opencart and now have a dozen or so VQMods - having to go back and edit them because I'd made a few foolish mistakes (e.g. editing an INSERT statement instead of just getting the insertid and running a new query, so it instantly breaks when the next VQMod comes along and tries to edit the same INSERT statement). While I've been fixing these, have realised that it'd be useful to have a quick reference for what files are affected by any given VQMod.
To this end, have hacked up the following VQMod for VQMod Manager and posting it in case it's of use to anyone else:
Code: Select all
<modification>
<id><![CDATA[vqmod_man_mouseover]]></id>
<version><![CDATA[1.0]]></version>
<vqmver><![CDATA[2.1.7]]></vqmver>
<author><![CDATA[Ogun]]></author>
<file name="admin/controller/module/vqmod_manager.php">
<operation>
<search position="after"><![CDATA[
$xml = simplexml_load_file($vqmod);
]]></search>
<add><![CDATA[
foreach($xml->file as $xml_value) {
$xml_value = get_object_vars($xml_value);
$this->data['vqmod_targets'][$vqmod][] = $xml_value['@attributes']['name'];
}
]]></add>
</operation>
</file>
<file name="admin/view/template/module/vqmod_manager.tpl">
<operation>
<search position="replace"><![CDATA[
<?php foreach ($vqmods as $vqmod) { ?>
]]></search>
<add><![CDATA[
<?php foreach ($vqmods as $vqmod_key => $vqmod) { ?>
]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
<td class="left"><strong><?php echo $vqmod['file_name']; ?></strong><br /><div style="font-size:0.9em; margin:3px 0px;"><?php echo $vqmod['id']; ?></div></td>
]]></search>
<add><![CDATA[
<td class="left"><strong title="<?php echo implode("\r\n",$vqmod_targets[$vqmod_key]); ?>"><?php echo $vqmod['file_name']; ?></strong><br /><div style="font-size:0.9em; margin:3px 0px;"><?php echo $vqmod['id']; ?></div></td>
]]></add>
</operation>
</file>
</modification>
- Confirms that VQMod is properly installed and integrated with OpenCart; will give users an idea how to fix it if not
- New horizontal tab layout
- vqcache files can be download to assist developer troubleshooting
- Show VQMod logging, useCache, and cacheTime settings
- Disabled VQMod scripts are highlighted
- VQMod script table now has zebra stripes for easy viewing
- The error log tab is highlighted if it's not empty
- Inline CSS has been replaced with a proper stylesheet
- Display an error if a pre-existing VQMod script has malformed XML (gets rid of "Warning: simplexml_load_file()" error)
-Ryan
Works like a charm.
Please find attached the Dutch language files
PM me if there are issues with these files.
Attachments
Dutch language for vqmod manager v1.0.1
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
The reason I ask is because of the new cacheTime feature.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@stores.com.au and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
"ZipArchive must be installed for VQMod Manager to work properly!"
Please check the attached screenshot.
Anyone can tell me how to rectify this?
Attachments
Screenshot - Clipboard01.jpg (144.57 KiB) Viewed 6015 times
latest version (2.0.beta.4) of VQMod-Manager use GLOB_BRACE (admin controller, line 111).
Because this flag is not supported on all systems (see http://at2.php.net/manual/en/function.glob.php) it should be disabled (like the OC system did 1 year ago), otherwise this error is displayed and no files are visible:
And at line 17 this should be therefore adopted also.Notice: Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE' in ../admin/controller/module/vqmod_manager.php on line 111Warning: glob() expects parameter 2 to be long, string given in ../admin/controller/module/vqmod_manager.php on line 111
From:
Code: Select all
$this->vqmod_script_files = substr_replace(DIR_SYSTEM, '/vqmod/xml/*.{xml,xml_}', -8);
Code: Select all
$this->vqmod_script_files = substr_replace(DIR_SYSTEM, '/vqmod/xml/*.xm*', -8);
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Beta requires ZipArchive. Without it you can't do any of the backup features. Just use VQMM 1.0. It doesn't enforce the requirement.Nemesisforever wrote:After I installed VQmod Manager and updated permissions I get the following error after I installed under Modules>VQMod Manager
"ZipArchive must be installed for VQMod Manager to work properly!"
-Ryan
@MrTech I meant no offence by my comment. Sorry if it was taken that way.MrTech wrote:@timparnell - Stick to your principles and not change it? Ouch, it's not like I was holding a gun to his head, I asked a question out of ignorance. I learned something so it was totally worth losing some brownie points with rph because I wasted a few minutes of his time having to provide this oc_noob an answer instead of coding the next great thing!
Totally agree with this.....MrTech wrote:This should be added to a list of 2 mods you can't live without. Firebug and VQMod Manager, there I said it.
tim@pointreddesign.co.uk | http://www.pointreddesign.co.uk
I am having this error, and I am not able to resolve:
Notice: Undefined variable: vqmod in /data/24/2/155/98/2644913/user/2902601/htdocs/vqmod/vqcache/vq2-system_startup.php on line 77
Fatal error: Call to a member function modCheck() on a non-object in /data/24/2/155/98/2644913/user/2902601/htdocs/vqmod/vqcache/vq2-system_startup.php on line 77
/data/24/2/155/98/2644913/user/2902601/ This is the path for my host so it can be disregarded.
I get these error every time I want to do any modifications to any script for example a delete or uninstall returns this error.
I reinstalled a fresh version of vQmod over the existing as suggested in one of the forums I scoured. This did not resolve the issue. Any guidance is greatly appreciated. Please let me know if there is a better place where this request for help should go.
Thanks.
OneSupply
Posts: 6
Joined: Sun Nov 13, 2011 2:33 pm
I'm using a new method now.OSWorX wrote:Hello Ryan,
latest version (2.0.beta.4) of VQMod-Manager use GLOB_BRACE (admin controller, line 111).
Because this flag is not supported on all systems (see http://at2.php.net/manual/en/function.glob.php) it should be disabled (like the OC system did 1 year ago), otherwise this error is displayed and no files are visible:And at line 17 this should be therefore adopted also.Notice: Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE' in ../admin/controller/module/vqmod_manager.php on line 111Warning: glob() expects parameter 2 to be long, string given in ../admin/controller/module/vqmod_manager.php on line 111
From:toCode: Select all
$this->vqmod_script_files = substr_replace(DIR_SYSTEM, '/vqmod/xml/*.{xml,xml_}', -8);
Code: Select all
$this->vqmod_script_files = substr_replace(DIR_SYSTEM, '/vqmod/xml/*.xm*', -8);
-Ryan
Could you change the extension that way, that it will be useable but no .zipped archives can be downloaded?
Or add - in case it is not installed - an own packager to the module (as I have it with some at my own)?
Otherwise I have to use an older version at some clients.
thx!
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Users browsing this forum: No registered users and 6 guests