Closed Sokotsuya closed 9 years ago
Sounds like the version of php is messing in and yours don't support anonymous functions.
Do you have PHP < 5.3.0?
Most probably. After checking, PHP Version 5.2.17 is what I get. Is there any way to fix this nevertheless? Thank you in advance.
Parse error: syntax error, unexpected T_FUNCTION in /home/a5951346/public_html/includes/opbe-master/implementations/Xgp/missionCaseAttack.php on line 49
Such line is
//---------------------------- errors ----------------------------------- //default handlers $errorHandler = array('DebugManager', 'myErrorHandler'); $exceptionHandler = array('DebugManager', 'save'); //then,hack them merging a new function to move back fleets. ------------> $myFunc = function () { global $debug; $debug->error('Check "opbe/errors/" folder for more informations. '.date('d-m-y__H-i-s'), 'Battle error'); } ; $errorHandler = DebugManager::intercept($errorHandler, $myFunc); $exceptionHandler = DebugManager::intercept($exceptionHandler, $myFunc);
Running XGP 2.10.8. Followed instructions on installation. Actually did find somebody with the same error, but on a french forum. (http://www.kommunauty.fr/forum/20848-parse-error-syntax-error-unexpected-t-function/)
It would be awesome of you if you told me how to fix this. Thanks in advance!