* */ require_once ("config.php"); require_once ("base.php"); header ("Content-Type:text/html; charset=UTF-8"); $err = getURLParam ("err", -1); $full = getURLParam ("full"); $error = NULL; switch ($err) { case 1 : $error = "Database error"; break; } ?> COPS Configuration Check

COPS Configuration Check

You've been redirected because COPS is not configured properly

Check if PHP version is correct

= 50300) { echo "OK (" . PHP_VERSION . ")"; } else { echo "Please install PHP >= 5.3 (" . PHP_VERSION . ")"; } } else { echo "Please install PHP >= 5.3"; } ?>

Check if GD is properly installed and loaded

Check if Sqlite is properly installed and loaded

Check if libxml is properly installed and loaded

Check if Json is properly installed and loaded

Check if mbstring is properly installed and loaded

Check if intl is properly installed and loaded

Check if Normalizer class is properly installed and loaded

Check if the rendering will be done on client side or server side

$database) { ?>

Check if Calibre database path is not an URL

Check if Calibre database file exists and is readable

  • Value of \$config['calibre_directory'] in config_local.php
  • Value of open_basedir in your php.ini
  • The access rights of the Calibre Database
  • Synology users please read this
  • "; } ?>

    Check if Calibre database file can be opened with PHP

    Check if Calibre database file contains at least some of the needed tables

    query("select count(*) FROM sqlite_master WHERE type='table' AND name in ('books', 'authors', 'tags', 'series')")->fetchColumn(); if ($count == 4) { echo "{$name} OK"; } else { echo "{$name} Not all Calibre tables were found. Are you sure you're using the correct database."; } } catch (Exception $e) { echo "{$name} If the file is readable, check your php configuration. Exception detail : " . $e; } ?>

    Check if all Calibre books are found

    prepare("select books.path || '/' || data.name || '.' || lower (format) as fullpath from data join books on data.book = books.id"); $result->execute (); while ($post = $result->fetchObject ()) { if (!is_file (Base::getDbDirectory ($i) . $post->fullpath)) { echo "

    " . Base::getDbDirectory ($i) . $post->fullpath . "

    "; } } } catch (Exception $e) { echo "{$name} If the file is readable, check your php configuration. Exception detail : " . $e; } ?>