Configuration Error in Settings.
The first problem i encountered was with the permissions. I set all these files to 755 and the install files would nit let me proceed. So i had to set the file permissions to 777.
After getting around that Tried to go into admin and configure site and I cant change the name of the site in settings. Everytime i change the name of the site in ettings and save it never changes on the homepage. Does anyone have any ideas?
Re: Configuration Error in Settings.
Post by Silvertongue62 » Sat Apr 18, 2009 12:02 am
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.0.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.17.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.18.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.20.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.24.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.25.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.26.1239980066) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.27.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.28.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.29.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.30.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.31.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.32.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.33.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.34.1239980067) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.category.1.37.1239980066) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.country.1239979863) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.language.1239979863) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.manufacturer.1239979822) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.order_status.1.1239979863) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.product.latest.1.8.1239979821) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.product.popular.1.5.1239979822) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.stock_status.1.1239979863) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.weight_class.1.1239979863) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: unlink(/home/gettingl/public_html/glp/cache/cache.zone.222.1239979864) [function.unlink]: Permission denied in /home/gettingl/public_html/glp/system/library/cache.php on line 13
Warning: Cannot modify header information — headers already sent by (output started at /home/gettingl/public_html/glp/system/library/cache.php:13) in /home/gettingl/public_html/glp/system/library/response.php on line 65
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
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
Cache permission denied on Windows #185
Cache permission denied on Windows #185
Comments
Windows seems to be experiencing permissions issues with Doctrine’s Cache, see also [1] and [2].
The text was updated successfully, but these errors were encountered:
It seems to be originating from Doctrine’s filesystem cache access (a third-party library being used), but I can’t see any reason why it should be throwing a permission denied error. I’m not very familiar with Windows (which seems to be the only OS suffering from this issue so far, I actually expected the opposite) and its file system permissions, but it seems to me files in the local temp folder should be read/writable by anyone, especially the same user? Also, the file seems to have been created correctly (otherwise it wouldn’t exist), but reopening it in read-only mode with fopen($file, «r») throws the permission denied.
If anyone wants to take a whirl at tinkering with it, the instantiation of the cache is located in Application.php ( getFilesystemCache ).
I did something pretty dirty in order to remove the warning. I went into Doctrine/cache/lib/Doctrine/Common/Cache/FilesystemCache.php and changed both «fopen» to :
$resource = @fopen($filename, "r"); if(is_bool($resource))
Once again, that’s not ideal, but I needed a quick fix for this issue.
I tried to add «is_readable» but that was not enough.
By curiosity, I added a counter in order to see when it fails => It went from 0 to 10 before sending the warning.
It doesn’t solve anything, but at least I don’t get this warning every 2 seconds.
That’s funny. I did the same thing. It doesn’t make any sense why this error is popping up.
It indeed doesn’t seem to be making a lot of sense. As Doctrine Cache is a (mostly) battle-tested 3rd party library, I’m inclined to think I’m causing the problem somewhere, but I don’t see how simply manging files in the Windows temp folder is not allowed.
Also, the proposed solution will probably make the problem go away, but it will also disable caching entirely.
Out of curiosity: what PHP version are you using and could you take a look at the permissions of the cache file that is failing?
I too am getting this error both in doctrine cache’s doFetch and doContains functions in FileSystemCache class.
I did alter the permissions of the php-integrator-base temp directory and added the group Everyone to have full control. Other than that, my current user, the system group, and the Administrators group for my pc all have full control of the temp directory and is inherited by the files the warnings are for.
The error for doFetch is far more common.
I am using ‘PHP 7.0.7 (cli) (built: May 25 2016 12:52:38) ( NTS )’ installed through chocolatey.
Edit: One of the warnings finally gave me some more info than just the lines from Doctrine Cache FileSystemCache.php. Specifically the last line.
PHP sent back something unexpected. This is most likely an issue with your setup. If you’re sure this is a bug, feel free to report it on the bug tracker.
→ PHP Warning: fopen(C:\Users\Arrorn\AppData\Local\Temp\php-integrator-base\21\1b\5b3132663036353537343830653031663262623866353463646365363235323162676574537472756374757265526177547261697455736572735f613a313a7b693a303b733a333a22373435223b7d5d5b315d.doctrinecache.data): failed to open stream: Permission denied in C:\Users\Arrorn.atom\packages\php-integrator-base\php\vendor\doctrine\cache\lib\Doctrine\Common\Cache\FilesystemCache.php on line 53
PHP Warning: fgets() expects parameter 1 to be resource, boolean given in C:\Users\Arrorn.atom\packages\php-integrator-base\php\vendor\doctrine\cache\lib\Doctrine\Common\Cache\FilesystemCache.php on line 55
PHP Warning: fclose() expects parameter 1 to be resource, boolean given in C:\Users\Arrorn.atom\packages\php-integrator-base\php\vendor\doctrine\cache\lib\Doctrine\Common\Cache\FilesystemCache.php on line 60
PHP Warning: Invalid argument supplied for foreach() in C:\Users\Arrorn.atom\packages\php-integrator-base\php\src\IndexDataAdapter.php on line 390
Hello,
I’m using PHP 5.6.10 (cli) (built: Jun 10 2015 15:59:59).
As @Arrorn did, I added «Everyone» with Full Control on my Local/Temp directory, to no avail.
The solution I used is not good at all, I had to disable php-integrator due to multiple freeze when typing (no cache = a lot of sqlite requests I presume).
When I opened several Doctrine Cache files, I found them mostly empty. I suspect that shouldn’t be the case.
It looks like it can create files just fine, but can’t get the rights to write in it later. and that’s really weird.
As I’m used to work with Windows, sometimes, I have to add a specific user in order to access a folder, but with «Everyone» activated, it should work. so, I’m pretty lost here .
Is there a way to set a specific folder in order to try and move the cache files ?
I’m using PHP 5.6.16 TS 32bits with Windows 7 Pro SP1 64bits.
As @Arrorn and @Armacryss , I added «Everyone» with Full Control on my C:\Users\username\AppData\Local\Temp folder. I also switch my %TEMP% env to C:\Windows\Temp and adjust permissions without luck 🙁