Page 34 of 35

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Sun Sep 04, 2011 4:38 am
by Qphoria
Going to release vQmod 2.0 for public use some time this weekend. Likely start a new thread as this one is getting long and difficult to traverse

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Mon Sep 05, 2011 2:56 am
by JNeuhoff
affect wrote:I've been trying to find out why do I get blank pages instead of errors sometimes although I have error_reporting and display_errors set correctly everywhere.
I have had the same issue with the error_reporting ending up with 0 after execution of all my XML files in VQmod 1.2.3. This problem of corrupting the error_reporting doesn't exist in VQmod 2.0 which I have been testing for the past few weeks, so I just kept using that version. Hopefully Q will release it soon to the public because it works quite well, haven't had any issues with this new version.

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Mon Sep 05, 2011 6:27 am
by JAY6390
JNeuhoff wrote:Hopefully Q will release it soon to the public because it works quite well, haven't had any issues with this new version.
Always good news :) Hopefully it'll be released this week. Will work on the auto installer the next few days to see what I can do about getting it to check if a file is written or not

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Mon Sep 05, 2011 5:40 pm
by thisisworldwide
this is a page of promise haha

im excited for the new release
and your auto installer Jay would be most useful to many

i think ill wait for 2.0 before giving vq a try!

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Mon Sep 05, 2011 9:27 pm
by Xsecrets
thisisworldwide wrote:this is a page of promise haha

im excited for the new release
and your auto installer Jay would be most useful to many

i think ill wait for 2.0 before giving vq a try!
the auto installer already exists in the latest version. He just has to update it for 2.0 before release, and he's trying to figure a way to check that the changes actually got made to the files. For the vast majority of people the auto-installer in the existing version works fine.

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Tue Sep 06, 2011 3:33 am
by JNeuhoff
JAY6390 wrote:
JNeuhoff wrote:Hopefully Q will release it soon to the public because it works quite well, haven't had any issues with this new version.
Always good news :) Hopefully it'll be released this week. Will work on the auto installer the next few days to see what I can do about getting it to check if a file is written or not
I am afraid I came accross a bug in the new VQmod 2.0, as follows:

Given the XML file which modifies the system/engine/controller.php, by adding some functions at the bottom:

Code: Select all

<modification>
	<id>OpenCart 1.4.9.x core file modifications</id>
	<version>1.4.9.x</version>
	<vqmver>2.0</vqmver>
	<author>JNeuhoff</author>
	<file name="system/engine/controller.php">
		<operation>
			<search position="bottom" offset="1"><![CDATA[]]></search>
			<add><![CDATA[
	public function startsWith( $haystack, $needle ) {
		if (strlen( $haystack ) < strlen( $needle )) {
			return FALSE;
		}
		return (substr( $haystack, 0, strlen($needle) ) == $needle);
	}

	public function endsWith( $haystack, $needle ) {
		if (strlen( $haystack ) < strlen( $needle )) {
			return FALSE;
		}
		return (substr( $haystack, strlen($haystack)-strlen($needle), strlen($needle) ) == $needle);
	}
			]]></add>
		</operation>
	</file>
</modification>
It always results in this at the end of the file:

Code: Select all

	protected function fetch($filename) {
		$file = DIR_TEMPLATE . $filename;
    
global $vqmod; $file = $vqmod->modCheck($file);
		if (file_exists($file)) {
			extract($this->data);
			
      		ob_start();
      
	  		require($file);
      
	  		$content = ob_get_contents();

      		ob_end_clean();

      		return $content;
    	} else {
      		exit('Error: Could not load template ' . $file . '!');
    	}
	}
0
?>
That is, instead of adding the 2 functions, it only added a '0'!

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Tue Sep 06, 2011 5:26 am
by JAY6390
Is this a code bug or the oc xml bug for the template fetch?

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Tue Sep 06, 2011 4:39 pm
by JNeuhoff
JAY6390 wrote:Is this a code bug or the oc xml bug for the template fetch?
The first modification of the system/engine/controller.php from the vqmod_opencart.xml works fine. It is the other VQmod XML shown in my previous message which causes it to go wrong.

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Tue Sep 06, 2011 5:21 pm
by JAY6390
Oh, so it happens when there is nothing in the search CDATA?

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Wed Sep 07, 2011 4:44 am
by srunyon1
since adding this mod I get this error on my order update links

Code: Select all

