[FM Discuss] Information needed about setting up booki publisher
James Simmons
nicestep at gmail.com
Wed Jul 20 09:58:45 PDT 2011
Daniel,
It turns out that the db it refers to is one in booki publisher itself. I
had changed it to the one used by booki. I've changed it back and now I get
this:
<?
function addTemplate ($templateType='read',$content) {
if ($templateType=='editor') {
$template=file_get_contents("templates/editor.tmpl");
} else {
$template=file_get_contents("templates/".DEFAULT_TEMPLATE."_$templateType.tmpl");
}
$page=preg_replace('[<content-goes-here/>]',$content,$template);
//following works but i first have to work out how to find json rows
$hook_args['output']=$page;
$page = fire_hook("tag_replace", $hook_args);
return $page;
}
?>
<html><head><title>500 Internal Server
Error</title></head><body><h1>Internal Server
Error</h1><p><i>strtotime(): It is not safe to rely on the system's
timezone settings. You are *required* to use the date.timezone setting
or the date_default_timezone_set() function. In case you used any of
those methods and you are still getting this warning, you most likely
misspelled the timezone identifier. We selected 'America/Chicago' for
'CDT/-5.0/DST' instead</i></p><p>#0 {closure}<br />
#1 /var/www/bookipub/plugins/read/read.inc.php:33
strtotime('2011-06-01 16:45')<br />
#2 /var/www/bookipub/plugins/read/read.inc.php:120
ratedOutput(array(array('dir'=>'airtime','title'=>'Airtime','description'=>'test3','date'=>'2011-06-01
16:45','visible'=>'on','category'=>'New','status'=>'New','epub'=>'_booki/airtime/airtime.epub','pdf'=>'_booki/airtime/airtime.pdf','analyzer'=>'','modified'=>'2011-06-03
11:28'),array('dir'=>'newscoop-3-cookbook-3-5-2','title'=>'Newscoop
3 Cookbook','description'=>'test4','date'=>'2011-06-01
23:51','visible'=>'on','category'=>'Sourcefabric','status'=>'New','epub'=>'_booki/newscoop-3-cookbook-3-5-2/newscoop-3-cookbook-3-5-2.epub','pdf'=>'_booki/newscoop-3-cookbook-3-5-2/newscoop-3-cookbook-3-5-2.pdf','analyzer'=>'','modified'=>'2011-06-01
23:51')),3)<br />
#3 /var/www/bookipub/plugins/read/read.inc.php:164 read_index()<br />
#4 read_dispatcher('index')<br />
#5 /var/www/bookipub/index.php:24
call_user_func('read_dispatcher','index')<br />
</p></body></html>
It looks like you have to set
date.timezone
in a php.ini file. I tried google to get information on how to do that and
everything I've found stops short of actually telling you what to do and
where. This article:
http://kb.siteground.com/article/How_to_change_the_datetimezone_value_in_PHP.html
seems to suggest that you can create a "local" php.ini file and put in the
value you need, like this:
*date.timezone = "US/Central"
They don't say just where a "local" php.ini file would go. Putting it in
/var/www/bookipub doesn't work.
Any ideas? I'm trying to get this up and running without training myself to
be a PHP developer.
James Simmons
*
On Wed, Jul 20, 2011 at 11:24 AM, Daniel James <
daniel.james at sourcefabric.org> wrote:
> Hi James,
>
> > Unable to map table books to Axon
>
> Does a table called 'books' exist in the sqlite database?
>
> Cheers!
>
> Daniel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.flossmanuals.net/pipermail/discuss-flossmanuals.net/attachments/20110720/b3a4797f/attachment.htm>
More information about the Discuss
mailing list