Recent Topics

1 Oct 11, 2011 13:35    

Hello,
In back_office / Tools / System I have an error message:
The directory is not writable. -
(I've seen the post about this)
When I allow public writing for the cache directory, I have then the following error message :
"An unexpected error has occurred!
If this error persists, please report it to the administrator."

... and it fact, it persists !

Trying to repair the cache (Tools / Misc) leads to :
HTTP 500 Internal error

Anyway, thanks for the good job :D .
--
Jacques

2 Oct 11, 2011 19:32

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

chown myuser.apache -R /blogs/cache

If it's not your server you should talk to support team

3 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 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 Oct 13, 2011 16:37

I've got the same error, all permission are given, but the error still exists.

Any other ideas?

7 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 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 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 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.

13 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 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 Oct 27, 2011 00:45

Sorry, but no such code in that file !
Jacques

16 Oct 27, 2011 01:07

Yes there is. And the code works great.

17 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


Form is loading...