My error file is really large. The most writing error is this:
PHP Parse error: syntax error, unexpected end of file in /home/psn/public_html/templates/base/scripts/BxBaseFunctions.php(131) : eval()'d code on line 3
When I look at line 3 it is:
/**
Here is the rest few lines of code.:
<?php
/**
* Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
* CC-BY License - http://creativecommons.org/licenses/by/3.0/
*/
bx_import('BxDolPermalinks');
bx_import('BxTemplFormView');
bx_import('BxDolUserStatusView');
bx_import('BxDolModule');
class BxBaseFunctions
Just does not make sense to me. Any help would be great.
Using 7.1.4
|
Is this a new clean install or have you had it up for a while with some core changes to files ? https://dolphin-techs.com - Skype: Dolphin Techs |
Hey Jay.. Thank you for your reply. It is a fresh install.. New site but lots of mods from Modzzz, Deano, rays, ilbellodelweb, and Andrew.. not really any file edits but the ones for the mods. The other error there is from ilbellodelweb.. Will attach the whole error file here. |
The error is not in the file itself. You have some "eval"ed code which is bugged. You need to find it first.
So first, anything you don't see working and/or throws errors? Try disabling member menu first and see if the error disappears.
so much to do.... |
My error file is really large. The most writing error is this:
PHP Parse error: syntax error, unexpected end of file in /home/psn/public_html/templates/base/scripts/BxBaseFunctions.php(131) : eval()'d code on line 3
When I look at line 3 it is:
/**
Here is the rest few lines of code.:
<?php
/**
* Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
* CC-BY License - http://creativecommons.org/licenses/by/3.0/
*/
bx_import('BxDolPermalinks');
bx_import('BxTemplFormView');
bx_import('BxDolUserStatusView');
bx_import('BxDolModule');
class BxBaseFunctions
Just does not make sense to me. Any help would be great.
Using 7.1.4
Your looking at line 3, but from what file? BxBaseFunctions.php? That would be incorrect.
The error is saying there is a error on line 3 of some evaled code. Eval means it's code that was piped through the php eval function which in turn means it is most likley a php block that the error is in. But could be php code dolphin pulled from one of the many eval database fields.
BxBaseFunctions.php(131) indicates the error was discovered at line 131 in BxBaseFunctions.php but does not mean that is what caused the error, just that the error was detected there.
So looking at that line we have this.
$sTransformText = str_replace( '{' . $sMarkerValue . '}', eval( $sExecuteCode ), $sTransformText);
So there is a eval function there. And it's trying to eval whatever is in the string $sExecuteCode. Next step is to figure out what is getting loaded into that string and from where. Thats the hard part. We now know it's not a php block as php blocks are handled differently.
The function the eval is in is MarkerReplace and that function is called from several other functions in BxBaseFunctions.php
Based on those functions the best i can narrow things down to is it appears to be a error in line 3 of one of the eval functions defined for one of the actions. So the issue is with a action button somewhere.
Finding out which one will be the hard part.
https://www.deanbassett.com |
The error is not in the file itself. You have some "eval"ed code which is bugged. You need to find it first.
So first, anything you don't see working and/or throws errors? Try disabling member menu first and see if the error disappears.
Hmm, your post was not there when i started writing my response. And your post was 18 minutes before mine. I can't believe it took me that long to write that up.
https://www.deanbassett.com |
Wonder if it is Modzzz Action Manager? I changed all my icons with that but sometimes it did not work.. |
How would I go about disabling member menu? |
Wonder if it is Modzzz Action Manager? I changed all my icons with that but sometimes it did not work..
It could be but you have to narrow it down to a page where this happens then look into the code for all those buttons on that page for bugged php code.
so much to do.... |
Will give it a shot.. Thank you for your help.. |
One thing I do when tracking down errors to is to pipe the variables out to the screen so I can see what they are and then kill the application with die() so that they don't disappear on me. Of course I do this on a clone so the production site is not disabled. You can also write things out to a text file which can be done on a production site.
If it is an action button, you could use Modzzz action manager to move the action to the inactive area to see if the error goes away; tedious but once the action is inactive and the error goes away you have found the action that is causing the problem.
Geeks, making the world a better place |
Well I think it is on profile page.. Guess that is a start.. Now try what GG said and start taking away actions one at a time and see if I can Find it.. |
Ok if I remove the Action Block from profiles. I can refresh the profile and get no errors. So it is the action block on the profiles.. If I use Modzzz Action Manager and archive the blocks. They stay on the profiles and still get errors? I am lost on finding it.. |
Ok if I remove the Action Block from profiles. I can refresh the profile and get no errors. So it is the action block on the profiles.. If I use Modzzz Action Manager and archive the blocks. They stay on the profiles and still get errors? I am lost on finding it..
send me admin login and i will check the buttons in action managers.
so much to do.... |
Ok if I remove the Action Block from profiles. I can refresh the profile and get no errors. So it is the action block on the profiles.. If I use Modzzz Action Manager and archive the blocks. They stay on the profiles and still get errors? I am lost on finding it..
So archiving an action simply removes the button but does not inactivate the action; thus you still get the error. I would accept Prashank25's offer to look at the actual actions code.
Geeks, making the world a better place |
Sorry just got off work and sent you the info.. Thanks a lot for your help.. |
Should be fixed now. You block profile button was missing a ";" at the end  so much to do.... |
Wow.. It was that easy? Guess I need to learn database.. Thank you so much.. |
Nah i used some simple debugging code to locate the error then fixed it. You're welcome and your site pages looks messed up. so much to do.... |
What do you mean? Messed up |
nvm, it was my browser cache i guess. so much to do.... |
Oh ok.. Scared me there for a min.. Thought I had more errors.. I most likely do for a new site but hope everything least looks ok while I work out bugs I do find.. Thank you again for all your help.. |