Whoops \ Exception \ ErrorException (E_DEPRECATED)
str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated Whoops\Exception\ErrorException thrown with message "str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated" Stacktrace: #7 Whoops\Exception\ErrorException in /htmlroot/www-in.abs.living-consultoria.com.br/src/app/Presenters/TemplatePresenter.php:136 #6 str_replace in /htmlroot/www-in.abs.living-consultoria.com.br/src/app/Presenters/TemplatePresenter.php:136 #5 App\Presenters\TemplatePresenter:presentBgPosition in /htmlroot/www-in.abs.living-consultoria.com.br/src/app/Presenters/TemplatePresenter.php:53 #4 App\Presenters\TemplatePresenter:presentHeaderStyles in /htmlroot/www-in.abs.living-consultoria.com.br/vendor/bruno-barros/wordpress-packages/packages/Presenters/BasePresenter.php:91 #3 WpPack\Presenters\BasePresenter:__get in /htmlroot/www-in.abs.living-consultoria.com.br/src/themes/absrio/index.php:19 #2 include in /htmlroot/www-in.abs.living-consultoria.com.br/cms/wp-includes/template-loader.php:106 #1 require_once in /htmlroot/www-in.abs.living-consultoria.com.br/cms/wp-blog-header.php:19 #0 require in /htmlroot/www-in.abs.living-consultoria.com.br/index.php:19
Stack frames (8)
7
Whoops\Exception\ErrorException
/src/app/Presenters/TemplatePresenter.php136
6
str_replace
/src/app/Presenters/TemplatePresenter.php136
5
App\Presenters\TemplatePresenter presentBgPosition
/src/app/Presenters/TemplatePresenter.php53
4
App\Presenters\TemplatePresenter presentHeaderStyles
/vendor/bruno-barros/wordpress-packages/packages/Presenters/BasePresenter.php91
3
WpPack\Presenters\BasePresenter __get
/src/themes/absrio/index.php19
2
include
/cms/wp-includes/template-loader.php106
1
require_once
/cms/wp-blog-header.php19
0
require
/index.php19
/htmlroot/www-in.abs.living-consultoria.com.br/src/app/Presenters/TemplatePresenter.php
    {
        $size = get_field('bg_size', $this->ID);

        if($size == 'fit-width')
        {
            $size = '100% auto';
        }
        else if($size == 'fit-height')
        {
            $size = 'auto 100%';
        }

        return $size;
    }

    public function presentBgPosition()
    {
        $position = get_field('bg_position', $this->ID);

        return str_replace('-', ' ', $position);
    }

    public function presentTitleColor()
    {
        $style = get_field('tit_color', $this->ID);

        return 'title-'.$style;
    }

    public function presentSubTitle()
    {
        $subtitle = get_field('description', $this->ID);

        return $subtitle;
    }
}
Arguments
  1. "str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated"
    
