Advertisement:

Author Topic: What is repair_settings.php?  (Read 720076 times)

Offline raven.find

  • Newbie
  • *
  • Posts: 3
    • Darkhome.org - Raven's Nest
Re: What is repair_settings.php?
« Reply #60 on: March 04, 2006, 10:20:07 PM »


When i hit the download link it takes me to the main download page for the application.  I have looked and don't see it there.  Where is it?
Check Us out at hxxp:Http://www.darkhome.org [nonactive]

Will host your board once somethings get ironed out with my ip.

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: What is repair_settings.php?
« Reply #61 on: March 04, 2006, 10:54:47 PM »
Here you go.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline ddonzal

  • Semi-Newbie
  • *
  • Posts: 52
    • The Ethical Hacker Network - Free Online Magazine
Re: What is repair_settings.php?
« Reply #62 on: March 23, 2006, 06:43:43 PM »
Gotta say, this saved my butt. Many, many thanks.

Offline Col

  • Sr. Member
  • ****
  • Posts: 964
Re: What is repair_settings.php?
« Reply #63 on: June 25, 2006, 03:56:02 PM »
I just had a weird situation where I had to use this utility. I moved server last night, and temporarily used the IP address in the settings, with a link from the old forum. No problem, and today the servername had propagated, at least for me, so I changed the the settings to use the URL. Again, no problem, but shortly afterwards, for some weird reason, the name propagation reverted to the old host. Anyway, because I had changed the settings, I was trapped at the index page. Any time I tried to do anything, I was directed to the old forum, because that is where domain name was pointing. So, I used this utility to change the URL back to an IP, but was alarmed to see the warning appear on the forum about the high security vulnerability. It may as well carried a link to the repair settings file with the database password in plain view.

If you are going to have a warning, please place it in the admin area, or make it visable to logged-in admins only. Of course this is a useful tool, but some thought should be given to display of the warning.

Thanks.

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: What is repair_settings.php?
« Reply #64 on: June 25, 2006, 04:56:08 PM »
The warning is only showed to Admins ;)
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline Col

  • Sr. Member
  • ****
  • Posts: 964
Re: What is repair_settings.php?
« Reply #65 on: June 25, 2006, 06:19:41 PM »
It did cross my mind as I was writing the above, but I thought, 'it would probably indicate that, wouldn't it'!? ::) ;D Anyway, glad to hear it. It did give me some palpitations at the time! :D

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: What is repair_settings.php?
« Reply #66 on: June 25, 2006, 08:39:46 PM »
All of those warning messages are shown ONLY to admins.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline ssanner

  • Semi-Newbie
  • *
  • Posts: 28
Re: What is repair_settings.php?
« Reply #67 on: July 27, 2006, 10:42:45 AM »
Fantastic guys, tried the repair_settings.php and it did the trick.  :P

Offline LoKi`

  • Newbie
  • *
  • Posts: 2
Re: What is repair_settings.php?
« Reply #68 on: August 09, 2006, 10:45:50 AM »
I've installed the newest version of SMF and only the security patch (from package manager) was needed.
I recieve errors after creating new categories on the forum. The error appears only when I try to manage categories over admin center.

Quote
Can't create/write to file '/var/lib/mysql/tmp/#sql_1094_0.MYI' (Errcode: 2)
File: /srv/www/htdocs/test/Sources/Subs-Boards.php
Line: 1457

I've runned the "repair_settings.php" tool and the problem was still there. On plus, it seems that some options won't save at all.

Quote
Queryless URLs:
Value not found!
Output Compression:
Value not found!
Database driven sessions:
Value not found!
Attachment Directory:
Value not found!    
Avatar URL:
Value not found!    
Avatar Directory:
Value not found!   
Smileys URL:
Value not found!   
Smileys Directory:
Value not found! 

Recommendations are made, but they just can't be saved. I don't see any error messages on the tool neither.

Offline xenovanis

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,988
  • Gender: Female
Re: What is repair_settings.php?
« Reply #69 on: August 09, 2006, 02:54:41 PM »
The errormessage you're receiving has nothing to do with repair_settings; it's MySQL telling you something is wrong with the database. You should contact your host about this.

Getting Errors From MySQL?
"Insanity: doing the same thing over and over again and expecting different results."

Offline LoKi`

  • Newbie
  • *
  • Posts: 2
Re: What is repair_settings.php?
« Reply #70 on: August 10, 2006, 04:34:07 AM »
I had mysql server started with no temporary (/var/lib/mysql/tmp/) parameter...
thank you for the support.

Offline reason1041

  • Semi-Newbie
  • *
  • Posts: 15
Re: What is repair_settings.php?
« Reply #71 on: January 08, 2007, 01:52:04 PM »
what do you mean it doesn't work?
what you have to is download that file, then upload it to your smf's root folder, for example http://yourwebsite.com/smfdir/ [nofollow]
then run it by going to http://yourwebsite.com/smfdir/repair_settings.php [nofollow]
now just follow the instruction
[/quo
what do you mean it doesn't work?
what you have to is download that file, then upload it to your smf's root folder, for example http://yourwebsite.com/smfdir/ [nofollow]
then run it by going to http://yourwebsite.com/smfdir/repair_settings.php [nofollow]
now just follow the instruction
tied to visit the link after downloading the file and still cant get my forum up and running

Offline reason1041

  • Semi-Newbie
  • *
  • Posts: 15
Re: What is repair_settings.php?
« Reply #72 on: January 08, 2007, 03:05:52 PM »
I think Ive messed up real big on LPs forum. Was going through all of the administrators options and came across something that said "Edit server settings" . All i did was rename a few things then once i clicked save. Now the following message comes up when you try to access the server:

Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.


ive downloaded several applications and still cant access the forum. is there anyway you can try it.

liberatedpublishing.com/forum/repair_settings.php

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: What is repair_settings.php?
« Reply #73 on: January 08, 2007, 03:44:42 PM »
FTP to your site and rename the Settings.php file to Settings_bak2.php.  Rename the Settings_bak.php to Settings.php.  After that rename Settings_bak2.php to Settings_bak.php
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

3nd3r

  • Guest
Re: What is repair_settings.php?
« Reply #74 on: January 09, 2007, 03:44:16 AM »
┬┐Do you think that repair_settings.php could fix this problem?

http://www.simplemachines.org/community/index.php?topic=139774.msg896307#msg896307

3nd3r

  • Guest

Offline CyndiMJJ

  • Newbie
  • *
  • Posts: 7
Re: What is repair_settings.php?
« Reply #76 on: January 20, 2007, 11:11:57 AM »
can I ask something if I repair the settings, will the board be damaged and will I loose EVERYTHING that I had on my forum??? this is a very important question... since I have lots of posts on my board!

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: What is repair_settings.php?
« Reply #77 on: January 20, 2007, 01:18:28 PM »
No.  Repair settings will just repair the paths and database info if it's wrong.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline CyndiMJJ

  • Newbie
  • *
  • Posts: 7
Re: What is repair_settings.php?
« Reply #78 on: January 21, 2007, 10:44:26 AM »
Thanks problem is solved with me :D

Offline Kesvirit

  • Newbie
  • *
  • Posts: 5
Re: What is repair_settings.php?
« Reply #79 on: January 23, 2007, 02:35:59 PM »
   I'm trying to use the repair_settings.php attached above.  After uploading it, and opening it through the forum URL, filling it out completely and submitting it, I'm getting an error displayed above the page

"Notice: Undefined offset: 0 in /home/kidc/public_html/smboard/repair_settings.php on line 551"

Any suggestions where I should look to troubleshoot this?