Title: Syntax Error from BoxLoader.php
Last modified: August 30, 2016

---

# Syntax Error from BoxLoader.php

 *  Resolved [nargonne](https://wordpress.org/support/users/nargonne/)
 * (@nargonne)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-from-boxloaderphp/)
 * Getting Internal Server Error 500. Also PHP error is
 * **Parse error: syntax error, unexpected ‘)’ in ../scroll-triggered-boxes/src/
   BoxLoader.php(124) : eval()’d code on line 1**
 * The code that is causing problems is:
 * `$matched = eval( "return (" . $value . ");" );`
 * Changing it to the following appears to work:
 * `$matched = eval( "return " . $value . ";" );`
 * I think the issue is that php `return` is not a function so the parenthesis are
   unnecessary.
 * [https://wordpress.org/plugins/scroll-triggered-boxes/](https://wordpress.org/plugins/scroll-triggered-boxes/)

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

 *  Plugin Author [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-from-boxloaderphp/#post-6559399)
 * Hello nargonne,
 * Can you please confirm if you are using the latest version of our plugin?
 *  Thread Starter [nargonne](https://wordpress.org/support/users/nargonne/)
 * (@nargonne)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-from-boxloaderphp/#post-6559400)
 * Hi,
 * Yes, version 2.1.1. I just now downloaded the plugin to check.
 * It’s in scroll-triggered-boxes/src/BoxLoader.php on line number 124
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-from-boxloaderphp/#post-6559401)
 * Hey Nargonne,
 * Can you please take a look at your box configuration and look at what the value
   of your “manual condition” field is?
 * Thanks!
 *  Thread Starter [nargonne](https://wordpress.org/support/users/nargonne/)
 * (@nargonne)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-from-boxloaderphp/#post-6559410)
 * Hi,
 * The “Manual condition” field is blank. There is a field but it has no value; 
   Only the placeholder text.
 * Interestingly now that I am looking at this I see the “manual condition” isn’t
   needed although a blank field is there awaiting input.
 * I clicked the X next to the field deleting it. Updated and reloaded the pages
   and the problem error is gone.
 * I don’t know if the field was always there or if someone may have thought to 
   add one and didn’t put in a value.
 * I’m guessing this is close to resolved. I think it is best if the plugin can 
   account for empty value here just to be sure.
 *  Plugin Author [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-from-boxloaderphp/#post-6559416)
 * Hello Nargonne,
 * I’m glad the issue is resolved and thank you for the suggestion. We will definitely
   consider it as it does make sense and would prevent accidental errors.
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-from-boxloaderphp/#post-6559473)
 * Hey Nargonne,
 * We pushed out an update of the plugin yesterday that takes empty values into 
   account – very nice find! Thank you!
 * PS: If you a have a few seconds, [a plugin review](https://wordpress.org/support/view/plugin-reviews/scroll-triggered-boxes#postform)
   would make us very happy!

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

The topic ‘Syntax Error from BoxLoader.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/scroll-triggered-boxes_a0af9c.svg)
 * [Scroll Triggered Boxes](https://wordpress.org/plugins/scroll-triggered-boxes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/scroll-triggered-boxes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/scroll-triggered-boxes/)
 * [Active Topics](https://wordpress.org/support/plugin/scroll-triggered-boxes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scroll-triggered-boxes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scroll-triggered-boxes/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-from-boxloaderphp/#post-6559473)
 * Status: resolved