You are here:  » Wordpress

Support Forum



Wordpress

Submitted by babrees on Thu, 2009-06-04 17:20 in

OK, I have succumed and am trying out wordpress!

Got it all working ok, wordpress as front-end of site and price tapestry as a seperate entity.

However, if I try to add the following to a post:

<?php
  $common_path 
"/home/funkydud/public_html/funkyclothes/";
  
$common_baseHREF "http://www.funkyduds.co.uk/funkyclothes/";
  
$_GET["q"] = "zoe";
  require(
$common_path."searchExternal.php");
?>

When viewing the post I get:

Fatal error: Cannot redeclare translate() (previously declared in /home/funkydud/public_html/wp-includes/l10n.php:64) in /home/funkydud/public_html/funkyclothes/includes/translate.php on line 10

Not really knowing or understanding wordpress yet, am I doing something wrong?

Submitted by support on Fri, 2009-06-05 11:40

Hi Jill,

Wordpress already has a translate() function which conflicts with the same function in Price Tapestry. To remove the error, simply look for the following code on line 40 of searchExterna.php:

require($common_path."includes/translate.php");

..and either comment out or delete that line.

Cheers,
David.