05-04-2012, 03:30 AM | #226 | |
Grand Sorcerer
Posts: 11,911
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
You could avoid doing anything by running COPS (https://www.mobileread.com/forums/sho...d.php?t=170903) along side the standard web server. Of course they would need to be on different ports, or alternatively use a reverse proxy scheme. |
|
05-20-2012, 11:00 AM | #227 |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2012
Device: prs-650
|
strange php error
First of all, thank you for the server, it is exactly what I was looking for.
I installed it and everything ist working fine, I can log in and it seem that the server is reading my database...it shows me that I have 3 different titles, two languages and so on. But when I click on "3 Titles" I get an html 500 error. My apache log is showing an strange php error: "PHP Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct():..." and so on. Anyone an idea what I can do about it? |
Advert | |
|
05-20-2012, 11:56 AM | #228 | |
Grand Sorcerer
Posts: 11,911
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
What version of calibre was used to create the database? Have you changed the format of the published date or the timestamp in calibre? If so, then you should change the configuration variables "pubdate_format" and "timestamp_format" to the same string. |
|
05-20-2012, 01:27 PM | #229 | |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2012
Device: prs-650
|
thank you very much for your fast reply. Yes I really clicked on "Titles [3]". The Database was generated with calibre 0.8.46, afterwards I moved the whole database with ftp to the server.
I didnt change anything in the database. The whole error: Quote:
|
|
05-21-2012, 03:49 AM | #230 |
Grand Sorcerer
Posts: 11,911
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@sennierer: Remove E_STRICT from the php.ini setting "error_reporting".
|
Advert | |
|
05-21-2012, 07:02 AM | #231 |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2012
Device: prs-650
|
that didnt change anything. the error.log is reporting the same error and it is still not working...
|
05-21-2012, 07:02 AM | #232 |
Grand Sorcerer
Posts: 11,911
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Did you restart apache?
The other thing you can do is set the timezone in PHP. --- [Date] ; Defines the default timezone used by the date functions date.timezone = 'Europe/London' --- Of course you should put the timezone string that makes sense for you. Last edited by chaley; 05-21-2012 at 07:15 AM. Reason: Add timezone comment |
05-21-2012, 07:14 AM | #233 |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2012
Device: prs-650
|
partly solved..
ok, when I switch in the config file to 'use_short_form' I get an overview with short descriptions and so on. When I click on Book Details I get the same error as before, but as I dont need the details that doesnt matter.
I still cant download a book as the server cant find the books. I am using symlinks on my server, is it possible that this causes a problem with the path to the files? Many thanks for your help! |
05-21-2012, 07:27 AM | #234 | |
Grand Sorcerer
Posts: 11,911
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
php exception "It is not safe to rely" you will find a lot of comments on this problem. As for following symlinks, I have never tried it. I am not surprised it doesn't work. You might try adding FILEINFO_SYMLINK to the option on line 61 on book_format.php, but I am not at all sure that this is enough to fix it. Alternatively, you could use the real calibre library instead of a symlinked version of it, which is what the server expects. |
|
05-21-2012, 07:48 AM | #235 |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2012
Device: prs-650
|
thanks a lot, I already solved the date issue with your last post and I am going to try your symlink suggestion...if its not working I am going to put it in the www directory.
Thank you very much for your help. |
05-21-2012, 07:55 AM | #236 | |
Grand Sorcerer
Posts: 11,911
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The library_dir config parameter should contain the full path to the directory containing your library, which should not be in web space (visible to your web server). If use_internal_login is true, then password_file should contain a full path to a file built with ht_passwd that also is not in web space. |
|
05-21-2012, 08:05 AM | #237 | |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2012
Device: prs-650
|
moving to the webserver didnt help anything...he is searching for strange urls:
Quote:
|
|
05-21-2012, 08:07 AM | #238 |
Grand Sorcerer
Posts: 11,911
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
My guess is that you are using a CGI solution for PHP instead of an apache module. If you do this, then you must take steps to ensure that the php script in the middle of the URL is executed, passing along the rest of the URL to that script. There are several posts on this thread about how to do that.
|
05-21-2012, 08:32 AM | #239 |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2012
Device: prs-650
|
oThat helped, thank you very much. I enabled the mod and now everything is working fine!
|
07-26-2012, 05:48 AM | #240 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2012
Device: iPhone 4S
|
Search function
First of all thanks for the great work you did on this. Especially the different user (.htpasswd) function made my life a lot easier.
There's only one thing; I seem to have some problems with the search function in the PHP version. If I conduct a search all is well, if I conduct a second search, without logging out and in again, it only searches within the first search results. Is there a way, like in the original (kovidgoyal) version, to search from scratch? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Command Line usage with PHP | artoros | Related Tools | 13 | 07-01-2010 09:57 AM |
Web Content Server | mezme | Calibre | 7 | 01-08-2010 09:59 PM |
Calibre web server on MAC I cant get to work.. any help appreciated. | stustaff | Calibre | 5 | 01-06-2010 06:05 PM |
Calibre - web server problems | eclpmb | Calibre | 9 | 11-28-2008 02:04 PM |