Can't get embedding with subdirectory working.
Posted: Sun May 23, 2004 8:04 pm
As a preface, I've read all the other posts I could find on this problem, as well as the site documentation and the README file in the distribution and still can't get this working. If there is somewhere else I should be looking, please post a link.
I'm trying to embed s9y in my own content pages.
I've installed serendipity to a subdirectory of my doc root.
I renamed the normal index.php in the distribution to blog.php. I made a new test index.php and put it in the /serendipity subdirectory.
<?php
ob_start();
require 'blog.php';
$blog_data = ob_get_contents();
ob_end_clean();
echo $blog_data;
?>
This works fine. (The indexFile in the paths in the configuration is index.php and all the paths for the installation point to the subdirectory).
However, when I move the index.php file to my doc root and change the require line to require 'serendipity/blog.php'
I get 'Serendipity is not yet installed. Please install it now.'
Doing some quick debugging it looks like the line
define('IS_installed', file_exists((isset($serendipity['serendipityPath']) ? $serendipity['serendipityPath'] : '') . 'serendipity_config_local.inc.php'));
in serendipity_config.inc.php isn't setting IS_installed to true
What am I missing?
Also, someone else had mentioned they got this setup working but had trouble with comments working. Is that going to be a problem with this setup?
Thanks
I'm trying to embed s9y in my own content pages.
I've installed serendipity to a subdirectory of my doc root.
I renamed the normal index.php in the distribution to blog.php. I made a new test index.php and put it in the /serendipity subdirectory.
<?php
ob_start();
require 'blog.php';
$blog_data = ob_get_contents();
ob_end_clean();
echo $blog_data;
?>
This works fine. (The indexFile in the paths in the configuration is index.php and all the paths for the installation point to the subdirectory).
However, when I move the index.php file to my doc root and change the require line to require 'serendipity/blog.php'
I get 'Serendipity is not yet installed. Please install it now.'
Doing some quick debugging it looks like the line
define('IS_installed', file_exists((isset($serendipity['serendipityPath']) ? $serendipity['serendipityPath'] : '') . 'serendipity_config_local.inc.php'));
in serendipity_config.inc.php isn't setting IS_installed to true
What am I missing?
Also, someone else had mentioned they got this setup working but had trouble with comments working. Is that going to be a problem with this setup?
Thanks