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

str_replace(): Argument #1 ($search) must be of type array|string, int given (500 Internal Server Error)

Symfony Exception

str_replace(): Argument #1 ($search) must be of type array|string, int given

Exception

TypeError

  1. } else {
  2. $paged = get_query_var('paged') ?: 1;
  3. }
  4. $content = paginate_links([
  5. 'base' => str_replace(999999999, '%#%', esc_url(get_pagenum_link(999999999))), // ugly hack to make pagination work when query string is present, eg search
  6. 'format' => '?paged=%#%',
  7. 'current' => max(1, $paged),
  8. 'total' => $max_num_pages ? $max_num_pages : $wp_query->max_num_pages,
  9. 'prev_text' => 'Previous',
  10. 'next_text' => 'Next',
  1. } else {
  2. $paged = get_query_var('paged') ?: 1;
  3. }
  4. $content = paginate_links([
  5. 'base' => str_replace(999999999, '%#%', esc_url(get_pagenum_link(999999999))), // ugly hack to make pagination work when query string is present, eg search
  6. 'format' => '?paged=%#%',
  7. 'current' => max(1, $paged),
  8. 'total' => $max_num_pages ? $max_num_pages : $wp_query->max_num_pages,
  9. 'prev_text' => 'Previous',
  10. 'next_text' => 'Next',
  1. }
  2. } else {
  3. echo '<p>no posts</p>';
  4. }
  5. echo pagination();
  6. enqueue_element_style('news.php');
  7. ?>
  8. </div>
include('/srv/www/snakes-and-ladders.co.uk/public/releases/6/public/themes/default/home.php') in /srv/www/snakes-and-ladders.co.uk/public/releases/6/public/wp/wp-includes/template-loader.php (line 106)
  1. *
  2. * @param string $template The path of the template to include.
  3. */
  4. $template = apply_filters( 'template_include', $template );
  5. if ( $template ) {
  6. include $template;
  7. } elseif ( current_user_can( 'switch_themes' ) ) {
  8. $theme = wp_get_theme();
  9. if ( $theme->errors() ) {
  10. wp_die( $theme->errors() );
  11. }
require_once('/srv/www/snakes-and-ladders.co.uk/public/releases/6/public/wp/wp-includes/template-loader.php') in /srv/www/snakes-and-ladders.co.uk/public/releases/6/public/wp/wp-blog-header.php (line 19)
  1. // Set up the WordPress query.
  2. wp();
  3. // Load the theme template.
  4. require_once ABSPATH . WPINC . '/template-loader.php';
  5. }
require('/srv/www/snakes-and-ladders.co.uk/public/releases/6/public/wp/wp-blog-header.php') in /srv/www/snakes-and-ladders.co.uk/public/releases/6/public/index.php (line 5)
  1. <?php
  2. define('WP_USE_THEMES', true);
  3. 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)