News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Folder Permission issue

Started by jezzb, June 13, 2008, 09:44:00 AM

Previous topic - Next topic

jezzb

When I login as administrator I am getting the followinh message:

Performance Warning
The cache directory is not writable - this will adversely affect the performance of your forum.

When go to installed packages and permissions everything is 777 see atached.
With WSFTP I can see that CHMOD settings are also 777. What can be wrong?

Thanks in advance
Jezzb



Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

jezzb


Owdy

#3
Is $cachedir correctly set in Settings.php?

You should have something like this in  there:

$cachedir = '/path/to/your/forum/cache';

If that doesnt exist, add it.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

jezzb

Hi Owdy,

Yes I have the path: $cachedir = '/users/zhone/jb/myforum.com/forum/cache';


Regards
Jezzb

Owdy

Weird, then i dont have a clue whats happening.  Lets wait someone smarter than me.  :D

edit: oh wait, try to chmod that folder to 755
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Mermandamus

I am also having this same issue.

I have set the permissions to both 777 and 755 and tried to change my cache settings both through the admin and by editing the Settings.php file directly. I have confirmed that the Settings.php file shows the amended info but the admin/server settings shows the old information.
My host is powweb.

Rumbaar

Had you moved your forum at all recently? Are you sure you're editing the correct settings.php file?  Have you tried to flush your cache (Forum Maintenance=>Empty the file cache)?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

jezzb

To Rumbaar - Yes I have upgraded from 1.1.5 to Version 2.0 beta 3.1 public.
I did flash tha cache. but it did not help.

Thanks
Jezzb

Rumbaar

Do you have any other permission issues, ie have you been able to install mods via the Package Manager?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

jezzb

When I install mods I go into permissions and set all files to writable and the mod installation works. If I do not perform this permission change the installation will fail.

Thanks, Jezz

Rumbaar

So the folder at this path on your server is set to 777 (/users/zhone/jb/myforum.com/forum/cache) and you've adjusted your settings.php file, but when you look at your Server Settings in your actual forum it's different to this path or the settings you've manually adjusted in that settings.php file?

What is it showing for the  Cache Directory in your Server Settings, and what have you got in your Settings.php file?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

jezzb

Can you please tell me what I should look for in settings.php  please?

Thanks, Jezz

Rumbaar

Quote from: Mermandamus on June 17, 2008, 07:01:49 PMI have confirmed that the Settings.php file shows the amended info but the admin/server settings shows the old information.
The $cachedir =''; setting
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

jezzb

I cannot seem to find the settings under the Administration centre. Where is the location of the cache path please, so that I can compare with what I have in my settings.php file.

Please bear with me cause I am new at this.

Thanks, Jezz

Rumbaar

Quote from: Mermandamus on June 17, 2008, 07:01:49 PMI have confirmed that the Settings.php file shows the amended info but the admin/server settings shows the old information.
Strange in a previous post you've indicated you've looked at these details, compared and found them to be inconsistant.

But yes Server Settings and last entry on that page Cache Directory, should equal $cachedir = in your settings.php.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

jezzb

Hi, I must have seen them on my FTP uploading program ... I am not sure.

Thank you for pointing out where to look. I check the path and it is the same path as in the settings.php file.

I also dicovered the following problem when I clicked on the LANGUAGES link (under server settings:

Fatal error: Cannot redeclare template_init() (previously declared in /users/zalohovane/blabla/blabla.com/forum/Sources/Load.php(1862) : eval()'d code:32) in /users/zalohovane/blabla/blabla.com/forum/Themes/default/languages/index.template.php on line 30


Also under caching I have the following in red text:  SMF has not been able to detect a compatible accelerator on your server.

Thanks, Jezz

Rumbaar

Hmmm that is a strange error indeed, as there is not an index.template.php file in that folder to get an error on.  Can you check that folder for that file and any template files.  Can you post what is on your line 1862 of Load.php.

So have you enabled caching, but don't have an appropriated accelerator installed on your server?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

jezzb

Hi, I have the following template files:

index.template.php
EmailTemplate.english.php

I am attaching a copy of the load.php file I have.

Caching level is set to No Caching at the moment.

Kind Regards
Jesmond

Rumbaar

Can you attach that index.template.php (which was found in the language folder?).  That shouldn't be in there, and I wonder why it's in there and I'm sure as by design it's causing the language error.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: