• Resolved rafilathif

    (@rafilathif)


    Hi there clicking the defender dashboard not allow me to see the dashboard just showing the error code only

    These are the menu showing the error
    Dashboard Not work
    Malware scanning Not work
    Firewall Not work

    Warning: filemtime(): stat failed for /var/www/mysite.com/html/Default.html in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 30
    
    Warning: filesize(): stat failed for /var/www/mysite.com/html/Default.html in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 31
    
    Warning: filemtime(): stat failed for /var/www/mysite.com/html/dbgdbvppqex2jm-2020-03-24-22dfcf4.sql in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 30
    
    Warning: filesize(): stat failed for /var/www/mysite.com/html/dbgdbvppqex2jm-2020-03-24-22dfcf4.sql in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 31
    
    Warning: filemtime(): stat failed for /var/www/mysite.com/html/p7a7cybv1zq6vkn5klzrekg3so4ywx.html in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 30
    
    Warning: filesize(): stat failed for /var/www/mysite.com/html/p7a7cybv1zq6vkn5klzrekg3so4ywx.html in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 31
    
    Warning: filemtime(): stat failed for /var/www/mysite.com/html/php_errorlog in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 30
    
    Warning: filesize(): stat failed for /var/www/mysite.com/html/php_errorlog in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 31
    
    Warning: filemtime(): stat failed for /var/www/mysite.com/html/sap-logs in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 30
    
    Warning: filesize(): stat failed for /var/www/mysite.com/html/sap-logs in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 31
    
    Warning: filemtime(): stat failed for /var/www/mysite.com/html/wp-config Backup-12-02-2020.php in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 30
    
    Warning: filesize(): stat failed for /var/www/mysite.com/html/wp-config Backup-12-02-2020.php in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 31
    
    Warning: filemtime(): stat failed for /var/www/mysite.com/html/wp-admin/Archive.tgz in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 30
    
    Warning: filesize(): stat failed for /var/www/mysite.com/html/wp-admin/Archive.tgz in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 31
    
    Warning: filemtime(): stat failed for /var/www/mysite.com/html/wp-admin/php_errorlog in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 30
    
    Warning: filesize(): stat failed for /var/www/mysite.com/html/wp-admin/php_errorlog in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 31
    
    Warning: filemtime(): stat failed for /var/www/mysite.com/html/wp-admin/urna-1.tar in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 30
    
    Warning: filesize(): stat failed for /var/www/mysite.com/html/wp-admin/urna-1.tar in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 31
    
    Warning: filemtime(): stat failed for /var/www/mysite.com/html/wp-includes/ID3/php_errorlog in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 30
    
    Warning: filesize(): stat failed for /var/www/mysite.com/html/wp-includes/ID3/php_errorlog in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/behavior/core-result.php on line 31
    
    Fatal error: Uncaught Error: Class '\WP_Defender\Module\Scan\Behavior\Pro\Content_Result' not found in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/vendor/hammer/base/component.php:240 Stack trace: #0 /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/vendor/hammer/base/component.php(283): Hammer\Base\Component->ensureBehaviors() #1 /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/model/scan.php(129): Hammer\Base\Component->hasMethod('getInfo') #2 /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/component/data-factory.php(38): WP_Defender\Module\Scan\Model\Scan->getItemsAsJson(0, 'issue', NULL) #3 /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/app/module/scan/component/data-factory.php(93): WP_Defender\Module\Scan\Component\Data_Factory::buildData() #4 /home/462389.cloudwaysapps.c in /home/462389.my.server/server/public_html/wp-content/plugins/defender-security/vendor/hammer/base/component.php on line 240
    There has been a critical error on your website. Please check your site admin email inbox for instructions.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @rafilathif

    I’m sorry to hear that you are experiencing this issue.

    Could you log in to your FTP and see does in /wp-includes/ folder an empty .htaccess file exist? If so please delete that file and see if that helps.

    Also in this specific case, please check your storage space on the server is there a free space.

    Please let us know about the results.

    Kind Regards,
    Kris

    Thread Starter rafilathif

    (@rafilathif)

    I have removed that file but still, I can see the error I try in the different browser also same even I try in Private browser too same error

    Thanks and regards
    Rafilathif

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @rafilathif,

    Just to double-check, did you also check if there is enough disk space on your server? Also, check if there is an htaccess file in the wp-content folder and prefer removing it too. Let me know if that gets through.

    Thank you,
    Prathameh Palve

    Thread Starter rafilathif

    (@rafilathif)

    Yes that I believe more than enough the disk space you can see this here
    As you said that two folders which are wp-content and wp-includes I show .htaccess File and I removed
    I can see this Error See the screenshot

    And I got the error report like this

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.5.1
    Current theme: Urna Child (version 1.0)
    Current plugin: Defender (version 2.3.1)
    PHP version 7.2.33-1+0~20200807.47+debian9~1.gbpcb3068

    Error Details
    =============
    An error of type E_ERROR was caused in line 240 of the file /home/462389.Myserver.com/kdkfhyzmad/public_html/wp-content/plugins/defender-security/vendor/hammer/base/component.php. Error message: Uncaught Error: Class '\WP_Defender\Module\Scan\Behavior\Pro\Content_Result' not found in /home/462389.Myserver.com/kdkfhyzmad/public_html/wp-content/plugins/defender-security/vendor/hammer/base/component.php:240
    Stack trace:
    #0 /home/462389.Myserver.com/kdkfhyzmad/public_html/wp-content/plugins/defender-security/vendor/hammer/base/component.php(283): Hammer\Base\Component->ensureBehaviors()
    #1 /home/462389.Myserver.com/kdkfhyzmad/public_html/wp-content/plugins/defender-security/app/module/scan/model/scan.php(129): Hammer\Base\Component->hasMethod('getInfo')
    #2 /home/462389.Myserver.com/kdkfhyzmad/public_html/wp-content/plugins/defender-security/app/module/scan/component/data-factory.php(38): WP_Defender\Module\Scan\Model\Scan->getItemsAsJson(0, 'issue', NULL)
    #3 /home/462389.Myserver.com/kdkfhyzmad/public_html/wp-content/plugins/defender-security/app/module/scan/component/data-factory.php(93): WP_Defender\Module\Scan\Component\Data_Factory::buildData()
    #4 /home/462389.Myserver.c

    Best regards
    RAfilathif

    • This reply was modified 4 years, 2 months ago by rafilathif.
    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @rafilathif,

    Thanks for the additional info, however, we’re still unable to replicate this issue on our end.

    To make sure that the plugin was installed correctly could you please try removing it and then installing it again, this should ensure that all the files are in place in case that some kind of a hiccup happened during initial installation.

    If that doesn’t help can you please perform a conflict test by disabling other plugins and switching to default WP theme to see if Defender is loading fine after that?
    If it does, enable them back one by one until the issue is back and that should tell us where the conflict is coming from so we can debug it further from there.

    I suggest doing this test on a staging site or if you don’t have one make sure to have a backup of your site ready before proceeding with the test.

    Cheers,
    Predrag

    Thread Starter rafilathif

    (@rafilathif)

    Thanks for your Advice

    I was tested with my theme and plugins which is comes with theme developers.
    here you can see the plugin list

    And I try to remove .htaccess file and added default .htaccess like bellow

    # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    # END WordPress

    The other test I did remove all the plugin and activate only defender plugin still same
    please watch here

    Best regards
    Rrafilathif

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @rafilathif,

    There is just one I suppose that needs checks and that is the theme. Did you perform all the test using the default theme or the Urna theme? If you did not perform it using the default theme, do try to check this by activating the default WordPress themes like 2017,2019,2020 and check if that works. If that does, please try to activate the Urna Parent theme if that works.

    If that works on the parent theme, then the child theme function file has something messing up. If it does work with the WordPress default themes and not the parent Urna theme, then you would need to check with the theme authors as that is what would be causing an issue. Do let me know if that works for you.

    Thank you,
    Prathamesh Palve

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @rafilathif ,

    We haven’t heard from you for a while, I’ll assume the issue is resolved now.
    Please feel free to re-open if needed.

    kind regards,
    Kasia

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘critical error on defender’ is closed to new replies.