Hi there,

Love the theme but I am having a problem... I have a php snippet that throws an error on one of my blocks on this theme.

Here's the error:
Parse error: syntax error, unexpected '>' in /.../includes/common.inc(1695) : eval()'d code on line 1

Here's the original code:

<?php
global $user;
profile_load_profile($user);
print l("My Statement", $user->profile_url);
?>

Anyone know how to fix this? Like I said, the code works fine on other themes.

Thanks!

Comments

ktleow’s picture

I have tested your exact same code and placed into Content Top region, works perfectly fine.

Is your PHP Filter module enabled?
Do you already have the profile field 'profile_url' ?

This can't be a theme related issue.

wildmtsky’s picture

Thanks for your thoughts but when I switch to garland or another theme it works... Yes, there is a profile field called 'profile_url'. Yes, the php filter is enabled. The input format is still set to php code....

This is so odd. I am going to try to make a new block or something.
Thanks

wildmtsky’s picture

Status: Active » Closed (fixed)

Nevermind, I created a block view instead. Works fine!

Thanks for your help