12-07-2012, 01:25 PM | #181 |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2012
Device: none
|
I just hacked it together, it's nothing you would want to use and probably not cross-browser-compatible anymore.
I just took the top <header> and bottom <footer> from index.php and pasted it into bookdetail.php and then removed the style "bookdetail" that creates the popup. |
12-21-2012, 03:38 PM | #182 |
Junior Member
Posts: 8
Karma: 10
Join Date: Dec 2012
Location: Germany
Device: Kobo Touch N905C
|
Hi,
I tried COPS 0.2.3 on a Synology DS-211j and it works fine - in principle. Using my Windows Webbrowser or a Linux box "wget", everything works as designed. If I access COPS via the Kobo Touch browser, I see the starting page, but every click just seems to reload the (current) starting page. I can't get to any of the subpages. Btw - this also happens on your cops demo server. With my wife's Sony PRS-T2 I can open and navigate the site(s) fine, but I get errors when trying to download a book. The reader says "Download not possible. Content is not supported on device". Using wget, I got a mimetype of "application/octet-stream" both on my and on your demo server, though as far as I could see in the source, epub should send an "application/epub+zip" mimetype. Am I doing something wrong? I'm new to ebook readers (and calibre and cops). Oh, I forgot - the Kobo Touch is firmware 2.1.5 (12.10.12), the Sony PRS-T2 is ver 1.0.03.09110. Best regards Sebastian Last edited by Morg; 12-21-2012 at 03:41 PM. |
Advert | |
|
12-22-2012, 02:53 AM | #183 | ||
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
Quote:
I really don't know what's going on. Quote:
Can you try to remove or comment line 90 of fetch.php : Code:
header('Content-Type: application/octet-stream'); Thanks in advance. |
||
12-22-2012, 04:03 AM | #184 |
Junior Member
Posts: 8
Karma: 10
Join Date: Dec 2012
Location: Germany
Device: Kobo Touch N905C
|
Great - that really helped!
Removal of the Content-Type-line (which I must have overlooked when trying to improve a fix) helped for the Sony, it worked like a charm. Concerning the Kobo, I'm not sure what the problem is; I stumbled upon the Kobo displaying the 2.1.5 version number but the 2.1.4 version information. Your hint at 2.3.0 being the current firmware got me to upgrade the Kobo, and now it works without further changes. So again - merci beaucoup :-) |
12-22-2012, 11:43 AM | #185 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
@Morg
Thank you for the test. I'll push a real fix soon then ! Edit : Fix pushed on Github Last edited by vlad59; 12-23-2012 at 09:39 AM. |
Advert | |
|
12-25-2012, 05:41 PM | #186 | |
Member
Posts: 22
Karma: 10
Join Date: Oct 2011
Device: Kobo Glo HD
|
Quote:
While you are at it, might it be a good idea to disable the fancybox, based on the pregmatch identification string which indicates the type of device? This way the disabling of the fancebox can be made device independent. Merry Christmas and Happy New Year. Keep up the good work! Northguy |
|
12-29-2012, 07:38 AM | #187 | |
Groupie
Posts: 193
Karma: 1032826
Join Date: Mar 2008
Location: Miami, FL, USA
Device: iPhone 4, iPad 2
|
Quote:
I can't seem to get it to work in wamp. I need your config file, directory structure, etc.... Any help is appreciated. Art |
|
12-29-2012, 07:42 AM | #188 | |
Groupie
Posts: 193
Karma: 1032826
Join Date: Mar 2008
Location: Miami, FL, USA
Device: iPhone 4, iPad 2
|
Quote:
Art |
|
12-29-2012, 05:52 PM | #189 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
What error do you get?
Just copying my setup might not solve your problem, so let's first find out where it all goes wrong, ehh not as intended. |
12-31-2012, 04:48 AM | #190 |
Guru
Posts: 719
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@artbatista
Herewith the WAMP files you asked for. Rename to (could only upload txt files): .htaccess config_local.php fetch.php If it does not work let me know. |
01-01-2013, 11:48 PM | #191 |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2012
Device: none
|
Hey Vlad,
Is there a way to add pagination to the author pages? For example, I have over 500 authors listed in my "B" section which causes the page to scrooooooooool for ever and ever. More importantly, any section that has more than 200 authors starts to screw up the formatting. Instead of having nicely formatted rows, it just runs all of the author names together. I think this might be because PHP is running out of memory on these pages? I have made quite a few modifications to the template, css and some php files so it is very possible that I did it to myself. I'm including an image to help illustrate what I see. |
01-02-2013, 02:18 AM | #192 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
Wahhh you have a lot of books !
Could you send me your calibre sqlite database (only the file metadata.db), it should be enough to properly test it. My email is at the bottom of COPS's Readme file. |
01-02-2013, 03:53 PM | #193 |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2012
Device: none
|
The database file was too big to email, so I shared it with you on Google Drive.
|
01-03-2013, 09:34 AM | #194 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
Dear all,
I have some difficulties to install the calibre OPDS server. I'm using WS2012E with php 5.4.9 and metadata.db file is on the following folder: Z:\ServerFolders\Ebook When I try to access to OPDS server from the address: 192.168.0.11:8080, I have an error: "This page contains an error: document is empty" and for the page source code, I have: Code:
xception 'PDOException' with message 'SQLSTATE[HY000] [14] unable to open database file' in C:\Program Files\Calibre2\Calibre Server\base.php:429 Stack trace: #0 C:\Program Files\Calibre2\Calibre Server\base.php(429): PDO->__construct('sqlite:./metada...') #1 C:\Program Files\Calibre2\Calibre Server\author.php(40): Base::getDb() #2 C:\Program Files\Calibre2\Calibre Server\base.php(241): Author::getCount() #3 C:\Program Files\Calibre2\Calibre Server\index.php(24): Page->InitializeContent() #4 {main}exception 'PDOException' with message 'SQLSTATE[HY000] [14] unable to open database file' in C:\Program Files\Calibre2\Calibre Server\base.php:429 Stack trace: #0 C:\Program Files\Calibre2\Calibre Server\base.php(429): PDO->__construct('sqlite:./metada...') #1 C:\Program Files\Calibre2\Calibre Server\author.php(40): Base::getDb() #2 C:\Program Files\Calibre2\Calibre Server\base.php(241): Author::getCount() #3 C:\Program Files\Calibre2\Calibre Server\index.php(24): Page->InitializeContent() #4 {main} Thanks for your help |
01-04-2013, 05:27 AM | #195 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
This kind of error usually come from COPS being unable to access Calibre's database (metadata.db). Check the path and the access rights.
In your case metadata.db seems to be in the same directory that the other COPS's files. |
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 |