Whoops \ Exception \ ErrorException (E_WARNING)
Undefined array key "" Whoops\Exception\ErrorException thrown with message "Undefined array key """ Stacktrace: #8 Whoops\Exception\ErrorException in /home/jussaranunes/public_html/wp-content/plugins/zhf-ecommerce/modules/etiquetas/etiquetas.php:312 #7 Whoops\Run:handleError in /home/jussaranunes/public_html/wp-content/plugins/zhf-ecommerce/modules/etiquetas/etiquetas.php:312 #6 Zhf_Module_Etiquetas:makeBadge in /home/jussaranunes/public_html/wp-content/plugins/zhf-ecommerce/modules/etiquetas/etiquetas.php:291 #5 Zhf_Module_Etiquetas:add_badge in /home/jussaranunes/public_html/wp-includes/class-wp-hook.php:324 #4 WP_Hook:apply_filters in /home/jussaranunes/public_html/wp-includes/class-wp-hook.php:348 #3 WP_Hook:do_action in /home/jussaranunes/public_html/wp-includes/plugin.php:517 #2 do_action in /home/jussaranunes/public_html/wp-includes/template-loader.php:13 #1 require_once in /home/jussaranunes/public_html/wp-blog-header.php:19 #0 require in /home/jussaranunes/public_html/index.php:17
Stack frames (9)
8
Whoops\Exception\ErrorException
/home/jussaranunes/public_html/wp-content/plugins/zhf-ecommerce/modules/etiquetas/etiquetas.php312
7
Whoops\Run handleError
/home/jussaranunes/public_html/wp-content/plugins/zhf-ecommerce/modules/etiquetas/etiquetas.php312
6
Zhf_Module_Etiquetas makeBadge
/home/jussaranunes/public_html/wp-content/plugins/zhf-ecommerce/modules/etiquetas/etiquetas.php291
5
Zhf_Module_Etiquetas add_badge
/home/jussaranunes/public_html/wp-includes/class-wp-hook.php324
4
WP_Hook apply_filters
/home/jussaranunes/public_html/wp-includes/class-wp-hook.php348
3
WP_Hook do_action
/home/jussaranunes/public_html/wp-includes/plugin.php517
2
do_action
/home/jussaranunes/public_html/wp-includes/template-loader.php13
1
require_once
/home/jussaranunes/public_html/wp-blog-header.php19
0
require
/home/jussaranunes/public_html/index.php17
/home/jussaranunes/public_html/wp-content/plugins/zhf-ecommerce/modules/etiquetas/etiquetas.php

  /**
   * @param $data
   */
  public function makeBadge($data)
  {
    $hooks = [];

    foreach ($data as $etiqueta) {
      $etiqueta_position_list = $etiqueta['zhf_etiquetas_position_list'];
      $etiqueta_position_product = $etiqueta['zhf_etiquetas_position_product'];

      if ($etiqueta_position_list !== 'not_show') {
        if ($etiqueta_position_list === 'custom') {
          $hooks['custom_list']['name'] = $etiqueta['zhf_etiquetas_position_list_hook'];
          $hooks['custom_list']['priority'] = $etiqueta['zhf_etiquetas_position_list_priority'];
          $hooks['custom_list']['etiquetas'][] = $etiqueta;
        } else {
          if (!array_key_exists($etiqueta_position_list, $hooks)) {
            $hooks[$etiqueta_position_list] = $this->defaultHooks[$etiqueta_position_list];
          }

          $hooks[$etiqueta_position_list]['etiquetas'][] = $etiqueta;
        }
      }

      if ($etiqueta_position_product !== 'not_show') {
        if ($etiqueta_position_product === 'custom') {
          $hooks['custom_product']['name'] = $etiqueta['zhf_etiquetas_position_product_hook'];
          $hooks['custom_product']['priority'] = $etiqueta['zhf_etiquetas_position_product_priority'];
          $hooks['custom_product']['etiquetas'][] = $etiqueta;
        } else {
          if (!array_key_exists($etiqueta_position_product, $hooks)) {
            $hooks[$etiqueta_position_product] = $this->defaultHooks[$etiqueta_position_product];
          }

          $hooks[$etiqueta_position_product]['etiquetas'][] = $etiqueta;
        }
      }
    }
Arguments
  1. "Undefined array key """
    
/home/jussaranunes/public_html/wp-content/plugins/zhf-ecommerce/modules/etiquetas/etiquetas.php

  /**
   * @param $data
   */
  public function makeBadge($data)
  {
    $hooks = [];

    foreach ($data as $etiqueta) {
      $etiqueta_position_list = $etiqueta['zhf_etiquetas_position_list'];
      $etiqueta_position_product = $etiqueta['zhf_etiquetas_position_product'];

      if ($etiqueta_position_list !== 'not_show') {
        if ($etiqueta_position_list === 'custom') {
          $hooks['custom_list']['name'] = $etiqueta['zhf_etiquetas_position_list_hook'];
          $hooks['custom_list']['priority'] = $etiqueta['zhf_etiquetas_position_list_priority'];
          $hooks['custom_list']['etiquetas'][] = $etiqueta;
        } else {
          if (!array_key_exists($etiqueta_position_list, $hooks)) {
            $hooks[$etiqueta_position_list] = $this->defaultHooks[$etiqueta_position_list];
          }

          $hooks[$etiqueta_position_list]['etiquetas'][] = $etiqueta;
        }
      }

      if ($etiqueta_position_product !== 'not_show') {
        if ($etiqueta_position_product === 'custom') {
          $hooks['custom_product']['name'] = $etiqueta['zhf_etiquetas_position_product_hook'];
          $hooks['custom_product']['priority'] = $etiqueta['zhf_etiquetas_position_product_priority'];
          $hooks['custom_product']['etiquetas'][] = $etiqueta;
        } else {
          if (!array_key_exists($etiqueta_position_product, $hooks)) {
            $hooks[$etiqueta_position_product] = $this->defaultHooks[$etiqueta_position_product];
          }

          $hooks[$etiqueta_position_product]['etiquetas'][] = $etiqueta;
        }
      }
    }
Arguments
  1. 2
    
  2. "Undefined array key """
    
  3. "/home/jussaranunes/public_html/wp-content/plugins/zhf-ecommerce/modules/etiquetas/etiquetas.php"
    
  4. 312
    
/home/jussaranunes/public_html/wp-content/plugins/zhf-ecommerce/modules/etiquetas/etiquetas.php
          'etiqueta_html_css' => $zhf_etiquetas_html_css,
          'zhf_etiquetas_show_html_css_toggle' => $zhf_etiquetas_show_html_css_toggle,
          'zhf_etiquetas_position_list' => $zhf_etiquetas_position_list,
          'zhf_etiquetas_position_product' => $zhf_etiquetas_position_product,
          'zhf_etiquetas_position_list_hook' => $zhf_etiquetas_position_list_hook,
          'zhf_etiquetas_position_list_priority' => $zhf_etiquetas_position_list_priority,
          'zhf_etiquetas_position_product_hook' => $zhf_etiquetas_position_product_hook,
          'zhf_etiquetas_position_product_priority' => $zhf_etiquetas_position_product_priority,
          'style' => [
            'background' => $etiqueta_background_color,
            'color' => $etiqueta_text_color,
            'border-radius' => '4px'
          ]
        ];

        $etiquetasArr[] = $data;
      }
    }

    $this->makeBadge($etiquetasArr);
  }

  /**
   * @param $data
   */
  public function makeBadge($data)
  {
    $hooks = [];

    foreach ($data as $etiqueta) {
      $etiqueta_position_list = $etiqueta['zhf_etiquetas_position_list'];
      $etiqueta_position_product = $etiqueta['zhf_etiquetas_position_product'];

      if ($etiqueta_position_list !== 'not_show') {
        if ($etiqueta_position_list === 'custom') {
          $hooks['custom_list']['name'] = $etiqueta['zhf_etiquetas_position_list_hook'];
          $hooks['custom_list']['priority'] = $etiqueta['zhf_etiquetas_position_list_priority'];
          $hooks['custom_list']['etiquetas'][] = $etiqueta;
        } else {
          if (!array_key_exists($etiqueta_position_list, $hooks)) {
Arguments
  1. array:8 [
      0 => array:15 [
        "type" => "padrao"
        "slug" => "black-friday"
        "name" => "BLACK"
        "id" => 1692
        "show_on_product_page" => ""
        "show_on_category" => []
        "etiqueta_html_css" => ""
        "zhf_etiquetas_show_html_css_toggle" => "false"
        "zhf_etiquetas_position_list" => "on_top_right_photo"
        "zhf_etiquetas_position_product" => "not_show"
        "zhf_etiquetas_position_list_hook" => ""
        "zhf_etiquetas_position_list_priority" => ""
        "zhf_etiquetas_position_product_hook" => ""
        "zhf_etiquetas_position_product_priority" => ""
        "style" => array:3 [
          "background" => "#000000"
          "color" => "#fcbd01"
          "border-radius" => "4px"
        ]
      ]
      1 => array:15 [
        "type" => ""
        "slug" => "black-friday-2"
        "name" => "BLACK FRIDAY"
        "id" => 1786
        "show_on_product_page" => ""
        "show_on_category" => []
        "etiqueta_html_css" => ""
        "zhf_etiquetas_show_html_css_toggle" => "false"
        "zhf_etiquetas_position_list" => ""
        "zhf_etiquetas_position_product" => ""
        "zhf_etiquetas_position_list_hook" => ""
        "zhf_etiquetas_position_list_priority" => ""
        "zhf_etiquetas_position_product_hook" => ""
        "zhf_etiquetas_position_product_priority" => ""
        "style" => array:3 [
          "background" => ""
          "color" => ""
          "border-radius" => "4px"
        ]
      ]
      2 => array:15 [
        "type" => "padrao"
        "slug" => "esgotado"
        "name" => "ESGOTADO"
        "id" => 1357
        "show_on_product_page" => "true"
        "show_on_category" => false
        "etiqueta_html_css" => ""
        "zhf_etiquetas_show_html_css_toggle" => ""
        "zhf_etiquetas_position_list" => "not_show"
        "zhf_etiquetas_position_product" => "not_show"
        "zhf_etiquetas_position_list_hook" => ""
        "zhf_etiquetas_position_list_priority" => ""
        "zhf_etiquetas_position_product_hook" => ""
        "zhf_etiquetas_position_product_priority" => ""
        "style" => array:3 [
          "background" => ""
          "color" => "#ff0000"
          "border-radius" => "4px"
        ]
      ]
      3 => array:15 [
        "type" => "padrao"
        "slug" => "gold"
        "name" => "GOLD"
        "id" => 1694
        "show_on_product_page" => ""
        "show_on_category" => array:2 [
          0 => "1580"
          1 => "1646"
        ]
        "etiqueta_html_css" => ""
        "zhf_etiquetas_show_html_css_toggle" => "false"
        "zhf_etiquetas_position_list" => "on_top_right_photo"
        "zhf_etiquetas_position_product" => "not_show"
        "zhf_etiquetas_position_list_hook" => ""
        "zhf_etiquetas_position_list_priority" => ""
        "zhf_etiquetas_position_product_hook" => ""
        "zhf_etiquetas_position_product_priority" => ""
        "style" => array:3 [
          "background" => "#e0b833"
          "color" => "#000000"
          "border-radius" => "4px"
        ]
      ]
      4 => array:15 [
        "type" => ""
        "slug" => "lancamento"
        "name" => "LANÇAMENTO"
        "id" => 1749
        "show_on_product_page" => ""
        "show_on_category" => []
        "etiqueta_html_css" => ""
        "zhf_etiquetas_show_html_css_toggle" => "false"
        "zhf_etiquetas_position_list" => ""
        "zhf_etiquetas_position_product" => ""
        "zhf_etiquetas_position_list_hook" => ""
        "zhf_etiquetas_position_list_priority" => ""
        "zhf_etiquetas_position_product_hook" => ""
        "zhf_etiquetas_position_product_priority" => ""
        "style" => array:3 [
          "background" => ""
          "color" => ""
          "border-radius" => "4px"
        ]
      ]
      5 => array:15 [
        "type" => "padrao"
        "slug" => "promo-halloween"
        "name" => "Promo Halloween"
        "id" => 1358
        "show_on_product_page" => "true"
        "show_on_category" => false
        "etiqueta_html_css" => ""
        "zhf_etiquetas_show_html_css_toggle" => ""
        "zhf_etiquetas_position_list" => "not_show"
        "zhf_etiquetas_position_product" => "not_show"
        "zhf_etiquetas_position_list_hook" => ""
        "zhf_etiquetas_position_list_priority" => ""
        "zhf_etiquetas_position_product_hook" => ""
        "zhf_etiquetas_position_product_priority" => ""
        "style" => array:3 [
          "background" => "#ff7f00"
          "color" => "#000000"
          "border-radius" => "4px"
        ]
      ]
      6 => array:15 [
        "type" => ""
        "slug" => "promocao"
        "name" => "PROMOÇÃO"
        "id" => 1321
        "show_on_product_page" => "true"
        "show_on_category" => false
        "etiqueta_html_css" => ""
        "zhf_etiquetas_show_html_css_toggle" => ""
        "zhf_etiquetas_position_list" => "not_show"
        "zhf_etiquetas_position_product" => "not_show"
        "zhf_etiquetas_position_list_hook" => ""
        "zhf_etiquetas_position_list_priority" => ""
        "zhf_etiquetas_position_product_hook" => ""
        "zhf_etiquetas_position_product_priority" => ""
        "style" => array:3 [
          "background" => ""
          "color" => ""
          "border-radius" => "4px"
        ]
      ]
      7 => array:15 [
        "type" => ""
        "slug" => "segunda-qualidade"
        "name" => "Segunda Qualidade"
        "id" => 1322
        "show_on_product_page" => "true"
        "show_on_category" => false
        "etiqueta_html_css" => ""
        "zhf_etiquetas_show_html_css_toggle" => ""
        "zhf_etiquetas_position_list" => "not_show"
        "zhf_etiquetas_position_product" => "not_show"
        "zhf_etiquetas_position_list_hook" => ""
        "zhf_etiquetas_position_list_priority" => ""
        "zhf_etiquetas_position_product_hook" => ""
        "zhf_etiquetas_position_product_priority" => ""
        "style" => array:3 [
          "background" => ""
          "color" => ""
          "border-radius" => "4px"
        ]
      ]
    ]
    
/home/jussaranunes/public_html/wp-includes/class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 === $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        --$this->nesting_level;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
Arguments
  1. ""
    
/home/jussaranunes/public_html/wp-includes/class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        --$this->nesting_level;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level                      = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
Arguments
  1. null
    
  2. array:1 [
      0 => ""
    ]
    
/home/jussaranunes/public_html/wp-includes/plugin.php
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    if ( empty( $arg ) ) {
        $arg[] = '';
    } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
        // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
        $arg[0] = $arg[0][0];
    }
 
    $wp_filter[ $hook_name ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Calls the callback functions that have been added to an action hook, specifying arguments in an array.
 *
 * @since 2.1.0
 *
 * @see do_action() This function is identical, but the arguments passed to the
 *                  functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_actions        Stores the number of times each action was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the action to be executed.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
 */
function do_action_ref_array( $hook_name, $args ) {
Arguments
  1. array:1 [
      0 => ""
    ]
    
/home/jussaranunes/public_html/wp-includes/template-loader.php
<?php
/**
 * Loads the correct template based on the visitor's url
 *
 * @package WordPress
 */
if ( wp_using_themes() ) {
    /**
     * Fires before determining which template to load.
     *
     * @since 1.5.0
     */
    do_action( 'template_redirect' );
}
 
/**
 * Filters whether to allow 'HEAD' requests to generate content.
 *
 * Provides a significant performance bump by exiting before the page
 * content loads for 'HEAD' requests. See #14348.
 *
 * @since 3.5.0
 *
 * @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
 */
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {
    exit;
}
 
// Process feeds and trackbacks even if not using themes.
if ( is_robots() ) {
    /**
     * Fired when the template loader determines a robots.txt request.
     *
     * @since 2.1.0
     */
    do_action( 'do_robots' );
    return;
} elseif ( is_favicon() ) {
    /**
Arguments
  1. "template_redirect"
    
/home/jussaranunes/public_html/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/home/jussaranunes/public_html/wp-includes/template-loader.php"
    
/home/jussaranunes/public_html/index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 
Arguments
  1. "/home/jussaranunes/public_html/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/produto-tag/blazer-pink/"
USER
"jussaranunes"
HOME
"/home/jussaranunes"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/produto-tag/blazer-pink/"
REMOTE_PORT
"55152"
SCRIPT_FILENAME
"/home/jussaranunes/public_html/index.php"
SERVER_ADMIN
"[email protected]"
CONTEXT_DOCUMENT_ROOT
"/home/jussaranunes/public_html"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/home/jussaranunes/public_html"
REMOTE_ADDR
"18.222.162.135"
SERVER_PORT
"443"
SERVER_ADDR
"177.234.159.90"
SERVER_NAME
"jussaranunes.com.br"
SERVER_SIGNATURE
""
PATH
"/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin"
HTTP_X_HTTPS
"1"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])"
HTTP_ACCEPT
"*/*"
HTTP_CF_RAY
"8f198372cc65cf78-CMH"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CDN_LOOP
"cloudflare; loops=1"
HTTP_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_CF_CONNECTING_IP
"18.222.162.135"
HTTP_X_REAL_IP
"18.222.162.135"
HTTP_X_FORWARDED_SERVER
"jussaranunes.com.br"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_FORWARDED_HOST
"jussaranunes.com.br"
HTTP_X_FORWARDED_FOR
"18.222.162.135"
HTTP_HOST
"jussaranunes.com.br"
proxy-nokeepalive
"1"
HTTPS
"on"
HTTP_AUTHORIZATION
""
SCRIPT_URI
"https://jussaranunes.com.br/produto-tag/blazer-pink/"
SCRIPT_URL
"/produto-tag/blazer-pink/"
UNIQUE_ID
"Z1y6NlF-j3jECBO41MAYQAAAAAk"
REDIRECT_STATUS
"200"
REDIRECT_HTTPS
"on"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_SCRIPT_URI
"https://jussaranunes.com.br/produto-tag/blazer-pink/"
REDIRECT_SCRIPT_URL
"/produto-tag/blazer-pink/"
REDIRECT_UNIQUE_ID
"Z1y6NlF-j3jECBO41MAYQAAAAAk"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1734130230.5576
REQUEST_TIME
1734130230
argv
[]
argc
0
empty
0. Whoops\Handler\PrettyPageHandler