Title: PHP errors when user is NOT admin
Last modified: July 21, 2025

---

# PHP errors when user is NOT admin

 *  [david.nemec](https://wordpress.org/support/users/kosak/)
 * (@kosak)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/php-errors-when-user-is-not-admin/)
 * Hello,
 * in wp-admin, when the user is Editor, Contributor (everything lower than Administrator),
   your plugin generates many PHP errors and warning to WP-admin area. 
   Like
 *     ```wp-block-code
       Warning: Undefined array key 1 in /wp-content/plugins/before-after-image-comparison-slider-for-elementor/before-after-image-comparison-slider-for-elementor.php on line 110Warning: Undefined array key 2 in /wp-content/plugins/before-after-image-comparison-slider-for-elementor/before-after-image-comparison-slider-for-elementor.php on line 111Warning: Undefined array key 4 in /wp-content/plugins/before-after-image-comparison-slider-for-elementor/before-after-image-comparison-slider-for-elementor.php on line 112Warning: Undefined array key 5 in /wp-content/plugins/before-after-image-comparison-slider-for-elementor/before-after-image-comparison-slider-for-elementor.php on line 113Warning: Trying to access array offset on value of type null in /wp-admin/includes/plugin.php on line 2010Warning: Trying to access array offset on value of type null in /wp-admin/includes/plugin.php on line 2010Warning: Trying to access array offset on value of type null in /wp-admin/includes/plugin.php on line 2010Warning: Trying to access array offset on value of type null in /wp-admin/includes/plugin.php on line 2010Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/before-after-image-comparison-slider-for-elementor/before-after-image-comparison-slider-for-elementor.php:110) in /wp-includes/functions.php on line 7168Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/before-after-image-comparison-slider-for-elementor/before-after-image-comparison-slider-for-elementor.php:110) in /wp-includes/functions.php on line 7144Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/before-after-image-comparison-slider-for-elementor/before-after-image-comparison-slider-for-elementor.php:110) in /wp-admin/admin-header.php on line 14Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/before-after-image-comparison-slider-for-elementor/before-after-image-comparison-slider-for-elementor.php:110) in /wp-includes/option.php on line 1740Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/before-after-image-comparison-slider-for-elementor/before-after-image-comparison-slider-for-elementor.php:110) in /wp-includes/option.php on line 1741Warning: Trying to access array offset on value of type null in /wp-admin/includes/plugin.php on line 2010Warning: Trying to access array offset on value of type null in /wp-admin/includes/plugin.php on line 2010Warning: Trying to access array offset on value of type null in /wp-admin/includes/plugin.php on line 2010Warning: Trying to access array offset on value of type null in /wp-admin/includes/plugin.php on line 2010
       ```
   
 * Only disabling display errros work, but could you fix it, please?

The topic ‘PHP errors when user is NOT admin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/before-after-image-comparison-slider-
   for-elementor.svg)
 * [Before After Image Comparison Slider for Elementor](https://wordpress.org/plugins/before-after-image-comparison-slider-for-elementor/)
 * [Support Threads](https://wordpress.org/support/plugin/before-after-image-comparison-slider-for-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/before-after-image-comparison-slider-for-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/before-after-image-comparison-slider-for-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/before-after-image-comparison-slider-for-elementor/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [david.nemec](https://wordpress.org/support/users/kosak/)
 * Last activity: [10 months, 2 weeks ago](https://wordpress.org/support/topic/php-errors-when-user-is-not-admin/)
 * Status: not resolved