Title: ArrayIterator's Replies | WordPress.org

---

# ArrayIterator

  [  ](https://wordpress.org/support/users/arrayiterator/)

 *   [Profile](https://wordpress.org/support/users/arrayiterator/)
 *   [Topics Started](https://wordpress.org/support/users/arrayiterator/topics/)
 *   [Replies Created](https://wordpress.org/support/users/arrayiterator/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/arrayiterator/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/arrayiterator/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/arrayiterator/engagements/)
 *   [Favorites](https://wordpress.org/support/users/arrayiterator/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More] Plugin could not be activated because it triggered a fatal error](https://wordpress.org/support/topic/plugin-could-not-be-activated-because-it-triggered-a-fatal-error-737/)
 *  [ArrayIterator](https://wordpress.org/support/users/arrayiterator/)
 * (@arrayiterator)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/plugin-could-not-be-activated-because-it-triggered-a-fatal-error-737/#post-18162499)
 * Thank you?
   Truly is also my fault 😅
 * cause I’ve been in wrong topic & replies. I was writing about textdomain.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More] Plugin could not be activated because it triggered a fatal error](https://wordpress.org/support/topic/plugin-could-not-be-activated-because-it-triggered-a-fatal-error-737/)
 *  [ArrayIterator](https://wordpress.org/support/users/arrayiterator/)
 * (@arrayiterator)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/plugin-could-not-be-activated-because-it-triggered-a-fatal-error-737/#post-18156440)
 * Hello [@rsouzaam](https://wordpress.org/support/users/rsouzaam/) this looks like
   your code direct load the integration before `after_setup_theme`
 * Looks like your code is invalid on integration, eg: (divi or default themes)
 *     ```wp-block-code
       /** * This is array<string> * @var array<string> */$allow_themes = [ 'Divi', 'Extra' ]; // string[]$theme        = wp_get_theme();$theme_name   = $theme->get_template(); // string (OK)$theme_parent = $theme->parent(); // but this is \WP_Theme// invalid comparation cause using __tostring() / stringable theme objectreturn (bool) array_intersect( [ $theme_name, $theme_parent ], $allow_themes );
       ```
   
 * When you use it for comparation it will call `__tostring()` method, the stringable
   also call the `display()` method on `WP_Theme`.
 * Please follow the github source of `WP_Theme` , that mean the display method 
   will call the method of `load_textdomain()` even the init/setup theme not yet
   called.
 *     ```wp-block-code
       // ref: https://github.com/WordPress/wordpress-develop/blob/d088e31c73456179502c9bd5354fc43c6267bd7a/src/wp-includes/class-wp-theme.php#L811public function display( $header, $markup = true, $translate = true ) {	$value = $this->get( $header );	if ( false === $value ) {		return false;	}	// this is the problem	if ( $translate && ( empty( $value ) || ! $this->load_textdomain() ) ) {		$translate = false;	}	if ( $translate ) {		$value = $this->translate_header( $header, $value );	}	if ( $markup ) {		$value = $this->markup_header( $header, $value, $translate );	}	return $value;}
       ```
   
 * I prefer to change `array_intersect` with this code: (divi)
 *     ```wp-block-code
       /** * This is array<string> * @var array<string> */$allow_themes = [ 'Divi', 'Extra' ];$theme        = wp_get_theme();$theme_name   = $theme->get_template();$theme_parent = $theme->parent(); // \WP_Theme$theme_list = [    $theme_name];if ($theme_parent instanceof \WP_Theme) {    $theme_list[] = $theme_parent->get_template();}// using comparison with real string[]return (bool) array_intersect( $theme_list, $allow_themes );
       ```
   
    -  This reply was modified 1 year, 6 months ago by [ArrayIterator](https://wordpress.org/support/users/arrayiterator/).
      Reason: change description
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Jetpack - WP Security, Backup, Speed, & Growth] Greedy and deceptive](https://wordpress.org/support/topic/greedy-and-deceptive/)
 *  [ArrayIterator](https://wordpress.org/support/users/arrayiterator/)
 * (@arrayiterator)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/greedy-and-deceptive/#post-17867683)
 * When I full focused as a programmer & developer since 2008, I also feels that
   charge of jetpack stats with 8$ maybe it was expensive.
   So was sad to know this!
 * This is not about to make long terms sustainability! But, jetpack just like venture
   capital does! Want to money – money & money, pushing the other to make money 
   everytime & everywhere!
 * Too many people will migrate to the alternative, and I feel that too many people
   now remove the jetpack from their sites.
 * Your team decisions make a fatal decision! When their gone, they will not comeback.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kirki – Freeform Page Builder, Website Builder & Customizer] There is a critical error on your website.](https://wordpress.org/support/topic/there-is-a-critical-error-on-your-website-3/)
 *  [ArrayIterator](https://wordpress.org/support/users/arrayiterator/)
 * (@arrayiterator)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/there-is-a-critical-error-on-your-website-3/#post-15207197)
 * [@davidvongries](https://wordpress.org/support/users/davidvongries/) thanks for
   the update.
    I’m still facing the issues about same error causes autoloading 
   class.
 *     ```
       Class Kirki\Field\CSS\ReactColorful located in ./packages/kirki-framework/control-react-colorful/src/Field/Css/ReactColorful.php does not comply with psr-4 autoloading standard. Skipping.
       Class Kirki\Control\MultiCheck located in ./packages/kirki-framework/control-multicheck/src/Control/Multicheck.php does not comply with psr-4 autoloading standard. Skipping.
       ```
   
 * I also try to update composer `dumpautoload` with `optimize-autoloader` but no
   luck.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kirki – Freeform Page Builder, Website Builder & Customizer] There is a critical error on your website.](https://wordpress.org/support/topic/there-is-a-critical-error-on-your-website-3/)
 *  [ArrayIterator](https://wordpress.org/support/users/arrayiterator/)
 * (@arrayiterator)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/there-is-a-critical-error-on-your-website-3/#post-15207157)
 * [@davidvongries](https://wordpress.org/support/users/davidvongries/)
 * `PHP message: PHP Fatal error: Uncaught Error: Class "\Kirki\Field\CSS\ReactColorful"
   not found in {ROOT}/wp-content/plugins/kirki/packages/kirki-framework/module-
   css/src/CSS/Generator.php:170`
 * this is 4.0, 4.1 version, looks like `composer.json` autoloader config does not
   configure properly.
    -  This reply was modified 4 years, 5 months ago by [ArrayIterator](https://wordpress.org/support/users/arrayiterator/).
    -  This reply was modified 4 years, 5 months ago by [ArrayIterator](https://wordpress.org/support/users/arrayiterator/).

Viewing 5 replies - 1 through 5 (of 5 total)