Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Slim Application Error when downloading #119

Closed
a2372305 opened this issue Sep 6, 2014 · 3 comments
Closed

Slim Application Error when downloading #119

a2372305 opened this issue Sep 6, 2014 · 3 comments

Comments

@a2372305
Copy link

a2372305 commented Sep 6, 2014

When downloading a book the following error occurs systematically:

Slim Application Error

The application could not run because of the following error:
Details
Type: ErrorException
Code: 2
Message: filesize(): stat failed for /volume1/books/Real Bergevin/Call Centers for Dummies (3691)/Call Centers for Dummies - Real Bergevin.pdf
File: /volume1/web/bbs/index.php
Line: 1112
Trace
#0 [internal function]: Slim\Slim::handleErrors(2, 'filesize(): sta...', '/volume1/web/bb...', 1112, Array)
#1 /volume1/web/bbs/index.php(1112): filesize('/volume1/books/...')
#2 [internal function]: book('3691', 'Call Centers fo...')
#3 /volume1/web/bbs/vendor/slim/slim/Slim/Route.php(436): call_user_func_array('book', Array)
#4 /volume1/web/bbs/vendor/slim/slim/Slim/Slim.php(1307): Slim\Route->dispatch()
#5 /volume1/web/bbs/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#6 /volume1/web/bbs/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#7 /volume1/web/bbs/lib/BicBucStriim/calibre_config_middleware.php(50): Slim\Middleware\MethodOverride->call()
#8 /volume1/web/bbs/lib/BicBucStriim/login_middleware.php(33): CalibreConfigMiddleware->call()
#9 /volume1/web/bbs/lib/BicBucStriim/own_config_middleware.php(33): LoginMiddleware->call()
#10 /volume1/web/bbs/lib/BicBucStriim/caching_middleware.php(41): OwnConfigMiddleware->call()
#11 /volume1/web/bbs/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): CachingMiddleware->call()
#12 /volume1/web/bbs/vendor/slim/slim/Slim/Slim.php(1254): Slim\Middleware\PrettyExceptions->call()
#13 /volume1/web/bbs/index.php(193): Slim\Slim->run()
#14 {main}

@jampot5000
Copy link
Contributor

This error seems to be caused when the webserver does not have write permissions to the folder to folder that is storing your books, what device are you using?

@jampot5000
Copy link
Contributor

You should be able to fix this by connecting to your device by ssh and doing

cd /volume1
chmod -R 666 books

@rvolz
Copy link
Owner

rvolz commented Sep 9, 2014

Did the approach mentioned above solve the problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants