English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: Search and Replace error
#10085
Search and Replace error 11 Years, 10 Months ago Karma: 0
We are using the search and replace function to replace key words on a master site to all slave sites. Our searchreplace.SITEID.php file looks like this:
<?php

// no direct access

defined('_JEXEC') or die('Restricted access');

/*

; Put below the Search/Replace expressions

;------------------------------------------

{city}=Waycross
{state}=Kentucky

*/

When I just have one field, like {city} it works great. As soon as I add two fields the string {city} is replaced with "Waycross {state}=Kentucky"

I've read the documentation and the forums and can't figure out what we're doing wrong. Any suggestions?

Thanks !
adam
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#10089
Re: Search and Replace error 11 Years, 10 Months ago Karma: 54
The reason was that in fact the search/replace was written in a single line and that everything was considered as a comment.
The file was not correctly transfered on the server and all the newlines were removed.

<?php // no direct access defined('_JEXEC') or die('Restricted access'); /* ; Put below he Search/Replace expressions ;------------------------------------------{city}=Waycross{state}=Kentucky*/
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla