1 egbmn Oct 11, 2011 13:35
3 egbmn Oct 11, 2011 21:19
Thanks for the Welcome.
In fact, what I experience is new to v4.1.1
I'm upgrading regularly since v2 and this never happened...
I tried all combinations of parameters for the cache directory and none gives me something error free.
It's either
"cache not readable" or "cache not writable"...
or if all permissions given
"unexpected error"
Requested Blog from T_blogs without ID!
I'm admin on a shared server.
thank you for your help.
Jacques
4 fplanque Oct 12, 2011 02:58
It's normal that this is new since page caching is only enabled bu default since this version.
You need to give the cache directory the same permissions as the media directory. If b2evo can write to the media dir it can write to the cache dir with the same file permissions.
If nothing else, you can disable page caching in the admin.
5 margaale Oct 13, 2011 16:37
I've got the same error, all permission are given, but the error still exists.
Any other ideas?
6 margaale Oct 13, 2011 17:06
I figured it out how to solve this issue. If you go to Caching (General Settings) and check "Enable general cache" the error dissapears.
The other problem is that there is a bug preventing you from going to General setting, the solution to that one is in this comment:
http://b2evolution.net/news/2011/10/04/b2evolution-4-1-1-stable#c22942
7 sam2kb Oct 13, 2011 19:00
I figured it out how to solve this issue. If you go to Caching (General Settings) and check "Enable general cache" the error dissapears.
Which may mean that /cache/general directory was missing
Anyway this looks like a bug, since we need to create all cache directories on upgrade.
8 egbmn Oct 13, 2011 19:22
fplanque wrote:
...
If nothing else, you can disable page caching in the admin.
François,
I'm sorry and I feel stupid :(
the "general cache" was not enabled.
Enabling it solves the problem of course.
The error message was a bit confusing.
With my apologies.
PS I'm the same "Jacques" as the one who submitted the commentary concerning the bug preventing from opening the "Misc/General" tab.
Thanks again.
9 margaale Oct 14, 2011 02:33
sam2kb wrote:
I figured it out how to solve this issue. If you go to Caching (General Settings) and check "Enable general cache" the error dissapears.
Which may mean that /cache/general directory was missing
Anyway this looks like a bug, since we need to create all cache directories on upgrade.
Yes indeed, the general directory was missing, i manually created it before i found the solution. But, i don't think that's the case, because if you uncheck the cache setting the error comes back.
And by the way, mine was a clean installation not an upgrade.
10 fplanque Oct 26, 2011 04:50
Now I am confused ;) Can somebody sum up how to enable/disabled the bug and what exactly you see when there is a bug? (a screenshot would help)
Thank you.
11 egbmn Oct 26, 2011 10:29
Hi François,
I get a somewhat confusing error in Tools/System when the general cache is not enabled in Admin /General settings tab.
It says :
http://www.le-fataliste.fr/tmp/b2evo_cache_error.jpg
cordialement,
Jacques[/img]
12 sam2kb Oct 26, 2011 18:31
Fixed
13 margaale Oct 26, 2011 21:31
Great!!! Are you going to release a patch or we'll have to wait untill the next version comes out?
14 sam2kb Oct 26, 2011 21:38
New release should be out soon.
If you don't want to wait, edit the file /inc/tools/model/_system.funcs.php line 210
replace
$Blog = NULL;
$result = NULL;
if( ( $blog_ID == NULL ) && ( $Settings->get( 'general_cache_enabled' ) ) )
{
$result = system_check_dir( 'cache', 'general/' );
$before_msg = T_( 'General cache' ).': ';
}
with
$Blog = NULL;
$result = NULL;
if( $blog_ID == NULL )
{
if( $Settings->get( 'general_cache_enabled' ) )
{
$result = system_check_dir( 'cache', 'general/' );
$before_msg = T_( 'General cache' ).': ';
}
}
15 egbmn Oct 27, 2011 00:45
Sorry, but no such code in that file !
Jacques
16 margaale Oct 27, 2011 01:07
Yes there is. And the code works great.
17 egbmn Oct 27, 2011 09:16
Yes, you're right. It's there. I was checking in my local copy which is still the previous 4.05 version... I apologize.
Thanks to all.
Jacques
Welcome to the forums!
Please check /cache directory owner. I believe you get the error because of 777 permissions, use 750 instead. And make sure that PHP can create new files in /cache
You may need to change group too
If it's not your server you should talk to support team