aMember Admin Panel locked up

Discussion in 'Troubleshooting' started by microlinx, Aug 9, 2017.

  1. microlinx

    microlinx aMember Pro Customer

    Joined:
    Oct 26, 2004
    Messages:
    248
    Not sure what happened overnight, but my aMember admin panel is locked up. The side bar menu appears, but clicking on those links does nothing. The dashboard is totally empty. Filing a support ticket probably won't help since you would not even be able to do anything once logged in.

    I thought it might be related to Cloudflare or W3TC caching or Wordfence, but all have been deactivated.

    Any ideas?
    cmstoq likes this.
  2. microlinx

    microlinx aMember Pro Customer

    Joined:
    Oct 26, 2004
    Messages:
    248
    Here is a screen shot - none of the admin links will expand and the dashboard is totally blank. Tried different browsers, clearing caches, turning off caches and cloudflare, nothing works.

    https://ibb.co/gseNev
  3. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,689
    Hello,

    It is some issue with javascript. Please contact us in helpdesk -
    we will troubleshoot it as soon as possible.

    Best Regards.
  4. microlinx

    microlinx aMember Pro Customer

    Joined:
    Oct 26, 2004
    Messages:
    248
    Ticket Submitted
    Thanks Caesar!
  5. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,689
    I want to post solution. May be it can be useful to someone who find this ticket later.

    One of possible cause of such issue is (both conditions should meet):
    • you have option 'Use Wordpress Theme' enabled in aMember
    • you have NextGEN Gallery Wordpress plugin

    NextGEN Gallery uses some hack to inject its javascript to html and it lead to this javascript injected to any page and cause this conflict.

    It is possible to do workaround to resolve such conflict. You need to edit site.php file and add the following code to it:
    http://www.amember.com/docs/Site.php_file

    PHP:
    Am_Di::getInstance()->hook->add(Am_Event::AFTER_RENDER, function(Am_Event_AfterRender $e) {
        if (
    defined('AM_ADMIN') && AM_ADMIN) {
            
    $e->replace('#</body>#''');
        }
    });
    Best Regards.

Share This Page