Notice: Undefined variable: order_id in /home4/zigzterc/public_html/shop/catalog/controller/account/order.php on line 110Warning: Cannot modify header information - headers already sent by (output started at /home4/zigzterc/public_html/shop/index.php:104) in /home4/zigzterc/public_html/shop/vqmod/vqcache/vq-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home4/zigzterc/public_html/shop/index.php:104) in /home4/zigzterc/public_html/shop/vqmod/vqcache/vq-system_engine_controller.php on line 29
please Help..:)
using 1.5.x open cart
and 1.2.3 Vqmod.
used the installer to install it.
and Yes CHMOD'd the files.
Ziggy

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Wed Sep 07, 2011 5:38 am
by Qphoria
srunyon1 wrote:since adding this mod I get this error on my order update links

Code: Select all

Notice: Undefined variable: order_id in /home4/zigzterc/public_html/shop/catalog/controller/account/order.php on line 110Warning: Cannot modify header information - headers already sent by (output started at /home4/zigzterc/public_html/shop/index.php:104) in /home4/zigzterc/public_html/shop/vqmod/vqcache/vq-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home4/zigzterc/public_html/shop/index.php:104) in /home4/zigzterc/public_html/shop/vqmod/vqcache/vq-system_engine_controller.php on line 29
please Help..:)
using 1.5.x open cart
and 1.2.3 Vqmod.
used the installer to install it.
and Yes CHMOD'd the files.
Ziggy
Try removing the vqmod_opencart.xml file and see if the error goes away. This is nothing related to vQmod itself. So perhaps a bug in the core or in another vQmod script.

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Wed Sep 07, 2011 5:42 am
by JAY6390
Yup definitely not vQmod related. Which version specifically are you using? 1.5.x could be one of 8+ versions ;)

[MOD] - VirtualQMod "vQmod" Virtual File Modification System

Posted: Wed Sep 07, 2011 6:25 am
by uksitebuilder
Its a core bug and fixed in SVN

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Wed Sep 07, 2011 7:47 am
by Qphoria
JAY6390 wrote:Yup definitely not vQmod related. Which version specifically are you using? 1.5.x could be one of 8+ versions ;)
LMAO.... but its true :(

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Wed Sep 07, 2011 11:40 am
by hellogoodbye
Not sure if this is known or posted, but I just got this when selecting Remove on the cart page and clicking Update Cart. I had also applied a coupon code.
Using OpenCart 1.5.1.1 and VQMod 1.2.3

Warning: Illegal offset type in isset or empty in /system/library/cart.php on line 275Warning: Cannot modify header information - headers already sent by (output started at /index.php:104) in /vqmod/vqcache/vq-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /index.php:104) in /vqmod/vqcache/vq-system_engine_controller.php on line 29

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Wed Sep 07, 2011 12:24 pm
by Qphoria
hellogoodbye wrote:Not sure if this is known or posted, but I just got this when selecting Remove on the cart page and clicking Update Cart. I had also applied a coupon code.
Using OpenCart 1.5.1.1 and VQMod 1.2.3

Warning: Illegal offset type in isset or empty in /system/library/cart.php on line 275Warning: Cannot modify header information - headers already sent by (output started at /index.php:104) in /vqmod/vqcache/vq-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /index.php:104) in /vqmod/vqcache/vq-system_engine_controller.php on line 29
again, not related to vQmod but instead to the script you are running or a bug in the core

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Sat Sep 10, 2011 6:25 am
by srunyon1
Ok Yes you are right its not with Vqmod. it does then same thing with it turned off..
Any fix for the bug in the Core?
looks like its version
Version 1.5.1.1

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Sun Sep 11, 2011 5:57 am
by ryanlynx
Qphoria wrote:Going to release vQmod 2.0 for public use some time this weekend. Likely start a new thread as this one is getting long and difficult to traverse
Has v2.0 been released yet? see some ppl refering to using it, but can't find link here or on your vQmod site

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Sun Sep 11, 2011 10:40 am
by Degsey
Yup I am also eagerly awaiting the new release!

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy

Posted: Sun Sep 11, 2011 6:38 pm
by JAY6390
It was/is on a private SVN repo, and I've had a few people beta testing it after I modified it to 2.0, which is why some people will have been referring to using 2.0 despite not being officially released yet. Just waiting on Q to do some changes to the logging to clean it up a little, and it should be good to go