• Resolved advertino

    (@advertino)


    Hi, guys.

    I don’t quite understand what’s going on. The point is that all of my blogs are installed with almost the same settings. However, on one of the blogs, the scan does not start. I disabled all plugins but nothing changes.

    In the error logs there are clear records that the connection was refused.

    [11-Nov-2021 04:12:26 UTC] Connection refused

    After I added a line of code to the config file

    define(‘QTR_FS_SNAPSHOT’, true);

    the entries in the error log changed.

    [11-Nov-2021 04:16:06 UTC] PHP Warning: Use of undefined constant ‘QTR_FS_SNAPSHOT’ – assumed ‘‘QTR_FS_SNAPSHOT’’ (this will throw an Error in a future version of PHP) in /home/******/public_html/******/wp-config.php on line 76
    [11-Nov-2021 04:16:06 UTC] Connection refused

    Any idea?

    • This topic was modified 3 years ago by advertino.
    • This topic was modified 3 years ago by advertino.
Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author quttera

    (@quttera)

    Hello,

    Can you please change PHP define instruction

    define(‘QTR_FS_SNAPSHOT’, true);

    to

    define(“QTR_FS_SNAPSHOT”, true);

    Do you see the same error?

    Also, which PHP version are you using?

    Plugin Author quttera

    (@quttera)

    Can you please let us know if the provided suggestion worked for you, thus others can use it as well?

    Thank you,
    Quttera Team

    Thread Starter advertino

    (@advertino)

    Answer from my hosting provider. They went into the control panel and tried to run it. Since they are a hosting provider, it is more likely that they tracked error logs. But judging by their answer, they could not find the problem on their side.

    This surprises me even more, because my blogs are installed in the same account and all hosting settings for them are identical. However, on two of the five blogs, the malware scanner does not start.

    We have run the Internal scanner through Quttera plugin as per the steps provided by you. But it seems the scanning progress is stuck or frozen. We suggest you to check the issue with their support team if they can provide more details on it.

    Now i’ll check your recommendation from past comments.

    Hosting provider id AccuWebHosting

    If you want to discuss with them about this problem, my ticket number DWI301071E

    Plugin Author quttera

    (@quttera)

    Thank you for the provided details.

    Internally, scanner job is based on WordPress cron functionality which is invoked periodically when WordPress handling HTTP requests (for example someone visiting the website).

    Can you please check if these blogs have cache enabled? If yes please disable the it as cache may impact cron functionality.

    Another question, can you please check plug-in directory and see if scanner was able to start/create any log file?

    Best Regards
    Michael
    Quttera Team

    Thread Starter advertino

    (@advertino)

    For caching, I use the Light speed cache plugin + my blogs work through Cloudflare. Could the level of safety of SSD on the Cloudflare be a problem?

    Wait a bit, I will check all your previous recommendation.

    Thread Starter advertino

    (@advertino)

    OK. Next step.

    Can you please change PHP define instruction

    define(‘QTR_FS_SNAPSHOT’, true);

    to

    define(“QTR_FS_SNAPSHOT”, true);

    Do you see the same error?

    I set the parameters you recommended, after that I cleared the cache on the Cloudflare and ran a scan. This is what I see.

    Pay attention to the quotes that are used by default in my config file.

    Capture2

    INFO	Starting investigation of /home/***/public_html/***blog.com/
    
    INFO	Patterns database /home/***/public_html/***blog.com/wp-content/plugins/quttera-web-malware-scanner/patterns.db loaded successfully
    
    ERROR	Failed to update option qtr_scan_cron_args
    
    INFO	Internal scan scheduled. Next run 23:52:03
    
    INFO	Starting internal scan of [/home/***/public_html/***blog.com/]
    
    INFO	Termination sent successfully. Waiting for scan job
    INFO	Submitting internal scan request
    INFO	Starting investigation of /home/***/public_html/***blog.com/
    
    INFO	Patterns database /home/***/public_html/***blog.com/wp-content/plugins/quttera-web-malware-scanner/patterns.db loaded successfully
    
    INFO	Operation succeeded. Internal scan started

    Three minutes after starting, I see this

    INFO	Starting investigation of /home/***/public_html/***blog.com/
    INFO	Patterns database /home/***/public_html/***blog.com/wp-content/plugins/quttera-web-malware-scanner/patterns.db loaded successfully
    ERROR	Failed to update option qtr_scan_cron_args
    INFO	Internal scan scheduled. Next run 15:21:30
    INFO	Starting internal scan of [/home/***/public_html/***blog.com/]
    • This reply was modified 3 years ago by advertino.
    • This reply was modified 3 years ago by advertino.
    Thread Starter advertino

    (@advertino)

    All caching plugins are disabled now. All other plugins on the website are also disabled.

    Thread Starter advertino

    (@advertino)

    PHP version 7.4

    Capture3

    Please note that these hosting settings are absolutely identical for my five blogs. But on three blogs I can run the malware scanner, but on two blogs I can’t.

    Based on this, one would assume that the problem is in the installed plugins, but they are all disabled, the cache is cleared.

    Plugin Author quttera

    (@quttera)

    Thank you for the provided information.

    Based on these logs, there is some issue to register WordPress cron-job callback and callback parameters

    “””
    ERROR Failed to update option qtr_scan_cron_args
    “””

    Can you please check if you see anything in the PHP error log?

    The FS_SNAPSHOT flag means the plugin will keep scanner metadata on the host file systems and not in the backend database.

    But based on the error, WordPress still tries to store this metadata into the database.
    This error coming from file qtrOptions.php line 195

    Plugin Author quttera

    (@quttera)

    Do all three blogs run/hosted under the same hosting account?

    Can you please check if you have any local .user.ini or .php.ini files per blog?

    Thank you.

    Thread Starter advertino

    (@advertino)

    yeap, same hosting account

    I’ll do, wait a bit please

    Thread Starter advertino

    (@advertino)

    I forgot say somthing. After I changed the quotation marks, the following issue appeared in the bug reports. I changed them back.

    Capture3

    • This reply was modified 3 years ago by advertino.
    Thread Starter advertino

    (@advertino)

    I will try to describe what I am doing next.

    1. This is union php.ini, is similar for my every blog. Nothing different.

    Capture4

    2. I have now downloaded the WP Crontrol plugin to see what is happening with crones on this blog. After installing this plugin, I saw the following warning:

    There was a problem spawning a call to the WP-Cron system on your site. This means WP-Cron events on your site may not work. The problem was:

    Unexpected HTTP response code: 503

    3. After this I jumped to Github, to this article https://github.com/johnbillion/wp-crontrol/wiki/Problems-with-spawning-a-call-to-the-WP-Cron-system

    In case of error 500 and above, it is recommended to check the error logs on the hosting. Now I will check them again, and write again here.

    Also, I found some description about 503 error:

    503 error:

    The 503 service unavailable error occurs when your web server is unable to get a proper response from a PHP script. This PHP script could be a WordPress plugin, a theme, or a misbehaving custom code snippet.
    – If the error is caused by heavy usage, a server glitch, server temporarily offline for maintenance, the server too busy or concurrent request limit exceeded, or a DDoS attack, then it could automatically disappear in a few minutes.
    – However, if it is caused by bad code on your website, then it will keep occurring unless you find and disable the code that’s causing it.

    To troubleshoot, try:
    – Deactivate plugins, switch theme, reinstall WP
    – Review https://www.wpbeginner.com/wp-tutorials/how-to-fix-503-service-unavailable-error-in-wordpress/
    – If these methods fail to resolve the error, then try contacting your hosting provider.

    I’ll check now

    • This reply was modified 3 years ago by advertino.
    Thread Starter advertino

    (@advertino)

    I installed the default theme twenty twenty one and reinstalled WordPress. Malware scanner still does not start. All plugins is disabled.

    • This reply was modified 3 years ago by advertino.
    Thread Starter advertino

    (@advertino)

    Now I got a message from hoster

    Can you please update us on where they are finding the error below?

    ERROR Failed to update option qtr_scan_cron_args

    I have checked the error log at our end but couldn’t locate it. Where does qtrOptions.php file is located? Can you please update the plugin and try again with scanning. I can see your website has mixed content (HTTP links) so please correct all the links to HTTPS.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘ERROR Failed to update option qtr_scan_cron_args’ is closed to new replies.