/htmlroot/www-in.abs.living-consultoria.com.br/src/app/Presenters/TemplatePresenter.php
    {
        $size = get_field('bg_size', $this->ID);

        if($size == 'fit-width')
        {
            $size = '100% auto';
        }
        else if($size == 'fit-height')
        {
            $size = 'auto 100%';
        }

        return $size;
    }

    public function presentBgPosition()
    {
        $position = get_field('bg_position', $this->ID);

        return str_replace('-', ' ', $position);
    }

    public function presentTitleColor()
    {
        $style = get_field('tit_color', $this->ID);

        return 'title-'.$style;
    }

    public function presentSubTitle()
    {
        $subtitle = get_field('description', $this->ID);

        return $subtitle;
    }
}
/htmlroot/www-in.abs.living-consultoria.com.br/src/app/Presenters/TemplatePresenter.php
        {
            $styles .= "background-image: url({$img}); ";
        }

        if ($color = $this->presentBgColor())
        {
            $styles .= "background-color: {$color}; ";
        }

        if ($repeat = $this->presentBgRepeat())
        {
            $styles .= "background-repeat: {$repeat}; ";
        }

        if ($size = $this->presentBgSize())
        {
            $styles .= "background-size: {$size}; ";
        }

        if ($position = $this->presentBgPosition())
        {
            $styles .= "background-position: {$position}; ";
        }

        if ($fixed = $this->presentBgFixed())
        {
            $styles .= "background-attachment: {$fixed}; ";
        }

        return $styles;
    }

    public function presentHeaderClasses()
    {

        if(!is_singular())
        {
            return '';
        }

/htmlroot/www-in.abs.living-consultoria.com.br/vendor/bruno-barros/wordpress-packages/packages/Presenters/BasePresenter.php
        if($this->isMainQuery)
        {
            setup_postdata( $this->wpo );
        }
    }
 
    /**
     * Pass any unknown variable calls to present{$variable}()
     * or fall through to the injected object.
     *
     * @param  string $var
     * @return mixed
     */
    public function __get($var)
    {
        $method = 'present' . str_replace(' ', '', ucwords(str_replace(array('-', '_'), ' ', $var)));
 
        if (method_exists($this, $method))
        {
            return $this->$method();
        }
 
        if ($this->wpo && get_class($this->wpo) == 'WP_Post')
        {
            return $this->wpo->$var;
        }
        if(isset($this->wpo->post) && isset($this->wpo->post->$var)) // WP_Query
        {
            return $this->wpo->post->$var;
        }
        return null;
    }
 
    /**
     * Pass any unknown methods through to the inject object.
     *
     * @param  string $method
     * @param  array  $arguments
     * @return mixed
     */
/htmlroot/www-in.abs.living-consultoria.com.br/src/themes/absrio/index.php
<?php
// on index.php we set the layout default
Template::layout('sidebar');

$tmpl = new App\Presenters\TemplatePresenter;
?>

<?php get_header(Template::headerType())?>

<main id="page" class="clearfix">


    <article class="<?php echo classes_str('clearfix')?>" role="main">


<!--        ////////////////////////////-->


        <header class="page-header clearfix <?php echo strlen($tmpl->headerClasses) ? $tmpl->headerClasses : 'header-'.Context::get()?>" style="<?php echo strlen($tmpl->headerStyles) ? $tmpl->headerStyles : ''?>">

            <div class="container">
                <div class="row">
                    <div class="col-sm-12">

                        <?php
                        /**
                         * Page header
                         */
                        ?>
                        <?php echo view(Template::page().'-header', [], 'pages.page-header')?>

                    </div>
                </div>
            </div>

        </header>


<!--        ////////////////////////////-->

/htmlroot/www-in.abs.living-consultoria.com.br/cms/wp-includes/template-loader.php
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/htmlroot/www-in.abs.living-consultoria.com.br/src/themes/absrio/index.php"
    
/htmlroot/www-in.abs.living-consultoria.com.br/cms/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. "/htmlroot/www-in.abs.living-consultoria.com.br/cms/wp-includes/template-loader.php"
    
/htmlroot/www-in.abs.living-consultoria.com.br/index.php
<?php
/**
 * ----------------------------------------------------
 * w.eloquent
 * @link https://github.com/bruno-barros/w.eloquent
 *-----------------------------------------------------
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/**
 * Loads the WordPress Environment and Template
 */
require(dirname(__FILE__) . '/cms/wp-blog-header.php');
Arguments
  1. "/htmlroot/www-in.abs.living-consultoria.com.br/cms/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"nginx/1.22.1"
