News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Cache setting will not save

Started by Sir Osis of Liver, March 30, 2019, 11:31:02 PM

Previous topic - Next topic

Sir Osis of Liver

2.0.15 install, just moved to new host.  repair_settings will not save cache directory.  Recommended path is correct, directory is there, always comes back 'value not found'.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

shawnb61

Sure sounds like permissions.    What OS?
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Sir Osis of Liver

Directory is 755, two files are 644.  Deleted /cache and uploaded clean, same thing, will not save setting.  Uploaded clean set of files due to other problems.  The guy did some bad things to the forum, but most everything is working normally.

Forum version: SMF 2.0.15 (more detailed)
Current SMF version: SMF 2.0.15
GD version: bundled (2.1.0 compatible)
Database Server: MariaDB
MySQL version: 10.2.23-MariaDB
PHP: 5.6.40
Server version: LiteSpeed
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Aleksi "Lex" Kilpinen

Manually check your settings.php, just to make sure it looks intact, only has one $cachedir = '/path'; and that the path is correct.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Sir Osis of Liver

Well, that's the problem.  There is no $cachedir setting, maybe something has to be there for repair_settings to save it.  Will try adding it manually.

Yeah, that fixed it.  Would have thought repair_settings would add the path if it's missing, but apparenly not.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Lex, interestingly (or not) this may be related to something we touched on in another topic recently.  This forum's Settings.php does not contain $db_type, repair_settings returns value not found for database engine.  As with $cachedir setting, it does not save recommended value, and apparently has no effect on forum.  Settings.php in 1.1 branch does not contain $db_type, I'm wondering if upgrade adds the setting, or is it missing in all 2.0 forums that were upgraded from 1.1.  Maybe I'll try it and see.  This is why I commented in previous topic that it's usually not a problem if the setting is missing.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor

Yes, the upgrade should add the db_type setting.

Sir Osis of Liver

Why is repair_settings unable to save missing variables?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor

Because the underlying routine cannot add new values. Long story attached to how the logic of editing the file goes since it preserves settings it doesn't know at the same time.

Advertisement: