News & Updates
Find the latest news and updates at Snakes & Ladders here
Strike A Pose!
Strike A Pose! Join us for our Strike A Pose Photoshoot Event taking place on Wednesday 28th August at our Snakes and Ladders, Brentford play centre! It’s time for Snakes
5 Reasons Why Soft Play is Great for Children’s Development
5 Reasons Why Soft Play is Great for Children’s Development The benefits of indoor play on child development are now well recognised. It provides children with a safe and secure
Why Soft Play is a Great Indoor Activity for Rainy Days
Why Soft Play is a Great Indoor Activity for Rainy Days Keeping children occupied and encouraging them to be active can be difficult, especially when the temptation of passive screen
How to Plan the Perfect Soft Play Birthday Party
How to Plan the Perfect Soft Play Birthday Party Planning a birthday party for your children can be exciting, but it can also seem overwhelming, even stressful. Some of the
Symfony Exception
Exception
TypeError
} else {
$paged = get_query_var('paged') ?: 1;
}
$content = paginate_links([
'base' => str_replace(999999999, '%#%', esc_url(get_pagenum_link(999999999))), // ugly hack to make pagination work when query string is present, eg search
'format' => '?paged=%#%',
'current' => max(1, $paged),
'total' => $max_num_pages ? $max_num_pages : $wp_query->max_num_pages,
'prev_text' => 'Previous',
'next_text' => 'Next',
} else {
$paged = get_query_var('paged') ?: 1;
}
$content = paginate_links([
'base' => str_replace(999999999, '%#%', esc_url(get_pagenum_link(999999999))), // ugly hack to make pagination work when query string is present, eg search
'format' => '?paged=%#%',
'current' => max(1, $paged),
'total' => $max_num_pages ? $max_num_pages : $wp_query->max_num_pages,
'prev_text' => 'Previous',
'next_text' => 'Next',
}
} else {
echo '<p>no posts</p>';
}
echo pagination();
enqueue_element_style('news.php');
?>
</div>
*
* @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';
}
<?php
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
Stack Trace
TypeError
|
---|
TypeError: str_replace(): Argument #1 ($search) must be of type array|string, int given at /srv/www/snakes-and-ladders.co.uk/public/releases/6/public/themes/default/functions.php:65 at str_replace() (/srv/www/snakes-and-ladders.co.uk/public/releases/6/public/themes/default/functions.php:65) at pagination() (/srv/www/snakes-and-ladders.co.uk/public/releases/6/public/themes/default/home.php:44) at include('/srv/www/snakes-and-ladders.co.uk/public/releases/6/public/themes/default/home.php') (/srv/www/snakes-and-ladders.co.uk/public/releases/6/public/wp/wp-includes/template-loader.php:106) at require_once('/srv/www/snakes-and-ladders.co.uk/public/releases/6/public/wp/wp-includes/template-loader.php') (/srv/www/snakes-and-ladders.co.uk/public/releases/6/public/wp/wp-blog-header.php:19) at require('/srv/www/snakes-and-ladders.co.uk/public/releases/6/public/wp/wp-blog-header.php') (/srv/www/snakes-and-ladders.co.uk/public/releases/6/public/index.php:5) |