10-30-2020, 06:14 PM | #1771 |
Member
Posts: 20
Karma: 10
Join Date: Sep 2013
Device: Galaxy S4
|
My Cops stopped working. This is what comes up
COPS CONFIGURATION CHECK You've been redirected because COPS is not configured properly Database error Check if PHP version is correct OK (5.3.29) Check if GD is properly installed and loaded OK Check if Sqlite is properly installed and loaded OK Check if libxml is properly installed and loaded OK Check if Json is properly installed and loaded OK Check if mbstring is properly installed and loaded OK Check if intl is properly installed and loaded Please install the php5-intl / php7.0-intl extension and make sure it's enabled Check if Normalizer class is properly installed and loaded Please make sure intl is enabled in your php.ini Check if the rendering will be done on client side or server side Client side rendering Check if Calibre database path is not an URL OK Check if Calibre database file exists and is readable OK Check if Calibre database file can be opened with PHP OK Check if Calibre database file contains at least some of the needed tables |
10-30-2020, 06:47 PM | #1772 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
You have upgraded Calibre to version 5.x?
If so, then your php-sqlite3 version is no longer compatible with Calibre 5. Not a COPS “error” but a PHP-sqlite error. Solution: - update PHP to PHP 5.6 ot 7.x (with at least php-sqlite3 version 3.9) - use Calibre version 4 |
Advert | |
|
11-14-2020, 12:37 PM | #1773 |
Member
Posts: 23
Karma: 10
Join Date: May 2010
Device: Kindle Paperwhite
|
After using calibre-server with mixed success for a few years I finally discovered COPS this week. I want to use it on a Rapberry Pi running Ubuntu 20.04, nginx and php7.4 and after a couple of false starts it's running but with one issue to solve. I believe that the "folder" icon should allow the user to open the book for viewing - is this correct? Should it work in a web browser as well as an OPDS viewer? Clicking on the Download icon works fine on Chrome and Firefox, but clicking on the View icon downloads a file named fetch.php but which is much larger than the COPS fetch.php file and is not a text file. Any ideas on how to fix this?
|
11-15-2020, 10:00 AM | #1774 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@cbalmforth
In firefox to "view" an ePub you need an "add-on" like EPUBreader. It does not work without. This "viewer" feature of cops never properly and consistently worked for me. |
11-15-2020, 03:37 PM | #1775 |
Member
Posts: 23
Karma: 10
Join Date: May 2010
Device: Kindle Paperwhite
|
Thanks mariosipad. I was hoping that epubreader.php was an internal reader which would be called by the main program. I just want to share books with my family and don't actually need a viewer, so I would be happy to modify the program to edit out the relevant bits if somebody could give me a nudge in the right direction!
Last edited by cbalmforth; 11-15-2020 at 04:11 PM. |
Advert | |
|
11-15-2020, 05:38 PM | #1776 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
What do you want to “edit out” exactly?
Cops has an internal reader. In the detail pop-up of a book click on the “eye” icon. |
11-15-2020, 07:00 PM | #1777 | |
Member
Posts: 23
Karma: 10
Join Date: May 2010
Device: Kindle Paperwhite
|
Quote:
EDITED: On further inspection I think that trying to understand and edit the COPS php files is beyond my feeble programming skills. I'm just using COPS to share ebooks with my family so I'll make sure they don't click the button which is causing a problem on my installation. Thanks for the response anyway! Last edited by cbalmforth; 11-16-2020 at 08:10 AM. |
|
11-16-2020, 10:15 AM | #1778 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@cbalmforth
1 - the "eye" icon You will only see the "eye" icon (see picture1) if it's an EPUB-file, not if it's a MOBI-file. 2 - "edit out" Well it turns out that what you wanted to "edit out" I have "edited out" for years! (Great minds think alike ) And it's quite simple to do. - in your cops directory go to ./cops/templates/default/ - in a text editor (not word) open main.html - delete (or comment) line 31. - the commented line now looks like: Code:
<!-- <a href="{{=data.viewUrl}}" {{=it.c.config.kindleHack}}><i class="fas fa-folder-open fa-lg"></i></a> --> - in a text editor (not word) open bookdetail.html - delete (or comment) line 12. - the commented line now looks like: Code:
<!-- <a title="Open // {{=data.format}}" href="{{=data.viewUrl}}" {{=it.c.config.kindleHack}}><i class="fas fa-folder-open fa-lg"></i></a> --> That should do it. If not, let me know! |
11-16-2020, 06:09 PM | #1779 |
Connoisseur
Posts: 51
Karma: 10
Join Date: Nov 2012
Device: none
|
Templates?
Are there any more templates for COPS out there? I've checked out the builtin bootstrap template, but am looking for more options.
Or any guides/info on making new templates? |
11-16-2020, 06:30 PM | #1780 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Not that I know.
To make new templates you could look at the source code and adapt it to your needs. I’m not aware of any howto. |
11-18-2020, 06:15 AM | #1781 | |
Member
Posts: 23
Karma: 10
Join Date: May 2010
Device: Kindle Paperwhite
|
Quote:
Many thanks, you're a star! |
|
11-24-2020, 04:46 PM | #1782 |
Connoisseur
Posts: 51
Karma: 10
Join Date: Nov 2012
Device: none
|
Update Bootstrap Theme
I'm not the biggest fan of the COPS bootstrap theme, but I love how COPS functions. So I updated the bootstrap theme more to my liking. Here's a couple screenshots
Source is here https://github.com/SenorSmartyPants/cops/tree/bootstrap |
12-07-2020, 09:21 AM | #1783 | |
Member
Posts: 12
Karma: 108
Join Date: Dec 2020
Device: kobo
|
Quote:
This is probably a noob question, but how do I install this? Do I re-install cops completely using the link above, or just copy parts of this to my existing installation? Thanks |
|
12-08-2020, 03:56 PM | #1784 | ||
Connoisseur
Posts: 51
Karma: 10
Join Date: Nov 2012
Device: none
|
Native (non-docker install):
copy templates/bootstrap2 into your current install and also copy util.js from my repo over the util.js in your current install. update config_local.php to include Quote:
For a docker install (which is how i have COPS installed) I mounted a couple extra volumes pointed at my development directories. Quote:
|
||
12-08-2020, 09:57 PM | #1785 |
Member
Posts: 12
Karma: 108
Join Date: Dec 2020
Device: kobo
|
Thanks very much! I copied the directory and can see your changes.
Very nice! |
Tags |
calibre opds, dns, kobo aura, synology |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre OPDS server with windows apps? | nickdma | Related Tools | 10 | 03-03-2024 02:53 PM |
[Old Thread] Android FBreader and Calibre OPDS server question | kalex | Calibre | 5 | 12-24-2015 10:16 PM |
PHP+Apache web server for calibre ... | chaley | Related Tools | 254 | 04-28-2014 08:18 PM |
External OPDS catalogue in Calibre | bolton | Calibre | 1 | 09-05-2012 06:14 AM |
Calibre Command Line usage with PHP | artoros | Related Tools | 13 | 07-01-2010 09:57 AM |