Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
I installed 0760 and switched off the site. How do I get in?
  • Posted: 11.08.2005, 15:19
     
    davidnelson
    rank:
    Freshman Freshman
    registered:
     February 2004
    Status:
    offline
    last visit:
    20.03.07
    Posts:
    47
    Hi :)

    I installed 0760 and then switched off the site. The site is now disabled. How do I get back in again?

    Embarrassed, :D
  • Posted: 11.08.2005, 16:30
     
    rank:
    Moderator 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
  • Posted: 11.08.2005, 17:54
     
    davidnelson
    rank:
    Freshman 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. :)
  • Posted: 11.08.2005, 20:23
     
    FrankDeRosa
    rank:
    Professional 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
  • Posted: 11.08.2005, 22:12
     
    craigh
    rank:
    Professional Professional
    registered:
     June 2003
    Status:
    offline
    last visit:
    27.08.08
    Posts:
    1147
    someone should sticky this or add it to the FAQ
  • Posted: 11.08.2005, 22:55
     
    FrankDeRosa
    rank:
    Professional 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
  • Posted: 29.08.2005, 18:14
     
    kappler0
    rank:
    Freshman 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.
  • Posted: 29.08.2005, 18:17
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    Since .760 is no longer a development release the updated PSAK tool has moved.

    V1.02 for .760 and v1.01 for .750.

    -Mark
  • Posted: 25.09.2005, 19:07
     
    chatp23
    rank:
    Softmore Softmore
    registered:
     August 2005
    Status:
    offline
    last visit:
    02.03.06
    Posts:
    54
    thank you SO much for having this, next time I won't logout...
  • Posted: 19.10.2005, 21:45
     
    OddsodzLost
    rank:
    Softmore 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?
  • Posted: 22.10.2005, 23:42
     
    jabbere
    rank:
    Freshman Freshman
    registered:
     September 2002
    Status:
    offline
    last visit:
    10.08.07
    Posts:
    15
    I have the same problem as well. the only enabling function refers to "Intranet". Need some of those great minds to help out on this.

    Thank you!
  • Posted: 07.11.2005, 22:52
     
    OddsodzLost
    rank:
    Softmore Softmore
    registered:
     September 2005
    Status:
    offline
    last visit:
    01.05.07
    Posts:
    75
    http://forums.postnuke.com/index.php?name=PNphpBB2&file=viewtopic&p=183842#183842

    Have a look here
  • Posted: 28.11.2005, 17:15
     
    duncvis
    rank:
    Freshman 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 icon_redface

    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
  • Posted: 18.08.2008, 10:58
     
    Moonstone
    rank:
    Freshman 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 icon_redface

    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!!!

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula