openam / calibrephp

Calibre HTML and OPDS web server based on CakePHP
http://openam.github.io/calibrephp
MIT License
39 stars 14 forks source link

Pages are broken? #5

Closed arpadlukacs closed 10 years ago

arpadlukacs commented 10 years ago

I installed this great tool on my machine using git clone and the master branch. On the index page everything looks good. Count of numbers, styles. When I try to go to the books page it shows a minimal page without any styling and no books at all. The source of page looks like this:

<div class="books index">
    <h2>Books</h2>
    <div>
        <ul class="nav nav-pills">
            <li class="disabled"><a href="#">Sort By:</a></li>
            <li><a href="/books/index/sort:timestamp/direction:asc">Date Added</a></li><li><a href="/books/index/sort:author_sort/direction:asc">Author</a></li><li><a href="/books/index/sort:sort/direction:asc">Title</a></li><li><a href="/books/index/sort:series_index/direction:asc">Series Index</a></li>       </ul>
    </div>

    <div class="book-row">

there is no head tag or anything, just a fraction of a page. The authours page works and looks ok, but when I try to click on a link (eg. /authors/view/156) I get a similar broken page.

openam commented 10 years ago

Are there any errors when you turn debug to 2 in app/Config/core.php? It should be around line 36. Have you tried to refresh your browser cache?

What cache is the app using? It will be in the debug info. It should be something like FileCache or ApcCache. You could try to clear the cache, see the CakePHP documentation.

arpadlukacs commented 10 years ago

Thanks for helping me. The debug was turned on by default (2) and the pages did not show any error. It used FileEngine. I tried clearing the cache, I also tried different browsers without luck. Then I switched to ApcCache and the same pages are still broken there too. What is weird to me, if the cache does not work properly for me, why always the same pages are broken and why other same pages look ok? Even when I go to /books without loading the index page first, right after clearing the cache, the page is broken, but the authors page still ok. Update: I have also tried Redis for cache, but it gives me the same broken pages.

openam commented 10 years ago

I removed the APC cache from bootstrap.php. I also added a Vagrant environment setup.