Title: class wp script giving error message
Last modified: June 21, 2021

---

# class wp script giving error message

 *  [sevensthemes](https://wordpress.org/support/users/sevensthemes/)
 * (@sevensthemes)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/class-wp-script-giving-error-message/)
 * [21-Jun-2021 17:22:21 UTC] PHP Warning: preg_match() expects parameter 2 to be
   string, array given in /home4/sevensthemes/demo.sevensthemes.com/wp-includes/
   class.wp-scripts.php on line 372
    [21-Jun-2021 17:22:21 UTC] PHP Warning: strpos()
   expects parameter 1 to be string, array given in /home4/sevensthemes/demo.sevensthemes.
   com/wp-includes/class.wp-scripts.php on line 372
 *     ```
       if ( ! preg_match( '|^(https?:)?//|', $src ) && ! ( $this->content_url && 0 === strpos( $src, $this->content_url ) ) ) {
       $src = $this->base_url . $src;
       		}
       ```
   
 * What should i do ?
    How to resolve this issue ?
    -  This topic was modified 4 years, 9 months ago by [sevensthemes](https://wordpress.org/support/users/sevensthemes/).

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/class-wp-script-giving-error-message/#post-14580414)
 * Try contacting [https://demo.sevensthemes.com/](https://demo.sevensthemes.com/)
 * Since that’s `a commercial product and need support, please go to their official
   support channel. In order to be good stewards of the WordPress community, and
   encourage innovation and progress, we feel it’s important to direct people to
   those official locations.
 * Forum volunteers are also not given access to commercial products, so they would
   not know why your commercial theme or plugin is not working properly. This is
   one other reason why volunteers forward you to the commercial product’s vendors.
   The vendors are responsible for supporting their commercial product.

Viewing 1 replies (of 1 total)

The topic ‘class wp script giving error message’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/class-wp-script-giving-error-message/#post-14580414)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
