WordPress.org

Forums

Sandbox
Deactivated, still showing changes made in sandbox (11 posts)

  1. cheezenutz
    Member
    Posted 1 year ago #

    Hi,
    I like Sandbox Plugin. I have a problem using it in my WPMU environment.

    During my sandbox session, changes were made, I can see the site (Chrome browser) have the changes completed successfully like plugins, themes, widgets. BUT, after I deactivated my sandbox session, my dashboard still shows me the new changes are there (i.e. my theme did not revert to my BEFORE state, Plugins deactivated are not activated, Sidebar changes did not undo).

    The funny thing is, using a different browser (IE9, & cleared cookies), I saw my 'old' site. I checked my backend dashboard, my changes during sandbox session still stays.

    1) How do I undo the changes done during my sandbox session? - I did 'deactivate' my session from top of admin interface.

    2) Is there a log of activity that shows what i did during sandbox session? - I need that in case sandbox did not UNDO after I deactivate, so that I can rollback the changes.

    3) Seems Sandbox Plugin might have screwed up my changes, the dashboard changes made does not tally with what i saw on site. How can I undo everything to revert to pre-sandbox_plugin-install stage? - I deleted my sandbox profile, and changed theme thereafter. But my IE9 browser did not show my new changes I did, my Chrome did show. I assume my IE9 site will be the one that is visible to users as I already cleared cookies.

    I had the Sandbox directory auto created in my host root directory. So that should not be a contributing problem.

    https://wordpress.org/plugins/sandbox/

  2. barteled
    Member
    Plugin Author

    Posted 12 months ago #

    For number 1 and 2, the sandbox is not really about doing changes and then undoing them. When you create a sandbox, it copies all of the files of your site to a new directory under the sandbox folder. It also creates a copy of all of the database tables that have the WordPress prefix. So essentially a completely new site is created and you switch to that site via a cookie that is set in the browser.

    Try removing the cookie and clearing your cache if deactivating the sandbox doesn't work. From what you are describing it sounds like the browser still has the activation cookie set.

    Do you remember seeing any errors when you created the sandbox? Could you provide a listing of the tables in your wordpress database?

  3. cheezenutz
    Member
    Posted 12 months ago #

    No errors when i created sandbox. I will try again. Now i am having a clearer picture of what sandbox does. I have to play around with cookies cleared then. Will update again

  4. cheezenutz
    Member
    Posted 12 months ago #

    Hi barteled,
    Indeed there is an error when I created a new sandbox! Kindly see below. I never use that name to create sandbox ever before.

    It still, did create a new directory in sandbox folder in my host's root directory. I can still activate it. And I did changes after activate.

    Thereafter I deactivate, flushed cache, cleared cookies. The changes made in the 'new' site persisted.

    Fatal error: Uncaught exception 'Sandbox_Exception' with message 'A sandbox shortname already exists.' in /home/content/p3nexnas03/07/2070707/html/wp-content/plugins/sandbox/class-sandbox.php:41 Stack trace: #0 /home/content/p3nexnas03/07/2070707/html/wp-content/plugins/sandbox/class-sandbox.php(50): Sandbox::verify_parameters('create', '3rd time on san...', '3rdtime') #1 /home/content/p3nexnas03/07/2070707/html/wp-content/plugins/sandbox/admin-menu.php(38): Sandbox->__construct('3rd time on san...', '3rdtime', 'used 3rd becos ...') #2 [internal function]: sandbox_menu_main('') #3 /home/content/p3nexnas03/07/2070707/html/wp-includes/plugin.php(470): call_user_func_array('sandbox_menu_ma...', Array) #4 /home/content/p3nexnas03/07/2070707/html/wp-admin/admin.php(211): do_action('toplevel_page_s...') #5 {main} thrown in /home/content/p3nexnas03/07/2070707/html/wp-content/plugins/sandbox/class-sandbox.php on line 41

    Kindly enlighten me how to solve this. Kindly note I have only activated this plugin and duplicator plugin. I am on WPMU multisite now.

  5. barteled
    Member
    Plugin Author

    Posted 12 months ago #

    If you are on a multisite this may be an issue. I have not done extensive testing with multisite. For right now I would not recommend adding it to a multisite install.

  6. cheezenutz
    Member
    Posted 12 months ago #

    That's sad to hear.
    I was banking on using sandbox for testing new changes to site, after so many failed attempts with other methods (maybe too difficult for me) I found online to get a test site.

    So does it mean that if i undo my multisite, there should be no problem?
    :)

  7. barteled
    Member
    Plugin Author

    Posted 12 months ago #

    There shouldn't be any problems but no plugin is perfect. :-)

    If you do undo multisite and still have issues, I'll gladly provide assistance to get it to work.

  8. cheezenutz
    Member
    Posted 12 months ago #

    Thanks! So I close this thread or leave it? I should revert to single site if things don't go my way for the subdirectory redirect loop issue I am having now.

  9. cheezenutz
    Member
    Posted 11 months ago #

    Hi barteled,
    What does this mean?

    Fatal error: Uncaught exception 'Sandbox_Exception' with message 'A sandbox shortname already exists.' in /home/content/p3nexnas03/07/2070707/html/wp-content/plugins/sandbox/class-sandbox.php:41 Stack trace: #0 /home/content/p3nexnas03/07/2070707/html/wp-content/plugins/sandbox/class-sandbox.php(50): Sandbox::verify_parameters('create', 'Tester', 'tester') #1 /home/content/p3nexnas03/07/2070707/html/wp-content/plugins/sandbox/admin-menu.php(38): Sandbox->__construct('Tester', 'tester', 'Test changes to...') #2 [internal function]: sandbox_menu_main('') #3 /home/content/p3nexnas03/07/2070707/html/wp-includes/plugin.php(470): call_user_func_array('sandbox_menu_ma...', Array) #4 /home/content/p3nexnas03/07/2070707/html/wp-admin/admin.php(211): do_action('toplevel_page_s...') #5 {main} thrown in /home/content/p3nexnas03/07/2070707/html/wp-content/plugins/sandbox/class-sandbox.php on line 41

  10. hithalynn
    Member
    Posted 10 months ago #

    Cheezenutz, did you get a resolve to this issue? I am having the same issue, after deactivating sandbox and after trying to delete the sandbox files from my ftp, I am seeing the "new" site as an administrator, however my clients are seeing my old site as public. I cannot even access dashboard now to reinstall the plugin or make changes at all. Just a redirect loop as it is trying to pull the sandbox site which is no longer on my server.

  11. cheezenutz
    Member
    Posted 10 months ago #

    Hi, sorry for late reply.
    I did not get a resolve. But I guess we are having a different problem.

    Sandbox works by caching in your browser if I am not mistaken.
    For you to see your old site, you have to clear your cookies in your browser. Your clients are seeing your old site is because sandbox doesn't make real changes to anything, as its namesake implies, its for you to play around, before you decide to activate any changes.

    If you can't access your dashboard at wpadmin at all, my guess is it is not due to sandbox.

    You may like to rename your plugin folder (eg. /plugin_old) and try accessing your dashboard. Thereafter rename the folder again..and reactivate the plugins u need.

    For further details, you may like to write to the plugin developer directly (very responsive and friendly)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Sandbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic