• Resolved magicphotoevents

    (@magicphotoevents)


    Hello,

    Activating and running Ninjascanner cause php notices which impact my website with errors type 503:

    `[23-Mar-2021 09:48:09 UTC] PHP Notice: Trying to get property ‘post_status’ of non-object in /home2/leol2108/public_html/wp-admin/includes/template.php on line 2181
    [23-Mar-2021 09:48:09 UTC] PHP Notice: Trying to get property ‘post_status’ of non-object in /home2/XXXXXXXX/public_html/wp-admin/includes/template.php on line 2185
    [23-Mar-2021 09:48:09 UTC] PHP Notice: Trying to get property ‘post_status’ of non-object in /home2/XXXXXXXX/public_html/wp-admin/includes/template.php on line 2191
    [23-Mar-2021 09:48:09 UTC] PHP Notice: Trying to get property ‘post_status’ of non-object in /home2/XXXXXXXX/public_html/wp-admin/includes/template.php on line 2195
    [23-Mar-2021 09:48:09 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /home2/XXXXXXXX/public_html/wp-admin/includes/template.php on line 2199
    [23-Mar-2021 09:48:09 UTC] PHP Notice: Trying to get property ‘post_status’ of non-object in /home2/XXXXXXXX/public_html/wp-admin/includes/template.php on line 2203
    [23-Mar-2021 09:48:09 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /home2/XXXXXXXX/public_html/wp-admin/includes/template.php on line 2208
    [23-Mar-2021 09:48:09 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /home2/XXXXXXXX/public_html/wp-admin/includes/template.php on line 2212
    [23-Mar-2021 09:48:09 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /home2/XXXXXXXX/public_html/wp-admin/includes/template.php on line 2217`

    I have bought a Ninjascanner license which is valid.

    Regards,

    Olivier

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

    (@nintechnet)

    Please check your mailbox, as the support replied to you earlier today (Ticket #2504).

    Thread Starter magicphotoevents

    (@magicphotoevents)

    Thank’s for the reply but I do not have received reply by email.

    Plugin Author nintechnet

    (@nintechnet)

    Your log show PHP notices, not errors, hence this is unlikely the problem because PHP will write the notice to the log but will keep running as usual and will not throw a 503 error.

    If you cannot find any error in the PHP error log, try to check your HTTP server error log instead and paste here all 503 lines so that I can see what requests it was.
    Also, do you have any security on your server that could block HTTP requests sent by NinjaScanner and return a 503 code (rate limit etc)?

    Thread Starter magicphotoevents

    (@magicphotoevents)

    Nothing on the HTTP server error log and I have deactivated the ModSecurity.

    My website works fine without Ninjascanner and has many 503 errors with it so it is impossible for me to use it!

    Plugin Author nintechnet

    (@nintechnet)

    -Do you have the 503 error when the scanner is running, or even when it’s not running?
    -Are you using a reverse proxy, cache or CDN? We need to find which application throw the 503 error.

    Thread Starter magicphotoevents

    (@magicphotoevents)

    I have deactivated all the plugins and install again WordPress 5.7

    Then I have activated Ninjascanner (only this extension) and started a scan.

    The scan starts then it stops on the files list creation. No debug.log php information.

    The information of Ninjascanner are :

    `24-Mar-21 11:13:51 INFO Traitement de l’étape 1/14
    24-Mar-21 11:13:51 INFO Vérification de l’intégrité des fichiers de NinjaScanner
    24-Mar-21 11:13:51 DEBUG Utilisation de la version locale (cache) des sommes de contr?le
    24-Mar-21 11:13:51 INFO L’intégrité des fichiers est OK
    24-Mar-21 11:13:51 DEBUG Processus exécuté en 0.1 secondes et a utilisé 217,80 Mo de mémoire (mémoire additionnelle pour NinjaScanner : 0,00 Mo).
    24-Mar-21 11:15:39 INFO Traitement de l’étape 2/14
    24-Mar-21 11:15:39 INFO Création de la liste des fichiers
    24-Mar-21 11:15:52 INFO Nombre total de fichiers trouvés : 211?363
    24-Mar-21 11:15:52 INFO Création du hachage pour les articles et pages de la DB
    24-Mar-21 11:15:52 INFO 4 articles et 105 pages trouvé dans la base de données
    24-Mar-21 11:15:52 DEBUG Processus exécuté en 13.1 secondes et a utilisé 217,80 Mo de mémoire (mémoire additionnelle pour NinjaScanner : 0,00 Mo).`

    Thread Starter magicphotoevents

    (@magicphotoevents)

    And I have the error “Le serveur HTTP a retourné le code d’erreur suivant : 200 SyntaxError: Unexpected token < in JSON at position 0.”

    Plugin Author nintechnet

    (@nintechnet)

    It really looks like there’s an application on your server that blocked the scanner.
    Between those two lines, there’s 1 minute 48s, and that’s not normal:

    
    24-Mar-21 11:13:51 DEBUG Processus exécuté en 0.1 secondes et a utilisé 217,80 Mo de mémoire (mémoire additionnelle pour NinjaScanner : 0,00 Mo).
    24-Mar-21 11:15:39 INFO Traitement de l’étape 2/14
    

    And then it stopped (or was blocked) without error in the log after step 2.

    Do you have a reverse proxy, cache or CDN? Or another security application or security rules are the HTTP server level?

    • This reply was modified 3 years, 8 months ago by nintechnet.
    Thread Starter magicphotoevents

    (@magicphotoevents)

    Hello,

    Yesterday, have activated again the NinjaScanner and launched a scan then I had to go out of home.

    When I came back, I did not have access to my website by http(s) but also by ftp and to my mails servers.

    I have informed my hosting support. My public IP had been blacklisted by the ddos protection.

    They have replied to me

    Several thousand requests have been made in a very short period of time from your IP.

    I do not know what is the exact problem, but I cannot use NinjaScanner anymore!

    Olivier

    Plugin Author nintechnet

    (@nintechnet)

    That’s what I thought: your host has a security protection that is very unusual and annoying. They killed the scanner’s process for whatever reason, and your browser kept trying to connect to the site many times because it didn’t receive a response from the scanner over AJAX. And then, they blocked your IP ??
    You can contact the support if you want to cancel/refund your license or use it on another site.

    Thread Starter magicphotoevents

    (@magicphotoevents)

    Ok, I understand, but I think NinjaScanner is a good plugin.

    Is it possible to reduce the flow of connections / requests ?

    Plugin Author nintechnet

    (@nintechnet)

    You can lower the connection requests sent by your browsers via AJAX to your site.By default, it sends 1 request every 1.5 second.
    Open your wp-config.php and add those lines:

    // NinjaScanner AJAX interval (milliseconds):
    if (! defined( 'NSCAN_MILLISECONDS' ) ) {
       define( 'NSCAN_MILLISECONDS', 3000 ); // 3 seconds
    }
    

    This will change it to 1 request every 3 seconds (3000 milliseconds). You can change this value to whatever you want but make sure to not increase it too much. I wouldn’t personally increase it more than 5 seconds.

    Note that this applies to manual scans only. Scheduled scans don’t send those AJAX requests as they are only use to update the status of the page while you are logged in.

    • This reply was modified 3 years, 8 months ago by nintechnet.
    Thread Starter magicphotoevents

    (@magicphotoevents)

    Ok, thanks I understand but is it possible to control the flow of the plugin’s requests ?

    Plugin Author nintechnet

    (@nintechnet)

    The plugin will send around 14 requests during the whole scan, that’s not a lot. You cannot control that, but you can change the fork method: NinjaScanner > Settings > Advanced Users Settings > Scanning process” and choose WP CRON for instance.

    Thread Starter magicphotoevents

    (@magicphotoevents)

    I have tried, but it does not work.

    A fatal error 500 occurs on each scan start.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘WordPress 5.7 compatibility’ is closed to new replies.