Title: Plugin not working, throwing PHP fatal error.
Last modified: September 12, 2021

---

# Plugin not working, throwing PHP fatal error.

 *  Resolved [moinr](https://wordpress.org/support/users/moinr/)
 * (@moinr)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-working-throwing-php-fatal-error/)
 * I get this error when I try to open malware scan page
 * `PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on 
   string in /var/www/html/wp-content/plugins/wp-malware-removal/wpmr.php:4445\nStack
   trace:\n#0 /var/www/html/wp-content/plugins/wp-malware-removal/wpmr.php(1972):
   WPMR_Init->update_setting()\n#1 /var/www/html/wp-content/plugins/wp-malware-removal/
   wpmr.php(2080): WPMR_Init->get_definitions()\n#2 /var/www/html/wp-includes/class-
   wp-hook.php(303): WPMR_Init->scanner_page()\n#3 /var/www/html/wp-includes/class-
   wp-hook.php(327): WP_Hook->apply_filters()\n#4 /var/www/html/wp-includes/plugin.
   php(470): WP_Hook->do_action()\n#5 /var/www/html/wp-admin/admin.php(259): do_action()\
   n#6 {main}\n thrown in /var/www/html/wp-content/plugins/wp-malware-removal/wpmr.
   php on line 4445`
 * Any solution for this ?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [hamidraja](https://wordpress.org/support/users/hamidraja/)
 * (@hamidraja)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-working-throwing-php-fatal-error/#post-14864958)
 * Hi
 * The problem you mentioned is caused due to non array element assigned to variable.
 * It can be fixed by adding an if condition as below.
 *     ```
       $arr = get_option( 'plugin_functionality' );
        if ( ! $arr ) {
           $arr = array();
       }
       ```
   
    -  This reply was modified 4 years, 8 months ago by [hamidraja](https://wordpress.org/support/users/hamidraja/).
    -  This reply was modified 4 years, 8 months ago by [hamidraja](https://wordpress.org/support/users/hamidraja/).
 *  Plugin Author [Malcure Web Security](https://wordpress.org/support/users/malcure/)
 * (@malcure)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-working-throwing-php-fatal-error/#post-14865018)
 * Did you update the malware definitions?
 *  Plugin Author [Malcure Web Security](https://wordpress.org/support/users/malcure/)
 * (@malcure)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-working-throwing-php-fatal-error/#post-14990923)
 * Resolving due to no response.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin not working, throwing PHP fatal error.’ is closed to new replies.

 * ![](https://ps.w.org/wp-malware-removal/assets/icon.svg?rev=3394905)
 * [Malcure Malware Shield — Removal, Repair, Monitor](https://wordpress.org/plugins/wp-malware-removal/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-malware-removal/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-malware-removal/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-malware-removal/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-malware-removal/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-malware-removal/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Malcure Web Security](https://wordpress.org/support/users/malcure/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-working-throwing-php-fatal-error/#post-14990923)
 * Status: resolved