- Moderated by:
- Support
-
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
David,
The site off feature works on permissions so if your logged in you should be ok. However, if I remember correctly, you can reset the site off feature with the new swiss army knife.
-Mark -
- rank:
-
Freshman
- registered:
- February 2004
- Status:
- offline
- last visit:
- 20.03.07
- Posts:
- 47
Mark, thank you! :D
OK, for the next person that makes the same mistake, here is the full answer:
PostNuke 0760 contains a useful feature: it lets you switch off your site (disable your site) so that visitors just get a page reporting that the site has been disabled, together with whatever message you choose to post on that page.
You can access this feature by going to the System tab of the Adminsitration Panel, and then choosing Settings. A few lines down the page, you will find a checkbox beside "Switch site off". If you put a checkmark beside this option (and optionally type a message in the edit box marked "Reason for disabling access to site") and then click on the "Save settings" button at the bottom of the page, your site will no longer be accessible to visitors.
If you stay logged in (for instance, if you put a checkmark beside the "Remember me" option when you logged in), you have no problem. When you surf in to your site, you'll see the home page as usual, and can get to the administration panel by clicking on Administration in the side menu.
But if you disable the site (following the procedure explained above) and then you LOG OUT of your site, you're going to be a bit stuck to get back in. Even if you attempt to go straight to the administration panel or to the log-in page directly (via mysitename.com/admin.php or mysitename.com/user.php) you will still be locked out.
1) DON'T PANIC! :) Instead, go and download the latest version of the PostNuke Swiss Army Knife (you can find it in t…evelopment Releases).
2) Open the .ZIP or .tgz file (psak102.zip, for example, if you downloaded the .ZIP version) and extract the contents onto your computer (your desktop for instance). Look in the unpacked "utilities" directory and locate the file called "psak.php".
3) Upload that file into the root directory of your web site. It should be located in the same directory as your site's "config.php" file.
4) Invoke "psak.php". For instance, from your web browser, enter the URL mysitename.com/psak.php (where "mysitename.com" should be replaced by the domain name of your web site).
5) In the page that displays, choose "Switch site on" from the menu.
6) Another page displays, saying, "Site On > This function will switch your PN site on after switching it off in the settings and logging out." Click on the "Submit" button. Your site will now be re-enabled. DON'T STOP READING.
7) Before doing anything else, go and delete that "psak.php" file from your web site. Leaving it there will leave your site in an unsecure state. It's a great tool, but don't leave it on your web site where someone else might get access to it.
There! Problem solved. There may be another solution, but this one works and will get you out of trouble. It worked for me. :) -
- rank:
-
Professional
- registered:
- March 2002
- Status:
- offline
- last visit:
- 15.04.07
- Posts:
- 2489
Thank you, davidnelson, for that thorough explanation. It's much appreciated!
Frank
--
Serious hosting - all the features, bandwith and storage you could want without breaking the bank at DreamHost.com
See what I do with PostNuke - http://surreal-dreams.com -
- rank:
-
Professional
- registered:
- March 2002
- Status:
- offline
- last visit:
- 15.04.07
- Posts:
- 2489
Good call. Moved to Tutorials and Solutions.
Frank
--
Serious hosting - all the features, bandwith and storage you could want without breaking the bank at DreamHost.com
See what I do with PostNuke - http://surreal-dreams.com -
- rank:
-
Freshman
- registered:
- August 2005
- Status:
- offline
- last visit:
- 08.12.05
- Posts:
- 18
I made this mistake - the file is not in the dl section. please advise how to get back into my site now. thanks
--
---------------------------------------
http://muni-wifi.com
Municipal Wi-Fi - The Debate. -
- rank:
-
Softmore
- registered:
- September 2005
- Status:
- offline
- last visit:
- 01.05.07
- Posts:
- 75
Just a quicky. I have just switched my site off and logged out by accsedent. Can anybody tell mehow to log back in?
I have tried the PostNuke Swiss Army Knife 1.02 but there is no setteing listed on the main menu to turn the site back on
Can anybody tell me how? -
- rank:
-
Softmore
- registered:
- September 2005
- Status:
- offline
- last visit:
- 01.05.07
- Posts:
- 75
-
- rank:
-
Freshman
- registered:
- November 2005
- Status:
- offline
- last visit:
- 11.04.06
- Posts:
- 2
Heh, just found this topic too late... (I'm new. Hi folks)
I have just had the same problem, having made the mistake of logging out with the site switched off. Just spotted OddsodzLost's fix which is exactly what I did - I'd already typed my fix before reading his thread
Still, if it might make it clearer how it was done to someone not familiar with phpMyAdmin here's my two cents.
How I fixed it:
Using phpMyAdmin, I selected the nuke_module_vars table from my database, and selected browse. From the list of rows (its near the bottom, was pn_id 152 in my table) select the row with fields pn_modname /PNConfig, pn_name siteoff. Edit the entry in pn_value to read s:1:"0"; instead of s:1:"1"; - and its done....
Hope this helps someone else... :)
Dunc -
- rank:
-
Freshman
- registered:
- May 2005
- Status:
- offline
- last visit:
- 19.08.08
- Posts:
- 13
duncvis
Heh, just found this topic too late... (I'm new. Hi folks)
I have just had the same problem, having made the mistake of logging out with the site switched off. Just spotted OddsodzLost's fix which is exactly what I did - I'd already typed my fix before reading his thread
Still, if it might make it clearer how it was done to someone not familiar with phpMyAdmin here's my two cents.
How I fixed it:
Using phpMyAdmin, I selected the nuke_module_vars table from my database, and selected browse. From the list of rows (its near the bottom, was pn_id 152 in my table) select the row with fields pn_modname /PNConfig, pn_name siteoff. Edit the entry in pn_value to read s:1:"0"; instead of s:1:"1"; - and its done....
Hope this helps someone else... :)
Dunc
I've run a PostNuke site for three years now, and I just accidentally did this tonight. >.<
This solution worked perfectly! Thanks for the detailed explanation, as I don't normally go poking around in my database.
Thank goodness they fixed this in Zikula by putting an admin login box on the 'Site Disabled' page!!!
