Title: Cannot use a scalar value as an array in wp-includes/class.wp-scripts.php
Last modified: August 21, 2016

---

# Cannot use a scalar value as an array in wp-includes/class.wp-scripts.php

 *  [jorgescherer](https://wordpress.org/support/users/jorgescherer/)
 * (@jorgescherer)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-use-a-scalar-value-as-an-array-in-wp-includesclasswp-scriptsphp/)
 * Hello. My website has been recently taken down by my hosting company, as it has
   been using too much CPU from the server for a while.
 * Among other things, they said I should check out my “error_log” file to see if
   there was anything going on that I could improve.
 * To my surprise, there was a gigantic file filled with the same error, over and
   over, that said:
 * > Cannot use a scalar value as an array in /home/jorge538/public_html/novoblog/
   > wp-includes/class.wp-scripts.php on line 167
 * I checked out the file `class.wp-scripts.php` but don’t really understand what
   could be wrong. It contains the following code:
 * _[Excessive code moderated. There’s no need to post core files here.]_
 * I don’t know if this error could have anything with the intense CPU usage that
   my hosting company mentioned. I am including a link where the full error_log 
   can be accessed for further investigation. You can see the full error_log in 
   the following address: [http://www.jorgescherer.com/downloads/error_log.txt](http://www.jorgescherer.com/downloads/error_log.txt)
 * Not sure if this is importante but my PHP version is 5.2.17
 * Thanks in advance.

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-use-a-scalar-value-as-an-array-in-wp-includesclasswp-scriptsphp/#post-5041923)
 * You seem to have a bad plugin or theme. Have you tried:
 * – deactivating **all** plugins to see if this resolves the problem. If this works,
   re-activate the plugins one by one until you find the problematic plugin(s).
 * – switching to the default theme to rule out any theme-specific problems.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause
   problems.

Viewing 1 replies (of 1 total)

The topic ‘Cannot use a scalar value as an array in wp-includes/class.wp-scripts.
php’ is closed to new replies.

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-use-a-scalar-value-as-an-array-in-wp-includesclasswp-scriptsphp/#post-5041923)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
