Title: Array to string conversion error
Last modified: April 22, 2021

---

# Array to string conversion error

 *  [robertadamsnextraq](https://wordpress.org/support/users/robertadamsnextraq/)
 * (@robertadamsnextraq)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/array-to-string-conversion-error-6/)
 * I’m seeing a message on my site:
    Notice: Array to string conversion in /var/
   www/html/wp-content/plugins/wp-security-audit-log/classes/Sensors/Widgets.php
   on line 296
 * This line of code has:
    // Compare – checks for any changes inside widgets. –
   > $diff = array_diff_assoc( $widget_data, $widget_db_data[ $widget_id ] ); $count
   = count( $diff );
 * Is the Widgets sensor part of WP Activity Log?? I’m running PHP 7.4.16 I do have
   an older version of WordPress, 5.6.2.

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

 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/array-to-string-conversion-error-6/#post-14363480)
 * Hello [@robertadamsnextraq](https://wordpress.org/support/users/robertadamsnextraq/)
 * Thank you for using our plugin. I am sorry to read about your issue.
 * How often are you seeing this message and do you know how to reproduce the issue?
   I.e. are there specific changes / steps to follow to reproduce it?
 * Looking forward to hearing from you.
 *  Thread Starter [robertadamsnextraq](https://wordpress.org/support/users/robertadamsnextraq/)
 * (@robertadamsnextraq)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/array-to-string-conversion-error-6/#post-14867100)
 * Hi Robert
    Sorry for the delayed response. I’ve been told that when we edit the
   widgets, we get notice. You have to make some changes and hit the save button
   at the bottom of the widget. Then only we can see the error. Since it is a notice,
   this is not affecting the execution but I’d like to fix it none-the-less. I just
   updated WP Activity Log to 4.3.2 and I’m running wordpress to 5.7.2 now but the
   warning persists.
 * Robert
 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/array-to-string-conversion-error-6/#post-14875988)
 * Thank you for your update [@robertadamsnextraq](https://wordpress.org/support/users/robertadamsnextraq/)
 * We will look into the issue and I’ll let you know if we need more information.
   In the meantime, if you have other questions, please do not hesitate to ask.
 * Have a great day.
 *  [Danny Jones](https://wordpress.org/support/users/distinctivepixels/)
 * (@distinctivepixels)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/array-to-string-conversion-error-6/#post-14877935)
 * Hi [@robertadamsnextraq](https://wordpress.org/support/users/robertadamsnextraq/)
 * Are you seeing this when you change any widget?
 * Iv been testing the widgets and am yet unable to replicate any error using WP
   5.6.2 and a variety of widgets so would it be possible to email me directly at
   [support@wpwhitesecurity.com](https://wordpress.org/support/topic/array-to-string-conversion-error-6/support@wpwhitesecurity.com?output_format=md)
   so we can look into this further?
 * Look forward to hearing from you.
 * Kind regards, Daniel @ WP White Security

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

The topic ‘Array to string conversion error’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Danny Jones](https://wordpress.org/support/users/distinctivepixels/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/array-to-string-conversion-error-6/#post-14877935)
 * Status: not resolved