Skip to content
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

Issue with cache loader #47

Open
danielchatfield opened this issue Apr 15, 2012 · 2 comments
Open

Issue with cache loader #47

danielchatfield opened this issue Apr 15, 2012 · 2 comments

Comments

@danielchatfield
Copy link
Contributor

I'm getting this error (on some server setups):

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/9Z9Ngp) is not within the allowed path(s): (/home/www/web362/) in /home/www/web362/html/wordpress/wp-content/plugins/password-protect-wordpress-blog/lava/_classes/h2o/loaders.php on line 181

Warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/www/web362/) in /home/www/web362/html/wordpress/wp-content/plugins/password-protect-wordpress-blog/lava/_classes/h2o/loaders.php on line 190

Warning: file_put_contents(/h2o_0568baaca511328a453079f08744fa99) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/web362/html/wordpress/wp-content/plugins/password-protect-wordpress-blog/lava/_classes/h2o/loaders.php on line 208

Is there a way to disable the cache or tell it to store it somewhere else rather than a temp directory (which it doesn't have the permission to create). I see that cache_dir is a option but I can't see how I can pass an options array without changing your code. The function which creates and returns the file loader only takes one parameter - maybe this needs to be changed to support a second parameter ($options - which would default to a blank array).

@danielchatfield
Copy link
Contributor Author

Figured out how to pass an options array - I was getting confused.

@danielchatfield
Copy link
Contributor Author

Actually I'll leave the issue open because ideally this error would be caught and if the cache directory could not be made due to permission issues it would just not use a cache.

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

No branches or pull requests

1 participant