• Resolved stpioc

    (@stpioc)


    The plugin was working, producing logs, but now it’s not. It says it’s “loading”

    I can’t generate an API Key either.

    Deleted and reinstalled the plugin, no change.

    Any suggestions?

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • If you know how to use the DevTools in your web browser [1] please check if there are error messages in either the “Network” or “Console” tabs. Usually, when the “Loading…” message gets stuck is because something in the server is blocking the Ajax request or the “nonce” (used to authenticate the request) expired.

    [1] https://developers.google.com/web/tools/chrome-devtools/

    Thread Starter stpioc

    (@stpioc)

    Thanks for the quick response, appreciated!

    Thread Starter stpioc

    (@stpioc)

    As it happens, there are 15 error messages under the console tab and all say a similar thing, here is the first:

    Uncaught ReferenceError: jQuery is not defined
    at load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,quicktags,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.7:15
    at load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,quicktags,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.7:15

    Hope that helps. Any suggestions?

    Yes, that helps a lot.

    It seems that the problem is not even the Sucuri plugin.

    By the looks of the error message that you posted above, it seems that your website is not loading the jQuery library, which is a dependency of the Sucuri plugin and many other extensions in the market.

    Just so you know, a Google Cloud Platforms was reporting issues for a few hours [1]. They had problems with their load balancer and many websites stopped working. This includes the Google CDN [2] which many people use to load JavaScript libraries like jQuery. If your website is also making use of Google CDN then this problem may be explained by the outage in their global network.

    [1] https://status.cloud.google.com/incident/appengine/18005
    [2] https://developers.google.com/speed/libraries/#jquery

    Thread Starter stpioc

    (@stpioc)

    Ok thanks very much. The problem at Google seems to be solved, but the Sucuri plugin still doesn’t run and I get similar error message in the console tab, here is the first:

    Uncaught ReferenceError: jQuery is not defined
    at load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,quicktags,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.7:15
    at load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,quicktags,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.7:15
    scripts.js?ver=d81486e:10 Uncaught ReferenceError: jQuery is not defined
    at scripts.js?ver=d81486e:10
    atd-nonvis-editor-plugin.min.js?ver=20150715:5 Uncaught ReferenceError: jQuery is not defined
    at atd-nonvis-editor-plugin.min.js?ver=20150715:5

    I wait until this fixes itself, or is there anything I can do?

    Thanks very much, appreciated!

    jQuery is not defined

    The problem is clear, jQuery is — for some reason — not being loaded.

    jQuery is not provided by the Sucuri plugin, in fact, not many plugins include it in their source code because that’s WordPress job. WordPress is supposed to include jQuery by default on almost every page. There must be an error somewhere else affecting the "load-scripts.php" file.

    Please open the DevTools once again, switch to the “Console” tab, and then paste this code jQuery.fn.jquery. After hitting the Return key, you should be able to see the version number of the jQuery library installed in your website. If you don’t see the version number, and instead see an error message, then this confirms that the library is not being loaded by WordPress. In this case, I suggest you to restore the installation from a backup.

    There’s also the possibility that another plugin or theme (recently installed) is trying to execute a jQuery utility before the library is included by WordPress. This forces an exception that breaks other JavaScript code, include the code used by the Sucuri plugin. Have you recently installed a new plugin or theme? If yes, did you try disabling them while you run the tests?

    Thread Starter stpioc

    (@stpioc)

    Hello, thanks again. When pasting the cod into the console, this is what I get:

    Uncaught ReferenceError: jQuery is not defined
    at <anonymous>:1:1

    I’ve been removing plugins before this already, there are only few installed (Sucuri, Akismet, Jet Pack and W3 Total Cache), that’s all. Funny enough, when I go to the plugin page I still had the Dev Console open, and I get similar error messages (but fewer), here are the first two:

    Uncaught ReferenceError: jQuery is not defined
    at load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.7:14
    at load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.7:14
    (anonymous) @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.7:14
    (anonymous) @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=4.9.7:14
    scripts.js?ver=d81486e:10 Uncaught ReferenceError: jQuery is not defined
    at scripts.js?ver=d81486e:10

    Anyway, thanks again for the prompt reply!

    Please send me the address of your website at [removed].

    I will try to troubleshoot the error from my side. We know that the jQuery library is not being loaded, but we cannot see the reason for that from the error messages that you are seeing in the DevTools Console. The 4 plugins that you currently have active don’t seem to have any incompatibility, as far as I know.

    Thread Starter stpioc

    (@stpioc)

    Thanks for the offer, yorman, very kind on your part. The problem seems to be solved, there was some kind of update from WordPress that apparently took care of it.

    However, the whole operation was started to get an API from Sucuri for activating the firewall and I was now able to request one as that button is now working, but I didn’t receive an API through the mail and the API which was produced in the Sucuri app doesn’t seem to work. I’m sure I’m missing something, perhaps this is a paid service only (no problem, I understand you have expenses as everybody else)?

    Thanks!

    The problem seems to be solved, there was some kind of update from WordPress that apparently took care of it.

    Good to know that the problem is now resolved.

    However, the whole operation was started to get an API from Sucuri for activating the firewall and I was now able to request one as that button is now working, but I didn’t receive an API through the mail and the API which was produced in the Sucuri app doesn’t seem to work.

    In order to fully activate the plugin, you need two keys:

    Plugin API Key (FREE)

    This key is completely free.

    It can be generated using the big blue button at the top of the page in the Sucuri plugin dashboard. You just need to provide a valid domain name and an email address (used to send email alerts about security events, and for the recovery of the key itself in case you lose it in the future). Notice that the domain is required to have an MX record, otherwise our system will flag it as invalid, this may also affect the delivery of the messages to your inbox.

    Firewall API Key (PAID)

    You can read about the Sucuri Firewall here [1].

    In simple words, the firewall is a software that filters the bad traffic to goes to your website before it arrives to your host. To do this, your hosting account has to be modified to pass the traffic through Sucuri. This cannot be done via WordPress, the plugin will not do this, that’s why you have to pay for the service.

    The key mentioned in the plugin is simply used to show some information that the firewall provides, but the firewall works very independently from the plugin. In fact, you can use the firewall without setting that key at all. If you are not using the Sucuri Firewall, you don’t need to set that key.

    There are other options in the market that may or may not be free [2].

    [1] https://sucuri.net/website-firewall/
    [2] https://en.wikipedia.org/wiki/Web_application_firewall#Commercial_vendors

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Not working’ is closed to new replies.