btkg LiteCart Fan Od United Kingdom Użytkownik od lip 2019 btkg 6 sty 2021 11:16 I am trying to add vQmods to a local host (MAMP) test site. Baby steps so nothing fancy - just a variant of the Hello World example - as below Test -add into index.inc.php 1.0 2.5.2 Dave stitch('pages/index'); ]]> Uploads fine - get a green tick on testing - but nothing on the front end. Cleared the front end cache but still nothing. Reading throught the forums I see that the file show be making an appearance in the vqmod/vqcache folder but that isn't happening. I'm stumped - I suspect that I may be missing the obvious but can't think what that would be, can anybody supply a pointer? I also appreciate that you shouldn't ask 2 questions in one post - but searching for an answer I came across the post -> feature-requests-and-new-ideas/11557/vmod-the-successor-of-vqmod. So question two would be - should I bother with the vqmod and instead wait for vmod? Thanks in anticipation
btkg LiteCart Fan Od United Kingdom Użytkownik od lip 2019 btkg 6 sty 2021 11:21 Aaargh - not a good start to posting - the subject isn't correct - it was and I couldn't work out why something that initially tested good would after a few minutes then test bad. So before finalising the post I deleted everything and started again and rewrote the xml file and the post. Totally forgot about the subject line. Sorry for that.
btkg LiteCart Fan Od United Kingdom Użytkownik od lip 2019 btkg 7 sty 2021 00:00 Tim. Thanks for your for bearance on this. I should explain a bit of background first. Currently our business uses a Joomla set up when we looked at adding a cart the term "code bloat" didn't come close. Hence my arrival here. While "out the box" Litecart is perfect like everybody I wanted to tweek. Playing around directly editing files I got to the point where I was happy with the result. However - as I'm sure you've probably commented many a time - don't ugger about with core code as upgrading then becomes a rap shoot. So let's use the vqmod system to see if I can tweek properly. The title was occasioned as my initial xml files uploaded and when tested got the green tick - but nothing happened on the front end and on retesting them in the back end they then showed a red cross. I did get the xml file in the initial post to "stick" to green on testing but still no change on the front end. That was earlier using 2.2.5 I have just done a fresh install of 2.2.7, uploaded the xml file, green tick on testing which "sticks" and still no change on the front. I read somewhere on the forum that there should be an "entry" in the vqmod/vqcache folder - but no sign of anything has appeared here. I have a horrible feeling that I am missing the screamingly obvious - but just can't find a lead in the forums, hence asking if anybody can give me a steer? I appreciate that this is also a second question - but I found your post on vmod, so should I be holding out for vmod instead. Thanks in anticipation Dave
tim Founder Od Sweden Użytkownik od maj 2013 tim 7 sty 2021 02:44 Welcome to LiteCart. I understand you are having trouble cooking your own vqmod. vQmod does not provide any good testing features. The testing tool in the backend is a bit limited. It tells you if there is a plain error from the vqmod system while trying to modify a file. Not if something was skipped etc. The error could have been caused by another mod editing the same file. All this will be better with the release of vMod, a lightweight virtual mod component written from scratch by me - how I would have done vQmod my way. All modded files will be produced in ~/vqmod/vqcache/. Start by sharing your mod here in the forums and see if anyone here can spot any obvious issues. The vQmod documentation is available here: https://github.com/vqmod/vqmod/wiki
btkg LiteCart Fan Od United Kingdom Użytkownik od lip 2019 btkg 7 sty 2021 10:47 If anybody is reading this looking for the answer to the problem then I got it solved - my thanks to Petri Ikonen and his free vqmod security enhancement. My original xml file was basically a wee mod of the sample file in the wiki(it's in the very first post to avoid duplication here). Comparing it to Petri's file and by a process of "one thing at a time" I finally managed to find the offending line which was in the <search> section. From the sample I had <search position="before" index="0" offset="0"><![CDATA[echo $_page->stitch('pages/index');]]></search> Petri's file had <search position="after">[i]spaced here to show [/i] <![CDATA[header('X-Powered-By: '. PLATFORM_NAME);]]></search> Removing the index="0" offset="0" and it worked. Now I will confess that I missed the relevance of the two instructions when reading the vqmod wiki. Hope this may be of assistance to somebody.