ErrorException {#3257 #severity: E_WARNING }
}
function jqlb_autoexpand_rel_wlightbox($content) {
if(get_option('jqlb_automate') == 1){
global $post;
$id = ($post->ID) ? $post->ID : -1;
$content = jqlb_do_regexp($content, $id); //legacy regex function when images don't have rel tags
$content = wplbtwo_do_regexp($content, $id);
}
return $content;
}
* @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;
}
}
function jqlb_autoexpand_rel_wlightbox($content) {
if(get_option('jqlb_automate') == 1){
global $post;
$id = ($post->ID) ? $post->ID : -1;
$content = jqlb_do_regexp($content, $id); //legacy regex function when images don't have rel tags
$content = wplbtwo_do_regexp($content, $id);
}
return $content;
}
// 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 ] ) );
}
// Pass the value to WP_Hook.
array_unshift( $args, $value );
$filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
foreach ($myposts as $mypost):
$testimonial = array();
$testimonial['title'] = $mypost->post_title;
$testimonial['content'] = wp_trim_words(apply_filters( 'the_content', get_the_content(null, false, $mypost->ID) ), 30, '...');
if(!$testimonial['image'] = get_the_post_thumbnail_url( $mypost->ID, $size = 'tso-inventory' )) {
$testimonial['image'] = null;
$testimonial['content'] = wp_trim_words(apply_filters( 'the_content', get_the_content(null, false, $mypost->ID) ), 80, '...');
*/
public function with()
{
return [
'siteName' => $this->siteName(),
'testimonials' => $this->testimonials(),
];
}
/**
* Returns the site name.
* @return array
*/
protected function merge()
{
return array_merge(
$this->with(),
$this->view->getData(),
$this->override()
);
}
public function compose(View $view)
{
$this->view = $view;
$this->data = new Fluent($view->getData());
$view->with($this->merge());
}
/**
* Data to be merged and passed to the view before rendering.
*
// Once we have the class and method name, we can build the Closure to resolve
// the instance out of the IoC container and call the method on it with the
// given arguments that are passed to the Closure as the composer's data.
return function () use ($class, $method) {
return $this->container->make($class)->{$method}(...func_get_args());
};
}
/**
* Parse a class based composer name.
*/
protected function addEventListener($name, $callback)
{
if (str_contains($name, '*')) {
$callback = function ($name, array $data) use ($callback) {
return $callback($data[0]);
};
}
$this->events->listen($name, $callback);
}
return $this->createClassListener($listener, $wildcard);
}
return function ($event, $payload) use ($listener, $wildcard) {
if ($wildcard) {
return $listener($event, $payload);
}
return $listener(...array_values($payload));
};
}
}
$responses = [];
foreach ($this->getListeners($event) as $listener) {
$response = $listener($event, $payload);
// If a response is returned from the listener and event halting is enabled
// we will just return this response, and not call the rest of the event
// listeners. Otherwise we will add the response on the response list.
if ($halt && ! is_null($response)) {
* @param \Illuminate\Contracts\View\View $view
* @return void
*/
public function callComposer(ViewContract $view)
{
$this->events->dispatch('composing: '.$view->name(), [$view]);
}
/**
* Call the creator for a given view.
*
// We will keep track of the number of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each section gets flushed out next time a view is created and
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action('get_header'); ?>
<div id="app">
<?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
</div>
<?php do_action('get_footer'); ?>
<?php wp_footer(); ?>
</body>
*
* @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 /var/www/tsomemphis.com/html/wp-content/plugins/wp-lightbox-2/wp-lightbox-2.php:155 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:49) at Roots\Acorn\Bootstrap\HandleExceptions->handleError() (/var/www/tsomemphis.com/html/wp-content/plugins/wp-lightbox-2/wp-lightbox-2.php:155) at jqlb_autoexpand_rel_wlightbox() (/var/www/tsomemphis.com/html/wp-includes/class-wp-hook.php:324) at WP_Hook->apply_filters() (/var/www/tsomemphis.com/html/wp-includes/plugin.php:205) at apply_filters() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/app/View/Composers/App.php:67) at App\View\Composers\App->testimonials() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/app/View/Composers/App.php:27) at App\View\Composers\App->with() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:70) at Roots\Acorn\View\Composer->merge() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:59) at Roots\Acorn\View\Composer->compose() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/vendor/illuminate/view/Concerns/ManagesEvents.php:124) at Illuminate\View\Factory->Illuminate\View\Concerns\{closure}() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/vendor/illuminate/view/Concerns/ManagesEvents.php:162) at Illuminate\View\Factory->Illuminate\View\Concerns\{closure}() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/vendor/illuminate/events/Dispatcher.php:418) at Illuminate\Events\Dispatcher->Illuminate\Events\{closure}() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/vendor/illuminate/events/Dispatcher.php:249) at Illuminate\Events\Dispatcher->dispatch() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/vendor/illuminate/view/Concerns/ManagesEvents.php:177) at Illuminate\View\Factory->callComposer() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/vendor/illuminate/view/View.php:176) at Illuminate\View\View->renderContents() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/vendor/illuminate/view/View.php:147) at Illuminate\View\View->render() (/var/www/tsomemphis.com/html/wp-content/themes/tsom/index.php:19) at include('/var/www/tsomemphis.com/html/wp-content/themes/tsom/index.php') (/var/www/tsomemphis.com/html/wp-includes/template-loader.php:106) at require_once('/var/www/tsomemphis.com/html/wp-includes/template-loader.php') (/var/www/tsomemphis.com/html/wp-blog-header.php:19) at require('/var/www/tsomemphis.com/html/wp-blog-header.php') (/var/www/tsomemphis.com/html/index.php:17) |