News:

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

Main Menu

My Forum in Maintenance mode

Started by bukharifaran, October 31, 2019, 06:19:00 AM

Previous topic - Next topic

bukharifaran

I have moved my mobile forum from one hosting account to another account. (Same hosting provider but different account).

I have deleted one ZIP file from the file manager and don't remember the file name. After that, I am getting this error:

Maintenance Mode
Okay faithful users...we're attempting to restore an older backup of the database...news will be posted once we're back!

This is my forum link: https://www.mobilefun.pk/forum/

Kindly let me know what to do from here?
My Forum: Mobile Fun | My Blog: Mobile Fun Blog

m4z

Just to be clear, you didn't just move the files, but also migrated (exported, imported) the database (or are still using the same DB server)?
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

bukharifaran

Yes, I have exported the database file as well.
But I don't know if I need to edit any file like we edit wp-config.php file while moving WordPress site to provide new database name and username. If I need to edit any file, kindly let me know the file name.
My Forum: Mobile Fun | My Blog: Mobile Fun Blog

m4z

I have no experience migrating a forum... Did you set it to maintenance mode before the migration?

Or is $maintenance in Settings.php set to anything but "0"?
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

d3vcho

Quote from: m4z on October 31, 2019, 06:35:08 AM
I have no experience migrating a forum... Did you set it to maintenance mode before the migration?

Or is $maintenance in Settings.php set to anything but "0"?

Basically this. In the file Settings.php there's a variable called $maintenance that accepts 3 values: 0 is for no maintenace, 1 is for normal maintenace and 2 is for maintenance without forum access. Just set this value to either 0 or 1 and save the file (reupload if needed).
"Greeting Death as an old friend, they departed this life as equals"

bukharifaran

Quote from: d3vcho(); on October 31, 2019, 06:36:47 AM
Quote from: m4z on October 31, 2019, 06:35:08 AM
I have no experience migrating a forum... Did you set it to maintenance mode before the migration?

Or is $maintenance in Settings.php set to anything but "0"?

Basically this. In the file Settings.php there's a variable called $maintenance that accepts 3 values: 0 is for no maintenace, 1 is for normal maintenace and 2 is for maintenance without forum access. Just set this value to either 0 or 1 and save the file (reupload if needed).

Thank you. It worked. But don'w know how the value set to 2?  I didn't do that.

Anyhow, now it is live again after setting the value to '0'.
My Forum: Mobile Fun | My Blog: Mobile Fun Blog

d3vcho

It was set on his own and I believe it's the expected behaviour to avoid malicious attacks.
"Greeting Death as an old friend, they departed this life as equals"

m4z

Quote from: bukharifaran on October 31, 2019, 06:45:55 AM
Thank you. It worked. But don'w know how the value set to 2?  I didn't do that.

Anyhow, now it is live again after setting the value to '0'.

Glad to hear it. (I've moved the topic, because your forum is running SMF 2.0.15, not 2.1 ;))

"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

Arantor

The upgrade script sets it to 2 normally.

d3vcho

Quote from: Arantor on October 31, 2019, 06:51:14 AM
The upgrade script sets it to 2 normally.

Yes, but OP didn't mention anything related to upgrade process. He said he just deleted a file, that's why I wasn't sure why it was set to 2.
"Greeting Death as an old friend, they departed this life as equals"

bukharifaran

I didn't try to upgrade. But I guess the file that I deleted was related to the SMF upgrade.
My Forum: Mobile Fun | My Blog: Mobile Fun Blog

Advertisement: