Roseev / vqmod

Automatically exported from code.google.com/p/vqmod
0 stars 0 forks source link

Error in replace all file #158

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
NOTE THAT THIS IS FOR VQMOD ENGINE ERRORS ONLY. FOR GENERAL ERRORS FROM
MODIFICATIONS CONTACT YOUR DEVELOPER

What steps will reproduce the problem?
1.Create a XML for replace all file
2. show error in admin 
3.VQModObject::applyMod - EMPTY SEARCH CONTENT ERROR

What is the expected output? What do you see instead?

vQmod Version: 2.4.1 (last)
Server Operating System: Linux

Please provide any additional information below.
Part of xml
 <file name="xxxxxxxxxxxxx/product/product.tpl">
        <operation info="Refazer Página do produto para colocar as opções de parcelamento">
            <search position="all"><![CDATA[]]></search>
            <add><![CDATA[<?php echo $header; ?></add>
model of xml

VQModObject::applyMod - EMPTY SEARCH CONTENT ERROR

Original issue reported on code.google.com by fernando...@gmail.com on 27 Feb 2014 at 3:06

GoogleCodeExporter commented 9 years ago
position="ALL" was removed in the latest version. This is not a bug. See the 
change log

Original comment by DJG6...@gmail.com on 3 Apr 2014 at 9:30

GoogleCodeExporter commented 9 years ago
You're right, the change log does say it has been removed. So what should be 
used now instead of "all"? The examples in the Wiki don't give an alternative. 
You've "deprecated" an option (https://code.google.com/p/vqmod/wiki/Scripting) 
by removing it, which leaves anything that relies on that functionality in the 
lurch!

Original comment by ibbo...@gmail.com on 7 Jun 2014 at 3:43

GoogleCodeExporter commented 9 years ago
position="all" you can use the following:
offset="500" : line number of file to replace
<operation info="Replace class function">
            <search position="replace" offset="500"><![CDATA[class]]></search>
<add ><![CDATA[ <!--code --> ]]></add>

Original comment by huymanh...@gmail.com on 26 Nov 2014 at 4:05