• Resolved Nora McDougall

    (@nora-mcdougall)


    This is the first time I have seen the following behavior in a plugin: the rollover and dropdown menus for Ninja Firewall don’t show in the dashboard on one site. (I have another site using Ninja Firewall that is fully functional.)

    We are receiving the email reports just fine, but I can’t look at the log because there is no menu. It’s working fine on another site, which is on a different host, so I copied the address and tried URL hacking. That resulted in the WordPress error “You don’t have permission …”

    Any clues why I can’t get the menu and pages?

    https://wordpress.org/plugins/ninjafirewall/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Hi,

    Do you have the right capabilities: manage_options + unfiltered_html ?
    NinjaFirewall requires both.
    See our blog for roles and capabilities restrictions: Restricting access to NinjaFirewall (WP Edition) settings.

    Thread Starter Nora McDougall

    (@nora-mcdougall)

    It seems very strange that the NinjaFirewall menu would show fine on install for one web host and not another. I have never had a menu not show up when a plugin was installed on any host before.

    Plugin Author nintechnet

    (@nintechnet)

    Go to the “Plugins” page: if you see “NinjaFirewall (WP Edition) Access Restricted” and there is no link below to disable the plugin, it means you don’t have the right capabilities.
    In that case, open the wp-config.php and check if there is a define( 'DISALLOW_UNFILTERED_HTML', true ); line.

    Which version of NinjaFirewall is it?

    Thread Starter Nora McDougall

    (@nora-mcdougall)

    Thanks again for your replies!

    It doesn’t seem that there are any restricted notes on the plugin. But, when I went to the plugins page, I noticed that there was an update, so I ran that. We are now on 3.0, but that didn’t fix the issue.

    I posted on Facebook with a screenshot so you can see what I see other than that the screenshot is from before doing the update. https://www.facebook.com/TheComputerGal/photos/a.10150179006340654.428049.260716970653/10156513368260654/?type=3&theater

    Plugin Author nintechnet

    (@nintechnet)

    It is not a capabilities issue then, otherwise you couldn’t update it.

    Did you try to disable other plugins, one by one? Or to switch to another theme?

    Thread Starter Nora McDougall

    (@nora-mcdougall)

    We keep our sites very plugin clean and up-to-date. The theme is a child theme based on TwentyTen. (We try to add as little to WordPress as possible.)

    Is it possible that a php.ini problem could result in the plugin running and sending email reports, but not working with the dashboard?

    Plugin Author nintechnet

    (@nintechnet)

    The php.ini will only load the firewall.
    Can you try to rename or temporarily remove it, then log in to the WP dashboard and check if the NinjaFirewall menu is there?

    Did you try the troubleshooter script: http://nintechnet.com/share/wp-check.txt

    You can also enable WP DEBUG in your wp-config.php script. That may show errors in the admin dashboard.

    Thread Starter Nora McDougall

    (@nora-mcdougall)

    Thanks again for your response. Here are my findings and comments:

    1. The php.ini will only load the firewall.
    I’m guessing that means that php.ini is not involved or called after the initial load. If that is correct, the fact that the menu doesn’t show (the menu items above and below have rollover menus that are working fine) the problem is somewhere other than the php.ini.

    2.Can you try to rename or temporarily remove it, then log in to the WP dashboard and check if the NinjaFirewall menu is there?
    I renamed the php.ini file. Basically, the site then disappears. The URL is still working, but nothing loads on the site.

    3. Did you try the troubleshooter script: http://nintechnet.com/share/wp-check.txt
    It is quite strange
    a. This file shows all the settings as good, except NinjaFirewall detection : NinjaFirewall is not loaded
    b. Whenever I’ve gone through the install process, I’ve also received, Error: the firewall is not loaded.
    c. And yet, the emails come with the report of blocks on attacks.

    4. You can also enable WP DEBUG in your wp-config.php script. That may show errors in the admin dashboard.
    No errors show.

    Again, this plugin is working fine on a site that is hosted with SiteGround.

    Thread Starter Nora McDougall

    (@nora-mcdougall)

    OK, I found the problem. I was letting NinjaFirewall add the code to the php.ini file. But it puts that file at the root level of the website. On this host, the php.ini file, if the default isn’t used, is not read at the root level of the website, but two levels up in /conf

    Plugin Author nintechnet

    (@nintechnet)

    Perfect!
    I am marking this thread as ‘resolved’.

    Thread Starter Nora McDougall

    (@nora-mcdougall)

    Thanks for your help! I know more about NinjaFirewall now!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Menu not available in dashboard’ is closed to new replies.