REQUEST_URI
"/parceiros/christian-teixeira-advogados/"
USER
"www-data"
HOME
"/var/www"
HTTP_REFERER
"https://abs-rio.com.br/parceiros/christian-teixeira-advogados"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_ACCEPT
"*/*"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_FORWARDED_HOST
"abs-rio.com.br"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_FOR
"216.73.216.43"
HTTP_X_REAL_IP
"216.73.216.43"
HTTP_HOST
"abs-rio.com.br"
HTTP_CONNECTION
"upgrade"
PATH_INFO
""
SCRIPT_FILENAME
"/htmlroot/www-in.abs.living-consultoria.com.br/index.php"
REDIRECT_STATUS
"200"
SERVER_NAME
"www.abs-rio.com.br"
SERVER_PORT
"443"
SERVER_ADDR
"10.192.0.6"
REMOTE_USER
""
REMOTE_PORT
"35152"
REMOTE_ADDR
"10.192.0.3"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
REQUEST_SCHEME
"https"
SERVER_PROTOCOL
"HTTP/1.1"
DOCUMENT_ROOT
"/htmlroot/www-in.abs.living-consultoria.com.br"
DOCUMENT_URI
"/index.php"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1748764425.3029
REQUEST_TIME
1748764425
APP_ENV
"local"
APP_THEME
"default"
APP_MAIN_THEME
"default"
DB_HOST
"mysql-in.abs.living-consultoria.com.br"
DB_NAME
"wordpress"
DB_USER
"wordpress"
DB_PASSWORD
"ABSRioLiv2024!!"
DB_PREFIX
"abs_"
CRM_DB_HOST
"mysql-in.abs.living-consultoria.com.br"
CRM_DB_NAME
"integracao"
CRM_DB_USER
"wordpress"
CRM_DB_PASSWORD
"ABSRioLiv2024!!"
CRM_DB_PREFIX
""
WP_HOME
"https://abs-rio.com.br"
WP_SITEURL
"https://abs-rio.com.br/cms"
WPCACHEHOME
"/home/absrio/public_html/src/plugins/wp-super-cache/"
MAIL_DRIVER
"smtp"
MAIL_HOST
"sistema.abs-rio.com.br"
MAIL_PORT
465
MAIL_ENCR
"ssl"
MAIL_USER
"webmaster@sistema.abs-rio.com.br"
MAIL_PASS
"_9AKI]Hr!5pn"
CF7_USER_DATA
4366
CF7_USER_PASS
4365
WEBSERVICE_MAINTENANCE_DATES
"2024-10-05 05:00:00@2024-10-05 10:00:00"
PS_SANDBOX
false
PS_USER
"financeiro@abs-rio.com.br"
PS_TOKEN
"0d68e60a-610f-4960-a441-608e6cf7f8b4de22f07a43368ee31758ae3b31e5d50a7385-6af3-48cf-94eb-ade78876239a"
PAGARME_SANDBOX
false
PAGARME_API
"ak_live_RDYNb5JBne9kolhmCaEy0jagqm3xAM"
PAGARME_API_TEST
"ak_test_QoCYG4Z6XM9kAKT5oN96ejjq0G2UZf"
PAGARME_2_API
"ak_live_c5gAWJ3v3npkfisw1Bl8rxdpw3kf92"
PAGARME_2_API_TEST
"ak_test_F8SMQyOGenFVCIj0Afkz64OlHXMiNY"
PAGARME_V5_ID
"acc_Jn5x5BMcXKiMmDE1"
PAGARME_V5_PUBLIC
"pk_yR0EpyJHqyHoj8oX"
PAGARME_V5_PRIVATE
"sk_7a043eb02fdd4553981076dfa8b519de"
PAGARME_V5_PASSWORD
""
PAYPAL_SANDBOX
false
PAYPAL_CLIENT_ID
"ASEd8jMxUth-EXxcDMwaGPLKKOfWmOSCbLkJNWzSLND3dEMq0fIsopVizQWZCm-BxlHcUpgAwxbUQabV"
PAYPAL_SECRET
"EBMnZIW2m-1kJm-vfR1nPwqyEoT5w02u3vxqxLmXIZJm_eAsljpmaH_IYtp_xRnrUrrZ7aopVlR5u5_3"
HUMIO_KEY
"d4440ec5-753e-4c0d-8287-4aa9616d27bc"
SENTRY_ENABLED
true
SENTRY_DNS
"https://4c52127f000ec2d33c94f5b3dbc60b3d@o4506560158892032.ingest.sentry.io/4506560162627584"
AUTH0_DOMAIN
"absrio.us.auth0.com"
AUTH0_CLIENT_ID
"0w3N6HyA9ssT0850XSuqKe6H7WEqnZoZ"
AUTH0_CLIENT_SECRET
"NOFfXvVxQB7UtFtGAg4eW9K6eionlpHxRDvLCpT3hFeemRFNGWoUCInWWcSRuYCC"
AUTH0_CONNECTION
"db-abs-rio-production"
AUTH0_CONNECTION_ID
"con_4UoJUe7bAmZAkWcf"
Key Value
APP_ENV
"local"
APP_THEME
"default"
APP_MAIN_THEME
"default"
DB_HOST
"mysql-in.abs.living-consultoria.com.br"
DB_NAME
"wordpress"
DB_USER
"wordpress"
DB_PASSWORD
"ABSRioLiv2024!!"
DB_PREFIX
"abs_"
CRM_DB_HOST
"mysql-in.abs.living-consultoria.com.br"
CRM_DB_NAME
"integracao"
CRM_DB_USER
"wordpress"
CRM_DB_PASSWORD
"ABSRioLiv2024!!"
CRM_DB_PREFIX
""
WP_HOME
"https://abs-rio.com.br"
WP_SITEURL
"https://abs-rio.com.br/cms"
WPCACHEHOME
"/home/absrio/public_html/src/plugins/wp-super-cache/"
MAIL_DRIVER
"smtp"
MAIL_HOST
"sistema.abs-rio.com.br"
MAIL_PORT
465
MAIL_ENCR
"ssl"
MAIL_USER
"webmaster@sistema.abs-rio.com.br"
MAIL_PASS
"_9AKI]Hr!5pn"
CF7_USER_DATA
4366
CF7_USER_PASS
4365
WEBSERVICE_MAINTENANCE_DATES
"2024-10-05 05:00:00@2024-10-05 10:00:00"
PS_SANDBOX
false
PS_USER
"financeiro@abs-rio.com.br"
PS_TOKEN
"0d68e60a-610f-4960-a441-608e6cf7f8b4de22f07a43368ee31758ae3b31e5d50a7385-6af3-48cf-94eb-ade78876239a"
PAGARME_SANDBOX
false
PAGARME_API
"ak_live_RDYNb5JBne9kolhmCaEy0jagqm3xAM"
PAGARME_API_TEST
"ak_test_QoCYG4Z6XM9kAKT5oN96ejjq0G2UZf"
PAGARME_2_API
"ak_live_c5gAWJ3v3npkfisw1Bl8rxdpw3kf92"
PAGARME_2_API_TEST
"ak_test_F8SMQyOGenFVCIj0Afkz64OlHXMiNY"
PAGARME_V5_ID
"acc_Jn5x5BMcXKiMmDE1"
PAGARME_V5_PUBLIC
"pk_yR0EpyJHqyHoj8oX"
PAGARME_V5_PRIVATE
"sk_7a043eb02fdd4553981076dfa8b519de"
PAGARME_V5_PASSWORD
""
PAYPAL_SANDBOX
false
PAYPAL_CLIENT_ID
"ASEd8jMxUth-EXxcDMwaGPLKKOfWmOSCbLkJNWzSLND3dEMq0fIsopVizQWZCm-BxlHcUpgAwxbUQabV"
PAYPAL_SECRET
"EBMnZIW2m-1kJm-vfR1nPwqyEoT5w02u3vxqxLmXIZJm_eAsljpmaH_IYtp_xRnrUrrZ7aopVlR5u5_3"
HUMIO_KEY
"d4440ec5-753e-4c0d-8287-4aa9616d27bc"
SENTRY_ENABLED
true
SENTRY_DNS
"https://4c52127f000ec2d33c94f5b3dbc60b3d@o4506560158892032.ingest.sentry.io/4506560162627584"
AUTH0_DOMAIN
"absrio.us.auth0.com"
AUTH0_CLIENT_ID
"0w3N6HyA9ssT0850XSuqKe6H7WEqnZoZ"
AUTH0_CLIENT_SECRET
"NOFfXvVxQB7UtFtGAg4eW9K6eionlpHxRDvLCpT3hFeemRFNGWoUCInWWcSRuYCC"
AUTH0_CONNECTION
"db-abs-rio-production"
AUTH0_CONNECTION_ID
"con_4UoJUe7bAmZAkWcf"
0. Whoops\Handler\PrettyPageHandler