BxDolTemplate.php error

Hello

I found  a error on my side but i dont know  waht  the error mine.

Parse error: syntax error, unexpected '<' in /home/homepages/apps/dolphin-7.0.1/inc/classes/BxDolTemplate.php(1669) : eval()'d code on line 1

but only  in the default template

 


Quote · 16 Apr 2011

at  this line i have the evaluation : eval($aInjection['data']);

Quote · 16 Apr 2011

have some one a ideal  or wahts me this error?

Quote · 20 Apr 2011

eval is a php function dolphin uses to process PHP blocks.

The error could be with any PHP block. But first you have to find out which one. And that will not be easy.

If this is only occuring on one page, then to track it down requires each block of type PHP be moved off the page into the inactive area one block at a time until the block causing the problem is found.

As i said, it will not be easy to find.

https://www.deanbassett.com
Quote · 20 Apr 2011

 

eval is a php function dolphin uses to process PHP blocks.

The error could be with any PHP block. But first you have to find out which one. And that will not be easy.

If this is only occuring on one page, then to track it down requires each block of type PHP be moved off the page into the inactive area one block at a time until the block causing the problem is found.

As i said, it will not be easy to find.

Hi   remove all  PHP block in the inactive area but the same error down on the page after the footer.

Quote · 20 Apr 2011

basically its saying you have an open tag, that is causing the problem on that file.

 

since this is only on the default template, then i would suggest trying the following:

 

1. download and install notepad++

2. download a default file BxDolTemplate.php

3. login to ftp using notepad++

4. load the default BxDolTemplate.php

5. using the plugin on notepad++ run the compare module

6. this should locate all differences in the two files and most specifically should point out the '<' that it is complaining about

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 20 Apr 2011

 

basically its saying you have an open tag, that is causing the problem on that file.

 

since this is only on the default template, then i would suggest trying the following:

 

1. download and install notepad++

2. download a default file BxDolTemplate.php

3. login to ftp using notepad++

4. load the default BxDolTemplate.php

5. using the plugin on notepad++ run the compare module

6. this should locate all differences in the two files and most specifically should point out the '<' that it is complaining about

Thanks for your  suggestion  DosDawg

but  the file are the same the only different is a small modification for the language_swich but this is not the problem i remove it.

case 'extra_js':

$sRet = empty($_page['extra_js']) ? '' : $_page['extra_js'];;

break;


and  after it
case 'langs_switcher':
$sRet = getLangSwitcher();
break;

 

Have some one a other suggestion??

Quote · 20 Apr 2011

well the error says you have an invalid character hanging out there '<', and its pointing to the file listed as being the culprit.

 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 21 Apr 2011

 

well the error says you have an invalid character hanging out there '<', and its pointing to the file listed as being the culprit.

 

This mine the error  can be in all  other file?

The the code information  is it possible to fine out in wish file i have the mistake?

My error is in this line $sInjData = eval($aInjection['data']);

 

in this  fragment of code

 

switch($aInjection['type']) {

case 'text':

$sInjData = $aInjection['data'];

break;

case 'php':

ob_start();

$sInjData = eval($aInjection['data']);

if(!empty($sInjData))

ob_end_clean();

else

$sInjData = ob_get_clean();

break;

}

if((int)$aInjection['replace'] == 1)

$sValue = $sInjData;

else

$sValue .= $sInjData;

 

if (isset($GLOBALS['bx_profiler'])) $GLOBALS['bx_profiler']->endInjection($sRand, $aInjection['name'], $aInjection['key'], (int)$aInjection['replace'] == 1);

 

}

 

return $sValue != '__' . $sKey . '__' ? str_replace('__' . $sKey . '__', '', $sValue) : $sValue;

}

Quote · 21 Apr 2011

add your BxDolTemplate.php file here so it can be examined. because you are pasting source that is just not jiving with what the error says.

 

on the php file there should be an opening and closing <> tag

 

it is saying that you have an extra one that shouldnt be there as best i can tell from the error. so post this file on here as an attachment, and i will look at it as i am sure others will.

 

strange thing is that you  mention its only on the custom template and not on your default UNI template. so its very possible that your custom template has some issues that are making it appear as though the error is coming from /inc/classes/BxDolTemplate.php

 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 21 Apr 2011

Thank a lot for your support DosDawg.

 

Attachment you  will find the PHP Files

 

BxDolTemplate.php · 68.4K · 505 downloads
Quote · 21 Apr 2011

I just upgraded my site to 7.1.3 and find the same type of error on ALL pages, all templates including UNI.

I opened the file in Notepad++ and did file compare with install files from Boonex, and still find nothing that would indicate a problem.

What was the resolution to this issue? Seems like the file was submitted, but no feedback.

Parse error: syntax error, unexpected '<' in /xxxxxx/xxxxxxx/xxxxxxxxx/inc/classes/BxDolTemplate.php(1754) : eval()'d code on line 1


Even Monkeys and Retards get it right with repitition! - Author Unknown
Quote · 23 Jan 2014

you may have a php block that starts with <?php

caredesign.net
Quote · 23 Jan 2014

If I have a PHP block which starts with <?php , then it should be only on a page with that block. It is happening universally, and within all modules.

So I have tested 5 different templates, and it exists in all of them. So something is triggering this error, and I have found no commonalities that make for an easy path to deciphering which block/file/template is doing this. It even happens within the UNI template.

Even Monkeys and Retards get it right with repitition! - Author Unknown
Quote · 15 Mar 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.