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
HelloI 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 1but only in the default template
|
at this line i have the evaluation : eval($aInjection['data']); |
have some one a ideal or wahts me this error? |
eval is a php function dolphin uses to process PHP blocks. https://www.deanbassett.com |
eval is a php function dolphin uses to process PHP blocks. Hi remove all PHP block in the inactive area but the same error down on the page after the footer. |
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 |
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;
Have some one a other suggestion?? |
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 |
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; } |
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 |
Thank a lot for your support DosDawg.
Attachment you will find the PHP Files
|
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 |
you may have a php block that starts with <?php caredesign.net |
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 |