-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm experiencing a performance problem epubreader.php #531
Comments
Can you unzip the epub manually with unzip on the Synoligy? It might be broken. |
You are right. indeed unzip is broken.
how to change the unzip command (or unzipper) in COPS? |
1 - COPS works with php-zip. I do not think that is available from the command line. 2 - do you get this error with every epub file or just with 1 particular epub file? 3 - Usually zip can be used to unzip as well. Use zip (or 7z) to try to unzip the epub file. This to check if this epub file is corrupted. |
|
Your best bet to solve this is to repost your problem, together with the info from your last post, on https://github.com/mikespub-org/seblucas-cops/issues. |
Rather than repost, first try installing a more recent version of COPS available at https://github.com/mikespub-org/seblucas-cops/ as a number of bugs have been squashed. If you still get the same issue then please post an issue there. Do be careful to read the readme first, as which version to install depends on what version of PHP you are running on your Synology. |
If the most recent version of PHP on the Synology is 7.4 @viking-k has probably installed the most recent compatible version of (new) COPS. Support from that site? @viking-k Maybe reinstall COPS 1.5.4 ? |
Issue confirmed! Installed. latest COPS from https://github.com/mikespub-org/seblucas-cops/releases/download/2.2.1/cops-2.2.1.zip and tried to use viewer. PHP 8.2.7. [Wed Jan 24 14:35:44.976454 2024] [php:error] [pid 1091] [client 192.168.1.yyy:58318] PHP Fatal error: Uncaught Error: Call to a member function getDatabaseId() on null in /var/www/html/cops/lib/Output/EPubReader.php:107\nStack trace:\n#0 /var/www/html/cops/epubreader.php(23): SebLucas\Cops\Output\EPubReader::getReader()\n#1 {main}\n thrown in /var/www/html/cops/lib/Output/EPubReader.php on line 107, referer: http://192.168.1.xxx/cops/index.php?page=10&db=2 I used firefox (Brave browser does not work at all, probably Brave issue) |
That doesn't look to be the same issue reported by @viking-k - that was a
300 error with a specific trace.
Unless viking-k has a specific reason to run a more recent version of PHP
than mentioned in the readme on mikespub, I would stick with those versions
since they have been shown to work.
For any issues relating to COPS from mikespub report issues there.
If PHP is stuck on version lower than 7 on the Synology for some reason,
unfortunately I don't think anyone is still working on that.
…On Wed, 24 Jan 2024, 1:08 pm marioscube, ***@***.***> wrote:
@viking-k <https://github.com/viking-k> @dunxd <https://github.com/dunxd>
Issue confirmed!
Installed. latest COPS from
https://github.com/mikespub-org/seblucas-cops/releases/download/2.2.1/cops-2.2.1.zip
<http://url> and tried to use viewer. PHP 8.2.7.
HTTP error 500
—
Reply to this email directly, view it on GitHub
<#531 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD6W2HKPPG2M4NSFTRRV4ATYQEBWHAVCNFSM6AAAAABB3EFU5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGA4TAOJVGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Both issues are related to the monocle viewer. In my humble opinion monocle should be removed from COPS and/or replaced with a better working epub viewer. Maybe I will report this issue in the mikespub repository. |
What is the output of http://YourLocalIP/cops/checkconfig.php ? |
Unfortunately I am limited to PHP 7.4. This is the newest version of PHP available. So the COPS version available to me is 1.5.4.
Any (firefox, Chrome, Windows Edge)
I used the https://synocommunity.com/package/cops package. Reinstallation did not yield any results.
|
I realize my version of COPS is too old, anyway thanks for the help. |
what you can do is install version 1.5.4 of COPS directly from GitHub. install in a new directory copsnew and try again should work. |
Viewing epubs in the Browser works for me using mikespub version 2.2.2 - every epub I've thrown at it works fine. But yes, monocle's readme itself warns that it is no longer maintained. Do you have thoughts for a replacement? Please do post your thoughts on monocle over there. I'm not sure it is even possible to make updates to this repo. |
The error persists on the version from https://github.com/mikespub-org/seblucas-cops/releases/download/1.5.4/cops-1.5.4.zip |
@dunxd Works only on the first library. on other libraries I get either a white screen or the wrong book. |
It might be a PHP error. Can you reinstall PHP7.4? |
Report any issues with the mikespub fork in that fork's repository were it may be picked up by those working on it - not here or by reply to these messages. Start a new issue at https://github.com/mikespub-org/seblucas-cops/issues. |
comrades, Issues can be closed. I was able to install the same COPS 1.5.4-9 package on the same version of PHP 7.4 , but on a different synology. No problems with epub viewing. I will now look for the cause in my DSM. |
@marioscube the error you reported above
should be fixed in release 2.2.2 This is unrelated to the original issue reported by @viking-k |
COPS 1.5.4 on Synology. When I try to view epub, it gives the following message
300 Fatal error: Uncaught Exception: Failed to read epub file in /volume1/web/cops/vendor/mikespub/php-epub-meta/src/EPub.php:
that is, an error in opening the ZIP file
What could be the reason?
The text was updated successfully, but these errors were encountered: