Title: E_ERROR in wp-less.php
Last modified: April 27, 2022

---

# E_ERROR in wp-less.php

 *  [achanne](https://wordpress.org/support/users/achanne/)
 * (@achanne)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/e_error-in-wp-less-php/)
 * Hello,
 * A site owner has forwarded me an error message (email) generated by WP after 
   updating a plugin. After updating, there was apparently a fatal E_ERROR at [https://www.example.com/wp-admin/update.php?action=update-selected&plugins=akismet%2Fakismet.php&_wpnonce=0b80e29853](https://www.example.com/wp-admin/update.php?action=update-selected&plugins=akismet%2Fakismet.php&_wpnonce=0b80e29853)
   and according to the message, it points to line 136 in the theme component file
   wp-less.php:
 * `unset( $plugins->active[ array_search( plugin_basename( __FILE__ ), $plugins-
   >active ) ] );`
 * Other than the error message, the site seems to work without any problems and
   the plugin updated properly without any issues. Although the theme is a paid 
   theme, I am not able to contact the creator(s) because it is obsolete, the publisher
   is no longer around, and replacing the theme is absolutely not an option; but
   the wp-less.php file is used in many plugins. Is this due to a bug in the latest
   version of WP? Or are there changes I should make to the line of code?

Viewing 1 replies (of 1 total)

 *  Thread Starter [achanne](https://wordpress.org/support/users/achanne/)
 * (@achanne)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/e_error-in-wp-less-php/#post-15594569)
 * Additional note: This is the error message:
 *     ```
       Error Details
       =============
       An error of type E_ERROR was caused in line 136 of the file /home3/clubfood/public_html/community/wp-content/themes/theme_name/inc/wp-less.php. Error message: Uncaught TypeError: array_search(): Argument #2 ($haystack) must be of type array, null given in /home3/clubfood/public_html/community/wp-content/themes/theme_name/inc/wp-less.php:136
       Stack trace:
       #0 /home3/clubfood/public_html/community/wp-content/themes/theme_name/inc/wp-less.php(136): array_search('home3/clubfood/...', NULL)
       #1 /home3/clubfood/public_html/community/wp-includes/class-wp-hook.php(307): wp_less->http_request_args(Array, 'http://api.word...')
       #2 /home3/clubfood/public_html/community/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
       #3 /home3/clubfood/public_html/community/wp-includes/class-wp-http.php(232): apply_filters('http_request_ar...', Array, 'http://api.word...')
       #4 /home3/clubfood/public_html/community/wp-includes/class-wp-http.php(614): WP_Http->request('http://api.word...', Array)
       #5 /home3/clubfood/public_html/community/wp-includes/http.php(179): WP_Http->post('http://api.word...', Array)
       #6 /home3/clubfood/public_html/community/wp-includes/update.php(415): wp_remote_post('http://api.word...', Array)
       #7 /home3/clubfood/public_html/community/wp-includes/class-wp-hook.php(305): wp_update_plugins()
       #8 /home3/clubfood/public_html/community/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
       #9 /home3/clubfood/public_html/community/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
       #10 /home3/clubfood/public_html/community/wp-admin/includes/class-plugin-upgrader.php(371): do_action('upgrader_proces...', Object(Plugin_Upgrader), Array)
       #11 /home3/clubfood/public_html/community/wp-admin/update.php(51): Plugin_Upgrader->bulk_upgrade(Array)
       #12 {main}
         thrown
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘E_ERROR in wp-less.php’ is closed to new replies.

## Tags

 * [E_ERROR](https://wordpress.org/support/topic-tag/e_error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [achanne](https://wordpress.org/support/users/achanne/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/e_error-in-wp-less-php/#post-15594569)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
