Advertisement:

SSi.PHP gives Fatal Error

Aloittaja twistedsymphony, maaliskuu 09, 2007, 09:50:54 AP

« edellinen - seuraava »

twistedsymphony

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?

twistedsymphony

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.

Advertisement: