![]() |
Parse error?
Every time I try to add a block to my sidebar using the php/html block option with code in it I get the following error:
Parse error: syntax error, unexpected '<' in /home/tcmasorg/public_html/forums/includes/block/html.php(95) : eval()'d code on line 1 Parse error: syntax error, unexpected '<' in /home/tcmasorg/public_html/forums/includes/block/html.php(95) : eval()'d code on line 1 On line 1 of the html.php I have this: <?php /*================================================= =====================*\ || ################################################## ################## || || # vBulletin 4.1.5 - Licence Number VBSCF44252 || # ---------------------------------------------------------------- # || || # Copyright ?2000-2011 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || ################################################## ################## || \*================================================ ======================*/ Any help what could be wrong? Thanks Michael |
It is actually line 95 of the html.php file you want to look at. It's going to be a hook or reference something else and it's line 1 of whatever it is referencing that is causing the issue.
What is the exact code you are adding to the block and the exact settings you have set in the configuration for the block. Please use code tags for the code. |
This is the code from the html.php. I have put the code from line 95 in BOLD:
Code:
public function getData() For example I am trying to use the code I found in style manager --> templates --> block templates --> new posts Code:
<li> |
You are adding some template code into your html block? You should just be adding the html you want in the block to the Content area. And if you add that code above that has all those variables in there, then you also need to add code to define the variables.
|
Thanks Lynne.
Obvious it is my wrong coding is causing the error and not the html.php itself |
All times are GMT. The time now is 01:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|