seblucas / cops

Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)
http://blog.slucas.fr/en/oss/calibre-opds-php-server
GNU General Public License v2.0
1.43k stars 229 forks source link

Issue after update to 1.1.0 #338

Closed Tos26 closed 7 years ago

Tos26 commented 7 years ago

Hi,

I updated my COPS from version 1.0.1 to 1.1.0 and now I have only a blank page without error message. I have PHP 5.4.45 on my server. I saw this page on mobileread. Is it a symptom linked to this subject and if yes, is PHP 5.6 mini the only solution to fix this issue?

seblucas commented 7 years ago

Can you get PHP error log ?

Tos26 commented 7 years ago

Hi seblucas,

Here is the php error log:

2017/04/06 21:15:24 [error] 2004#0: *4184 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/cops/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/cops/config.php on line 9 PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/cops/vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cops/config.php on line 9" while reading response header from upstr$ 2017/04/06 21:15:25 [error] 2004#0: *4184 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.0.254, server: xx.xxx.xx.xxx, request: "GET /favicon.ico HTTP/1.1", upstream: "fastc$ 2017/04/06 21:15:25 [error] 2004#0: *4184 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.0.254, server: xx.xxx.xx.xxx request: "GET /favicon.ico HTTP/1.1", upstream: "fastc$ 20

seblucas commented 7 years ago

Did you use the official package or did you update with git ?

Tos26 commented 7 years ago

I updated from the ZIP on github.

seblucas commented 7 years ago

To be sure that was this link : https://github.com/seblucas/cops/releases/download/1.1.0/cops-1.1.0.zip ?

That strange, I've tested with PHP 5.5 a few days ago, I have not tested it with PHP 5.4 for a long time to tell the truth. I'll create a docker environment to check when I'll get the time.

Tos26 commented 7 years ago

Ok I'll test with this file. Actually I got the cops-master.zip file from github.

seblucas commented 7 years ago

Then the error is normal (no composer dependencies), I guess cops-1.1.0.zip should work. Please close this ticket if it works as expected.

Thanks in advance.

seblucas commented 7 years ago

Travis says it works with PHP 5.4 : https://www.travis-ci.org/seblucas/cops/builds/219710874

So I'm confident ;)

chadberg commented 7 years ago

I did a git pull, and I am also getting an error about vendor/autoload.php from the config file. Looking at the repo, I do not see this file, so I guess I'm not surprised that it's throwing an error.

EDIT: Nevermind. I found the new part of the readme about installing from sources, and added the composer parts. Working fine now.

Tos26 commented 7 years ago

Ok. I downloaded the right archive from releases folder and now it works fine.

Thank you and continue to work on this wonderful tool for our ebooks !