Community Forums

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

Community created contributions & mods for OpenCart 1.x

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

Postby uksitebuilder » Sat Sep 03, 2011 7:06 pm

might be that you have compression enabled.
User avatar
uksitebuilder
 
Posts: 5602
Joined: Thu Jun 09, 2011 3:37 pm
Location: United Kindgom

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

Postby Qphoria » Sat Sep 03, 2011 8:38 pm

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
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18200
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

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

Postby JNeuhoff » Sun Sep 04, 2011 6:56 pm

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.
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2113
Joined: Tue Dec 04, 2007 7:38 pm

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

Postby JAY6390 » Sun Sep 04, 2011 10:27 pm

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
ImageImageImage

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links


Image
User avatar
JAY6390
 
Posts: 4634
Joined: Wed May 26, 2010 3:47 pm
Location: United Kingdom

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

Postby thisisworldwide » Mon Sep 05, 2011 9:40 am

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!
thisisworldwide
 
Posts: 37
Joined: Wed Jun 01, 2011 5:57 pm

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

Postby Xsecrets » Mon Sep 05, 2011 1:27 pm

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.
Xsecrets
 
Posts: 5042
Joined: Sat Oct 24, 2009 7:51 pm
Location: FL US

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

Postby JNeuhoff » Mon Sep 05, 2011 7:33 pm

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'!
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2113
Joined: Tue Dec 04, 2007 7:38 pm

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

Postby JAY6390 » Mon Sep 05, 2011 9:26 pm

Is this a code bug or the oc xml bug for the template fetch?
ImageImageImage

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links


Image
User avatar
JAY6390
 
Posts: 4634
Joined: Wed May 26, 2010 3:47 pm
Location: United Kingdom

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

Postby JNeuhoff » Tue Sep 06, 2011 8:39 am

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.
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2113
Joined: Tue Dec 04, 2007 7:38 pm

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

Postby JAY6390 » Tue Sep 06, 2011 9:21 am

Oh, so it happens when there is nothing in the search CDATA?
ImageImageImage

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links


Image
User avatar
JAY6390
 
Posts: 4634
Joined: Wed May 26, 2010 3:47 pm
Location: United Kingdom

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

Postby srunyon1 » Tue Sep 06, 2011 8:44 pm

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
srunyon1
 
Posts: 230
Joined: Thu Jan 28, 2010 7:03 am

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

Postby Qphoria » Tue Sep 06, 2011 9:38 pm

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.
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18200
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

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

Postby JAY6390 » Tue Sep 06, 2011 9:42 pm

Yup definitely not vQmod related. Which version specifically are you using? 1.5.x could be one of 8+ versions ;)
ImageImageImage

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links


Image
User avatar
JAY6390
 
Posts: 4634
Joined: Wed May 26, 2010 3:47 pm
Location: United Kingdom

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

Postby uksitebuilder » Tue Sep 06, 2011 10:25 pm

Its a core bug and fixed in SVN
User avatar
uksitebuilder
 
Posts: 5602
Joined: Thu Jun 09, 2011 3:37 pm
Location: United Kindgom

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

Postby Qphoria » Tue Sep 06, 2011 11:47 pm

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 :(
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18200
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

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

Postby hellogoodbye » Wed Sep 07, 2011 3:40 am

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
hellogoodbye
 
Posts: 50
Joined: Tue May 03, 2011 10:33 pm

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

Postby Qphoria » Wed Sep 07, 2011 4:24 am

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
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18200
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

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

Postby srunyon1 » Fri Sep 09, 2011 10:25 pm

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
srunyon1
 
Posts: 230
Joined: Thu Jan 28, 2010 7:03 am

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

Postby ryanlynx » Sat Sep 10, 2011 9:57 pm

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
ryanlynx
 
Posts: 1
Joined: Sat Sep 10, 2011 8:44 pm

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

Postby Degsey » Sun Sep 11, 2011 2:40 am

Yup I am also eagerly awaiting the new release!
Live Long and Prosper!

Degsey :-]

Visit us at :

http://www.Supreme-Ink.com
User avatar
Degsey
 
Posts: 91
Joined: Sat Jun 11, 2011 6:29 pm
Location: North Carolina

PreviousNext

Return to Free Contributions

Who is online

Users browsing this forum: Ljubo and 8 guests

Hosted by Arvixe Web Hosting