Home
failed to patch index.php
  Welcome, Guest. Please login or register.
December 04, 2008, 11:09:38 PM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: failed to patch index.php « previous next »
Pages: [1] Go Down Print
Author Topic: failed to patch index.php  (Read 5636 times)
junaidy
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
failed to patch index.php
« on: September 01, 2005, 02:41:26 PM »

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

maybe somebody have an idea?
Huh
Logged
Slotos
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: failed to patch index.php
« Reply #1 on: September 05, 2005, 09:46:27 AM »

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

ls -la returns
Quote
drwxrwxrwx  15 nobody nogroup  4096 2005-09-05 12:06 ./
drwxrwxrwx   5 nobody nogroup  4096 2005-09-05 11:06 ../
-rwxrwxrwx   1 nobody nogroup   611 2005-09-05 14:43 .htaccess*
-rwxrwxrwx   1 nobody nogroup 63139 2005-08-26 11:10 CHANGELOG.php*
-rwxrwxrwx   1 nobody nogroup  3725 2005-01-23 01:10 INSTALL*
-rwxrwxrwx   1 nobody nogroup 17977 2004-12-03 13:19 LICENSE*
-rwxrwxrwx   1 nobody nogroup  6424 2005-08-09 09:56 TODO.php*
drwxrwxrwx   9 nobody nogroup  4096 2005-08-26 12:06 administrator/
drwxrwxrwx   3 nobody nogroup  4096 2005-09-05 13:38 cache/
drwxrwxrwx  17 nobody nogroup  4096 2005-09-05 13:48 components/
-rwxrwxrwx   1 nobody nogroup  2965 2005-09-05 14:53 configuration.php*
-rwxrwxrwx   1 nobody nogroup  6548 2005-07-27 08:56 configuration.php-dist*
drwxrwxrwx   2 nobody nogroup  4096 2005-08-26 12:06 editor/
drwxrwxrwx   9 nobody nogroup  4096 2005-09-05 14:03 forum/
-rwxrwxrwx   1 nobody nogroup  1047 2005-08-09 09:56 globals.php*
-rwxrwxrwx   1 nobody nogroup   822 2005-02-22 03:33 globals.php-off*
-rwxrwxrwx   1 nobody nogroup  1420 2005-06-15 07:15 globals.php-on*
drwxrwxrwx   3 nobody nogroup  8192 2005-08-26 12:07 help/
drwxrwxrwx   6 nobody nogroup  4096 2005-08-26 12:07 images/
drwxrwxrwx  12 nobody nogroup  4096 2005-08-26 12:08 includes/
-rwxrwxrwx   1 nobody nogroup  7692 2005-08-26 11:10 index.php*
-rwxrwxrwx   1 nobody nogroup  4100 2005-08-09 09:56 index2.php*
drwxrwxrwx   3 nobody nogroup  4096 2005-08-26 12:08 language/
-rwxrwxrwx   1 nobody nogroup   453 2005-01-06 03:13 mainbody.php*
drwxrwxrwx   9 nobody nogroup  4096 2005-08-26 12:09 mambots/
drwxrwxrwx   2 nobody nogroup  4096 2005-09-05 13:48 media/
drwxrwxrwx   3 nobody nogroup  4096 2005-08-26 12:09 modules/
-rwxrwxrwx   1 nobody nogroup  2272 2005-07-16 05:50 offline.php*
-rwxrwxrwx   1 nobody nogroup  2216 2005-07-16 05:50 offlinebar.php*
-rwxrwxrwx   1 nobody nogroup   448 2005-04-24 18:03 pathway.php*
-rwxrwxrwx   1 nobody nogroup   286 2004-12-03 13:19 robots.txt*
drwxrwxrwx   6 nobody nogroup  4096 2005-08-26 12:09 templates/
-rwxrwxrwx   1 nobody nogroup  4079 2005-07-22 08:11 xmlrpc.client.php*
-rwxrwxrwx   1 nobody nogroup  1978 2005-07-11 04:16 xmlrpc.server.php*

Apache is running as nobody.

Virtual Host configuration:
Quote
<VirtualHost *:8000>
    DocumentRoot /wwwroot/roma
    ServerName mambo.local
    <Directory "/wwwroot/roma">
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
ErrorLog /wwwroot/logs/mambo.local-error_log
CustomLog /wwwroot/logs/mambo.local-access_log common
DirectoryIndex index.php index.html
</VirtualHost>

.htaccess file is mambo standard file with one extra line:
Quote
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

AddDefaultCharset windows-1251

ĞPatch mambo index.php fileğ link gives following error:
Quote
Failed: Mambo main path or index.php is not writeable!

upd
Problem is with the apache configuration not the mos-smf bridge. Sorry for disturbance.
« Last Edit: September 06, 2005, 07:15:37 AM by Slotos » Logged
Slotos
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: failed to patch index.php
« Reply #2 on: September 20, 2005, 10:30:08 AM »

Back to Mambo and here is the solution:

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 » Logged
Pages: [1] Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: failed to patch index.php « previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
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