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

Parse error on "<" sign.

Development and Programming

Jayson Ng's avatar
Jayson Ng
67 posts
15 years ago
Jayson Ng's avatar Jayson Ng

So I’m trying to create a module but right away I get into this problem.

Parse error: syntax error, unexpected '<' in /path/nsmee/system/expressionengine/libraries/Functions.php(639) : eval()'d code on line 16

the function that this error is referring to is a simple return function.

function form_container_close($container_tag = 'li')
    {
        //return $container = '</'. $container_tag . '>';
        return '<li>';
    }

the “return” line has been commented out for testing purposes but neither actually works. I get the same error. Why is EE getting this error on the “<” sign? This function is placed nicely on an activated module (which is basically a shell right now).

help!

       
Jayson Ng's avatar
Jayson Ng
67 posts
15 years ago
Jayson Ng's avatar Jayson Ng

anyone? nobody else having this same problem? is it a PHP thing? or an EE thing?

       
Jayson Ng's avatar
Jayson Ng
67 posts
15 years ago
Jayson Ng's avatar Jayson Ng

SOLVED: facepalm

it’s the result of not having quotes around the resulting returned tag. ugh.

       

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.