i got this error when tried to patch the index file -- Failed: Mambo main path or index.php is not writeable! -- but, my Mambo main patch is 777 and also with index.php
I've got the same error with: — Apache 1.3.33 — mod_php 4.4.0 — Mambo 4.5.3 — SMF 1.1 Beta 3 Public — MamboSMFForum 1.3.2b1
Mambo-SMF Forum configuration permission check returns:
Quote
PERMISSION SETTINGS: Configuration file (/wwwroot/roma/administrator/components/com_smf/config.smf.php) is writeable Mambo cache directory (/wwwroot/roma/cache) is writeable Mambo index file (/wwwroot/roma/index.php) is writeable Mambo main path (/wwwroot/roma) is writeable
1. Open <mambodir>/administrator/components/com_smf/functions.smf.php. 2. Search for function patchMamboIndexFile(). 3. Search for "\$mainframe->login();"; into that function. 4. Replace it with "\$mainframe->login()";.
Explanation:
Quote from: MamboV4.5.2.3-stable
if ($option == "login") { $mainframe->login(); …
Quote from: MamboV4.5.3-beta
if ($option == 'login') { if (!$mainframe->login()) { $mainframe->logout(); mosErrorAlert( $_LANG->_( 'LOGIN_INCORRECT' ) ); …
----------------
5. Search for:
Code:
if ($option == 'login') { // Log in if (! //MAMBOHACKS.COM require_once ($mosConfig_absolute_path."/components/com_smf/smf.php"); doMamboSMF();
$mainframe->login()) { $mainframe->logout();
6. Replace with:
Code:
if ($option == 'login') { // Log in //MAMBOHACKS.COM require_once ($mosConfig_absolute_path."/components/com_smf/smf.php"); doMamboSMF(); if (!$mainframe->login()) { $mainframe->logout();
PS: Still testing though.
« Last Edit: September 20, 2005, 11:13:20 AM by Slotos »
None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved. TERMS OF USE