I am calling processwire from a wordpress install, and this used to work in 2.0
include("./pw/index.php"); // bootstrap ProcessWire
$client = $wire->pages->find("template=client, client_email=$email")->first();
now in 2.2 this fails, and I get error like this:
[error] PHP Fatal error: Cannot redeclare __() (previously declared in /var/www/vhosts/dev.sitename.com/httpdocs/wp-includes/l10n.php:96) in /var/www/vhosts/sitename.mysite.com/httpdocs/pw/wire/core/LanguageFunctions.php on line 38, referer: http://dev.sitename....erved/overview/
which seems to colide with a wordpress function:
function __( $text, $domain = 'default' ) {
return translate( $text, $domain );
}
Not really versed enough to go much farther than this... does anyone know a remedy?
thanks, Peter













