Title: Stackable Error &#8211; stripos expects string array given
Last modified: December 9, 2023

---

# Stackable Error – stripos expects string array given

 *  Resolved [darvand](https://wordpress.org/support/users/aminvanda/)
 * (@aminvanda)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/stackable-error-stripos-expects-string-array-given/)
 * Hi. In the latest two versions I got this error on my client’s website:
 * **Fatal error**: Uncaught TypeError: stripos(): Argument #1 ($haystack) must 
   be of type string, array given in /wp-content/plugins/stackable-ultimate-gutenberg-
   blocks-premium-c/pro__premium_only/src/conditional-display/post-meta.php:76
 * And I had to fix it myself like this:
 *     ```wp-block-code
       if ( $operator === 'contains' ) {
                       if(is_array($value)){
                           return stripos( $value[0], $expected ) !== false;
                       }else{
                           return stripos( $value, $expected ) !== false;
                       }
                   }
                   if ( $operator === 'does-not-contain' ) {
                       if(is_array($value)){
                           return stripos( $value[0], $expected ) === false;
                       }else{
                           return stripos( $value, $expected ) === false;
                       }
   
                   }
       ```
   
 * Please consider applying it in the next version. Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Benjamin Intal](https://wordpress.org/support/users/bfintal/)
 * (@bfintal)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/stackable-error-stripos-expects-string-array-given/#post-17266801)
 * Thanks for this [@aminvanda](https://wordpress.org/support/users/aminvanda/),
   this will be included in the next update. Marking this as resolved.

Viewing 1 replies (of 1 total)

The topic ‘Stackable Error – stripos expects string array given’ is closed to new
replies.

 * ![](https://ps.w.org/stackable-ultimate-gutenberg-blocks/assets/icon-256x256.
   png?rev=2749547)
 * [Stackable - Page Builder Gutenberg Blocks](https://wordpress.org/plugins/stackable-ultimate-gutenberg-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stackable-ultimate-gutenberg-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stackable-ultimate-gutenberg-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/stackable-ultimate-gutenberg-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stackable-ultimate-gutenberg-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stackable-ultimate-gutenberg-blocks/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Benjamin Intal](https://wordpress.org/support/users/bfintal/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/stackable-error-stripos-expects-string-array-given/#post-17266801)
 * Status: resolved