Title: Fatal error: Can&#8217;t use function return value
Last modified: October 3, 2017

---

# Fatal error: Can’t use function return value

 *  [AA Media Studios](https://wordpress.org/support/users/saltashconstruction/)
 * (@saltashconstruction)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-5/)
 * Getting this error once i install the theme : Fatal error: Can’t use function
   return value in write context in /home4/awallace/public_html/andrewdalhouse.co.
   uk/wp-content/themes/oz/admin/public/class.WilokePublic.php on line 2078
 * Can anyone help?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-cant-use-function-return-value-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [danhgilmore](https://wordpress.org/support/users/danhgilmore/)
 * (@danhgilmore)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-5/#post-9551557)
 * Have you tried:
    -deactivating all plugins to see if this resolves the problem.
   If this works, re-activate the plugins one by one until you find the problematic
   plugin(s). -switching to the default theme to rule out any theme-specific problems.
 *  Thread Starter [AA Media Studios](https://wordpress.org/support/users/saltashconstruction/)
 * (@saltashconstruction)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-5/#post-9551581)
 * Yes i’ve done that with no successful result.It’s definitely something to do 
   with the theme as resorting to default themes brings up no issues.
    This is the
   line 2078 which the error highlights.Can anyone see any issues ?
 * if ( empty(wp_get_attachment_image_url($aBoxContent[‘bg’][‘id’]) ) {
 *  [danhgilmore](https://wordpress.org/support/users/danhgilmore/)
 * (@danhgilmore)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-5/#post-9551587)
 * Which theme are you using? What’s the URL from WordPress.org?
 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-5/#post-9551661)
 * Oz appears to be a commercial theme, so you need to contact your theme’s vendor
   for support as they will know how its built and how to troubleshoot the issue.

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

The topic ‘Fatal error: Can’t use function return value’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [cubecolour](https://wordpress.org/support/users/numeeja/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-5/#post-9551661)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
