Title: Error on random-redirect.php
Last modified: August 21, 2016

---

# Error on random-redirect.php

 *  Resolved [lukepet](https://wordpress.org/support/users/lukepet/)
 * (@lukepet)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-on-random-redirectphp/)
 * After updated plugin to 2.4 version I’ve this error message…
 * Fatal error: Cannot redeclare matt_random_redirect() in /home/mysite/public_html/
   wp-content/plugins/jetpack/modules/random-redirect.php on line 11
 * How can I fix?
 * [http://wordpress.org/plugins/jetpack/](http://wordpress.org/plugins/jetpack/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [sonofbruce](https://wordpress.org/support/users/sonofbruce/)
 * (@sonofbruce)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083133)
 * I’ve run into this too. It conflicts with the Random Redirect 2 plugin. Disabling
   that plugin made the error go away.
 *  [sonofbruce](https://wordpress.org/support/users/sonofbruce/)
 * (@sonofbruce)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083135)
 * Jetpack appears to have duplicated the (very simple) functionality of the Random
   Redirect and Random Redirect 2 plugins, because I find that the “random post”
   links that I had put in the navigation menus of three different blogs all still
   work, with only Jetpack 2.4 enabled.
 *  Thread Starter [lukepet](https://wordpress.org/support/users/lukepet/)
 * (@lukepet)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083168)
 * I solve, thanks! …I’ve removed “Random Redirect 2” plugin 😉
 *  [bfootdav](https://wordpress.org/support/users/bfootdav/)
 * (@bfootdav)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083295)
 * I came up with a fix for the Random Redirect 2 plugin. You’ll need to edit the
   plugin itself which is only one file: random-redirect.php. Look for the two instances
   of `matt_random_redirect` and change it to a different name. I changed mine to`
   matt_randomy_redirect` (with the “y” at the end of random). This solves the conflict
   with Jetpack and appears to be working just fine on my website.
 *  [sonofbruce](https://wordpress.org/support/users/sonofbruce/)
 * (@sonofbruce)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083296)
 * Brilliant. Thanks! I did have one site in which, for whatever reason, the latest
   version of Jetpack does _not_ take over the random button fucntion (but still
   conflicts).
 *  [sonofbruce](https://wordpress.org/support/users/sonofbruce/)
 * (@sonofbruce)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083300)
 * Jetpack 2.4.2 appears to fix this. From the Changelog:
 * > Bug Fix: Random Redirect: Add random-redirect to the plugins overriden list,
   > in case someone is using Matt’s Random Redirect plugin.
 *  [davepoobond](https://wordpress.org/support/users/davepoobond/)
 * (@davepoobond)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083333)
 * thank you bfoot. looks like the jetpack version of the random redirect only allows
   for “random page” and not all of the other modifiers this one (and even Matt’s
   original version) provides.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 7 months ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083334)
 * > Looks like the jetpack version of the random redirect only allows for “random
   > page” and not all of the other modifiers this one (and even Matt’s original
   > version) provides.
 * In the next Jetpack release, we’ll consider adding `random_cat_id` and `random_post_type`
   to Jetpack’s Random Redirect module. You can follow our progress here:
    [http://plugins.trac.wordpress.org/ticket/2008](http://plugins.trac.wordpress.org/ticket/2008)
 *  [BeachBlissLiving](https://wordpress.org/support/users/beachblissliving/)
 * (@beachblissliving)
 * [12 years ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083359)
 * I got the blank white page too and this error:
    wp-admin/includes/plugin.php):
   failed to open stream: No such file or directory in xxx/wp-content/plugins/jetpack/
   modules/theme-tools/random-redirect.php on line 14
 * I deactivate jetpack and site is up again. How can I get it back and going? I
   tried the rename suggestion but it didn’t work. Can you help? Thanks!
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083360)
 * Could you try to reinstall Jetpack scratch, by deleting the Jetpack plugin and
   reinstalling it?
 * Thanks!
 *  [BeachBlissLiving](https://wordpress.org/support/users/beachblissliving/)
 * (@beachblissliving)
 * [12 years ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083361)
 * Thanks Jeremy! If I reinstall from scratch, what will happen to the email addresses
   from people who subscribed to posts notification via email? Where are the email
   addresses stored?
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083362)
 * The emails are stored on WordPress.com, and they’ll be back under your account
   as soon as you reconnect Jetpack to your WordPress.com account. No worries there!

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Error on random-redirect.php’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 12 replies
 * 6 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/error-on-random-redirectphp/#post-4083362)
 * Status: resolved