We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Error being generated by saef form Functions.php line 27

Development and Programming

Podzol's avatar
Podzol
80 posts
14 years ago
Podzol's avatar Podzol

Hello, I am using this code to pull up a category list in safecracker form. It works in one of my ee sites, but won’t in another.

<select name="category[]" id="categories" size="10" multiple="multiple">
    {categories group_id="2"}
        <option value="{category_id}"{selected}>{category_name}</option>
    {/categories}
</select>

I get the following error:

Parse error: syntax error, unexpected ‘=’ in /www/eh16605/public_html/system/expressionengine/libraries/Functions.php(656) : eval()’d code on line 27

Here’s that line in the Functions.php file.

var $seed = FALSE; // Whether we've seeded our rand() function.  We only seed once per script execution

The only structural difference between the working site and the one that doesn’t work is the one that doesn’t work uses subcategories.

Any idea why it is generating the error? Thanks!

EE 2.2.2 in the non working site, version 2.1.3 in the working site.

       
Podzol's avatar
Podzol
80 posts
14 years ago
Podzol's avatar Podzol

My apologies, I resolved this, there must have been a typo somewhere else in the code. It is working and this post can be deleted/closed.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
14 years ago
Mark Bowen's avatar Mark Bowen

Hi Podzol,

Glad you found the problem there. We don’t close development threads as such, preferring to leave them open in case they help someone else out in the future.

Thanks,

Mark

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.