ErrorException {#3951 #severity: E_WARNING }
public function add_custom_styling_single() {
global $post;
$postID = $GLOBALS['post']->ID;
$wp_meta_key_custom_styling_data = get_post_meta( $postID, 'h5abMetaStylingData', true );
$wp_meta_key_custom_styling_external = get_post_meta( $postID, 'h5abMetaStylingExternal', true );
if(is_single($postID) && !empty($wp_meta_key_custom_styling_external) || is_page($postID) && !empty($wp_meta_key_custom_styling_external)) {
echo wp_kses(stripslashes($wp_meta_key_custom_styling_external), self::$h5ab_custom_styling_kses);
* @throws \ErrorException
*/
public function handleError($level, $message, $file = '', $line = 0, $context = [])
{
try {
parent::handleError($level, $message, $file, $line, $context);
} catch (Throwable $e) {
if (! apply_filters('acorn/throw_error_exception', true, $e)) {
return false;
}
public function add_custom_styling_single() {
global $post;
$postID = $GLOBALS['post']->ID;
$wp_meta_key_custom_styling_data = get_post_meta( $postID, 'h5abMetaStylingData', true );
$wp_meta_key_custom_styling_external = get_post_meta( $postID, 'h5abMetaStylingExternal', true );
if(is_single($postID) && !empty($wp_meta_key_custom_styling_external) || is_page($postID) && !empty($wp_meta_key_custom_styling_external)) {
echo wp_kses(stripslashes($wp_meta_key_custom_styling_external), self::$h5ab_custom_styling_kses);
// 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 ] ) );
*
* @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;
}
} 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 );
}
/**
/**
* Prints scripts or data in the head tag on the front end.
*
* @since 1.5.0
*/
do_action( 'wp_head' );
}
/**
* Fires the wp_footer action.
*
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
*
* @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() );
}
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
ErrorException
|
---|
ErrorException: Attempt to read property "ID" on null at /customers/a/8/3/frederikvincx.com/httpd.www/wp-content/plugins/custom-css-whole-site-and-per-post/h5ab-custom-styling.php:236 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Attempt to read property "ID" on null', '/customers/a/8/3/frederikvincx.com/httpd.www/wp-content/plugins/custom-css-whole-site-and-per-post/h5ab-custom-styling.php', 236, array()) (/customers/a/8/3/frederikvincx.com/httpd.www/wp-content/themes/impactstudio/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:49) at Roots\Acorn\Bootstrap\HandleExceptions->handleError(2, 'Attempt to read property "ID" on null', '/customers/a/8/3/frederikvincx.com/httpd.www/wp-content/plugins/custom-css-whole-site-and-per-post/h5ab-custom-styling.php', 236) (/customers/a/8/3/frederikvincx.com/httpd.www/wp-content/plugins/custom-css-whole-site-and-per-post/h5ab-custom-styling.php:236) at H5AB_Custom_Styling->add_custom_styling_single('') (/customers/a/8/3/frederikvincx.com/httpd.www/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters(null, array('')) (/customers/a/8/3/frederikvincx.com/httpd.www/wp-includes/class-wp-hook.php:348) at WP_Hook->do_action(array('')) (/customers/a/8/3/frederikvincx.com/httpd.www/wp-includes/plugin.php:517) at do_action('wp_head') (/customers/a/8/3/frederikvincx.com/httpd.www/wp-includes/general-template.php:3052) at wp_head() (/customers/a/8/3/frederikvincx.com/httpd.www/wp-content/themes/impactstudio/index.php:6) at include('/customers/a/8/3/frederikvincx.com/httpd.www/wp-content/themes/impactstudio/index.php') (/customers/a/8/3/frederikvincx.com/httpd.www/wp-includes/template-loader.php:106) at require_once('/customers/a/8/3/frederikvincx.com/httpd.www/wp-includes/template-loader.php') (/customers/a/8/3/frederikvincx.com/httpd.www/wp-blog-header.php:19) at require('/customers/a/8/3/frederikvincx.com/httpd.www/wp-blog-header.php') (/customers/a/8/3/frederikvincx.com/httpd.www/index.php:17) |