Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 10-30-2020, 06:14 PM   #1771
dKodiak
Member
dKodiak began at the beginning.
 
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
dKodiak is offline   Reply With Quote
Old 10-30-2020, 06:47 PM   #1772
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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
mariosipad is offline   Reply With Quote
Advert
Old 11-14-2020, 12:37 PM   #1773
cbalmforth
Member
cbalmforth began at the beginning.
 
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?
cbalmforth is offline   Reply With Quote
Old 11-15-2020, 10:00 AM   #1774
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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.
mariosipad is offline   Reply With Quote
Old 11-15-2020, 03:37 PM   #1775
cbalmforth
Member
cbalmforth began at the beginning.
 
Posts: 23
Karma: 10
Join Date: May 2010
Device: Kindle Paperwhite
Quote:
Originally Posted by mariosipad View Post
@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.
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.
cbalmforth is offline   Reply With Quote
Advert
Old 11-15-2020, 05:38 PM   #1776
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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.
mariosipad is offline   Reply With Quote
Old 11-15-2020, 07:00 PM   #1777
cbalmforth
Member
cbalmforth began at the beginning.
 
Posts: 23
Karma: 10
Join Date: May 2010
Device: Kindle Paperwhite
Quote:
Originally Posted by mariosipad View Post
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.
I'll get back to your first question later, but your second comment puzzles me! I've tried browsing my library with both Firefox and Chrome, and on neither do I see an "eye" icon. I've attached a screen shot of what I can see on the popup detail of a book. The icon which I assume should open a viewer looks like an open folder - have I got that right?

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!
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	278
Size:	206.9 KB
ID:	183407  

Last edited by cbalmforth; 11-16-2020 at 08:10 AM.
cbalmforth is offline   Reply With Quote
Old 11-16-2020, 10:15 AM   #1778
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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> -->
- save file

- 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> -->
- save file

That should do it. If not, let me know!
Attached Thumbnails
Click image for larger version

Name:	picture 2.png
Views:	244
Size:	355.3 KB
ID:	183419   Click image for larger version

Name:	picture 1.png
Views:	233
Size:	305.2 KB
ID:	183420  
mariosipad is offline   Reply With Quote
Old 11-16-2020, 06:09 PM   #1779
Freakeao
Connoisseur
Freakeao began at the beginning.
 
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?
Freakeao is offline   Reply With Quote
Old 11-16-2020, 06:30 PM   #1780
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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.
mariosipad is offline   Reply With Quote
Old 11-18-2020, 06:15 AM   #1781
cbalmforth
Member
cbalmforth began at the beginning.
 
Posts: 23
Karma: 10
Join Date: May 2010
Device: Kindle Paperwhite
Quote:
Originally Posted by mariosipad View Post
@cbalmforth

<-SNIP->

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.

<-SNIP->
Sorry for the delayed response mariosipad. That WAS simple, and it did exactly what I wanted. I was looking in completely the wrong place to make the changes and wouldn't have found this without your help.

Many thanks, you're a star!
cbalmforth is offline   Reply With Quote
Old 11-24-2020, 04:46 PM   #1782
Freakeao
Connoisseur
Freakeao began at the beginning.
 
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
Freakeao is offline   Reply With Quote
Old 12-07-2020, 09:21 AM   #1783
Minstrelcda
Member
Minstrelcda doesn't litterMinstrelcda doesn't litter
 
Posts: 12
Karma: 108
Join Date: Dec 2020
Device: kobo
Quote:
Originally Posted by Freakeao View Post
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


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
Minstrelcda is offline   Reply With Quote
Old 12-08-2020, 03:56 PM   #1784
Freakeao
Connoisseur
Freakeao began at the beginning.
 
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:
$config['cops_template'] = 'bootstrap2';
I've submitted a pull request to support more templates, but until that is merged you will have to edit config_local.php to select this template.

For a docker install (which is how i have COPS installed) I mounted a couple extra volumes pointed at my development directories.

Quote:
volumes:
- /opt/appdata/cops:/config
- /mnt/storage/media/Books:/books
#extra dirs to use bootstrap2
- /mnt/storage/github/cops/util.js:/usr/share/webapps/cops/util.js
- /mnt/storage/github/cops/templates:/usr/share/webapps/cops/templates
Freakeao is offline   Reply With Quote
Old 12-08-2020, 09:57 PM   #1785
Minstrelcda
Member
Minstrelcda doesn't litterMinstrelcda doesn't litter
 
Posts: 12
Karma: 108
Join Date: Dec 2020
Device: kobo
Thanks very much! I copied the directory and can see your changes.

Very nice!
Minstrelcda is offline   Reply With Quote
Reply

Tags
calibre opds, dns, kobo aura, synology


Forum Jump

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


All times are GMT -4. The time now is 07:09 PM.


MobileRead.com is a privately owned, operated and funded community.