MyBB Community Forums

Full Version: Parse error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Am getting this error with all users except the original Administrator:

"Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /var/sites/s/surreyfoster.familysupport.group/public_html/inc/functions_post.php(873) : eval()'d code on line 6"

To reproduce: 

o https://surreyfoster.familysupport.group/index.php
o User name: Pretend User
o Password: PUser1234


Select Forum and a thread. 

Many thanks for any help !

Regards,


Stuart
I logged in and took a look. It seems that the problem was that your Variant theme's postbit_classic template was using a template conditional but no plugin was installed to support template conditionals. I removed the conditional lines and it's now working OK.

In case you want more information (maybe to restore the conditional after restoring the plugin), the lines I changed (though I might not have gotten the whitespace right in the original) were from:

<if $thread['uid'] == $post['uid'] then>
<div class="badge"></div>
</if>

to simply:

<div class="badge"></div>

By the way, you have multiple copies of that Variant theme - I only checked and edited the template in the active copy.