Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: twistedsymphony - maaliskuu 09, 2007, 09:50:54 AP

Otsikko: SSi.PHP gives Fatal Error
Kirjoitti: twistedsymphony - maaliskuu 09, 2007, 09:50:54 AP
I'm trying to use one of the basic SSI functions on my main site page (wordpress)
when adding this code
$smf_path = "/home/forums/";
if (!defined('SMF')){
require($smf_path."SSI.php");
}


to the head of my WP page I get this error:

LainaaFatal error: Cannot redeclare is_admin() (previously declared in /home/wp-includes/query.php:24) in /home/forums/Sources/Security.php on line 816

any ideas?
Otsikko: Re: SSi.PHP gives Fatal Error
Kirjoitti: twistedsymphony - maaliskuu 16, 2007, 09:51:26 AP
after some digging it turns out both applications use the same function name... making an integration between the two systems OH so much more fun...

this is probably why a worthwhile WP/SMF bridge hasn't been built yet.