View Single Post
Old 07-13-2013, 10:51 AM   #500
micheljo
Member
micheljo began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jul 2010
Device: PRS-600 Opus Booken
Red face

Hi,
Before, thanks for The COPS software.
I am using it in 4.0 issue since 2 months, but today, I want to install 5.0 issue.

On my synology DS212J, I unzip cops-0.5.0.zip in Web/Calibre directory.
Then, I put my "Calibre Librairy " in this directory, an I rename "Calibre Librairy " as Data.
I Open config_local.php
I change datas as follow:
Quote:
<?php
if (!isset($config))
$config = array();

/*
* The directory containing calibre's metadata.db file, with sub-directories
* containing all the formats.
* BEWARE : it has to end with a /
*/
$config['calibre_directory'] = './Data/';

/*
* Catalog's title
*/
$config['cops_title_default'] = "les bouquins de micheljo";

/*
* use URL rewriting for downloading of ebook in HTML catalog
* See README for more information
* 1 : enable
* 0 : disable
*/
$config['cops_use_url_rewriting'] = "0";
?>
Then I test my connection as the same way of Issue 4.0
But now the hereafter message appears
Quote:
Warning: require_once(/tbszip.php): failed to open stream: No such file or directory in /volume1/web/calibre/resources/php-epub-meta/epub.php on line 9 Fatal error: require_once(): Failed opening required '/tbszip.php' (include_path='.:/usr/syno/php/lib/php') in /volume1/web/calibre/resources/php-epub-meta/epub.php on line 9
So I open /calibre/resources/php-epub-meta/epub.php

I can see this
<?php
/**
* PHP EPub Meta library
*
* @author Andreas Gohr <andi@splitbrain.org>
* @author Sébastien Lucas <sebastien@slucas.fr>
*/

require_once(realpath( dirname( __FILE__ ) ) . '/tbszip.php');

define ("METADATA_FILE", "META-INF/container.xml");

Quote:
<?php
/**
* PHP EPub Meta library
*
* @author Andreas Gohr <andi@splitbrain.org>
* @author Sébastien Lucas <sebastien@slucas.fr>
*/

require_once(realpath( dirname( __FILE__ ) ) . '/tbszip.php');

define ("METADATA_FILE", "META-INF/container.xml");
Where is my error?
Thanks for your help

Micheljo
micheljo is offline   Reply With Quote