Hi all,
I use the original MemberCheck Snippet from 0.9.1 and I get this parse error:
----8<-----snip------
Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ’}’ in /Users/Uwe/projekte/www.ibaw.org/manager/includes/document.parser.class.inc.php(691) : eval()’d code on line 65
---------snap--8<----
Snippetcall: [[MemberCheck? &groups=`Mitglieder` &chunk=`MemberNavTitel`]]
The chunk exists, Webusergroup exists, Webuserlogin works like a charm... But this snippet missed somewhat on line 65 - but what?
My environment: FF 1.5, MacOS X (Tiger), XAMPP Mac 0.5 (www.apachefriends.org)
Can someone help ? Sorry for the german english.
-
MODX Staff
- 12,272 Posts
What does the MemberNavTitel chunk look like?
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
MODX Staff
- 12,272 Posts
And the page renders fine without the snippet on there, right? If so, what’s on lines 65 (and a couple leading up to it I suppose, too)?
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
Could it be an issue with the version of PHP you are using?
-
MODX Staff
- 10,725 Posts
Ooops. Try it after changing the keyword static to just var and let me know if that works in PHP4. It should still work once static is changed to var, as that is indeed a PHP 5 only language feature, but that’s the only one I see off hand.