Title: Shoreditch theme throws jetpack.php error on Multisite
Last modified: August 31, 2016

---

# Shoreditch theme throws jetpack.php error on Multisite

 *  Resolved [madebygift](https://wordpress.org/support/users/madebygift/)
 * (@madebygift)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/shoreditch-theme-throws-jetpackphp-error-on-multisite/)
 * Hi,
 * Forgive me if this is the wrong forum, but I couldn’t find a specific forum for
   the new WordPress theme (on wordpress.com only at the moment).
 * I’ve installed the theme on WordPress multisite, but it throws this error when
   I enable the theme:
 * mywebsite.com/html/wp-content/themes/shoreditch-wpcom/inc/jetpack.php on line
   129
 * Any idea on what might me causing this? I have Jetpack installed on WPMU and 
   no issues with the default 2016 theme.
 * Thanks!

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

 *  [Chris Aldrich](https://wordpress.org/support/users/chrisaldrich/)
 * (@chrisaldrich)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/shoreditch-theme-throws-jetpackphp-error-on-multisite/#post-7333128)
 * When attempting to either activate or preview the new [Shoreditch theme](https://theme.wordpress.com/themes/shoreditch/)(
   technically shoreditch-wpcom) on a self-hosted install I also get the following
   error:
 * Fatal error: Can’t use function return value in write context in /home/wp-content/
   themes/shoreditch-wpcom/inc/jetpack.php on line 129
 * This happens regardless of whether Jetpack is activated or not.
 * Activating the theme required digging into mySQL settings and rolling back the
   theme manually to recover the site.
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/shoreditch-theme-throws-jetpackphp-error-on-multisite/#post-7333129)
 * Hi there – sorry about this. We’re looking into the problem and will keep you
   posted here.
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/shoreditch-theme-throws-jetpackphp-error-on-multisite/#post-7333130)
 * Are you both running a version of PHP older than 5.5, by any chance? We were 
   able to replicate this error on a server running PHP 5.4.4.
 * You could try changing line 129 of `/inc/jetpack.php` from this:
 * `if ( is_home() && ! is_paged() && ! empty( shoreditch_get_featured_posts() )){`
 * to this:
 *     ```
       if ( is_home() && ! is_paged() && false !== shoreditch_get_featured_posts() ) {
       ```
   
 * This should hopefully take care of the error — which comes from a change in the
   behaviour of the `empty` function ([reference](http://php.net/manual/en/function.empty.php))
   and allow you to preview or activate Shoreditch normally.
 * We will also regenerate a new version of the theme that you’ll soon be able to
   update from your Themes dashboard or [download on WordPress.com.](https://wordpress.com/themes/shoreditch/)
 * Thanks for bringing the error to our attention and apologies for the inconvenience.
 * > Forgive me if this is the wrong forum, but I couldn’t find a specific forum
   > for the new WordPress theme (on wordpress.com only at the moment).
 * No worries, this was the right place! We’ve submitted Shoreditch to the WordPress.
   org directory, but it’s still in the review queue. Once it’s accepted it’ll have
   its own support forum. In the meantime, if you need further help with the self-
   hosted version of Shoreditch, you can post in the WordPress.org general themes
   forum:
 * [https://wordpress.org/support/forum/themes-and-templates](https://wordpress.org/support/forum/themes-and-templates)
 * Tag your post with **wpcom-theme** in the tags area — as someone did on this 
   thread — to be sure it will get attention:
 * [⌊WordPress Support Themes and Templates⌉⌊WordPress Support Themes and Templates⌉[
 *  Thread Starter [madebygift](https://wordpress.org/support/users/madebygift/)
 * (@madebygift)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/shoreditch-theme-throws-jetpackphp-error-on-multisite/#post-7333131)
 * Hi Kathryn,
 * Great spot! I’ve updated my version of PHP from 5.3.29 to 5.5.31 and the issue
   has gone away.
 * I’ve gone for that method as opposed to the code change, but thank you for investigating.
 * Kindest regards,
 * D.
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/shoreditch-theme-throws-jetpackphp-error-on-multisite/#post-7333132)
 * Glad you were able to update your version of PHP to solve the issue that way.
   Thanks for letting me know!
 *  [Chris Aldrich](https://wordpress.org/support/users/chrisaldrich/)
 * (@chrisaldrich)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/shoreditch-theme-throws-jetpackphp-error-on-multisite/#post-7333133)
 * Thanks as always Kathryn.
 * I ran a couple of trials. I’ll confirm that running php 5.4 and the included 
   code snippet does solve the problem. Alternately running the original code at
   php 5.5 or above solves the problem separately.
 * Can’t wait to test out Shoreditch!!
 * (Not sure how my install was configured with 5.4 as _everything else_ I have 
   on my server is running 5.6 by default. I almost feel like the idiot who forgot
   to plug in the machine before saying that it wouldn’t turn on. Thanks again!)
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/shoreditch-theme-throws-jetpackphp-error-on-multisite/#post-7333134)
 * chrisaldrich – thanks for those confirmations and hope you enjoy Shoreditch!
 * > (Not sure how my install was configured with 5.4 as everything else I have 
   > on my server is running 5.6 by default. I almost feel like the idiot who forgot
   > to plug in the machine before saying that it wouldn’t turn on. Thanks again!)
 * Ha – it happens! Glad you’re all set now.

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

The topic ‘Shoreditch theme throws jetpack.php error on Multisite’ is closed to 
new replies.

## Tags

 * [Jetpack.php](https://wordpress.org/support/topic-tag/jetpack-php/)
 * [wpcom-theme](https://wordpress.org/support/topic-tag/wpcom-theme/)

 * 7 replies
 * 3 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/shoreditch-theme-throws-jetpackphp-error-on-multisite/#post-7333134)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
