Trantor Posted March 29, 2014 Share #1 Posted March 29, 2014 Andy, we get an error when we post a mesage: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ')' in /home/xpenol/public_html/forum/cache/queue.php on line 3 Can you do something to fix this ? Link to comment Share on other sites More sharing options...
d3dx9 Posted March 29, 2014 Share #2 Posted March 29, 2014 Same on private messages Link to comment Share on other sites More sharing options...
andywhit Posted March 30, 2014 Share #3 Posted March 30, 2014 The post still gets completed though so please don't hit the refresh button to retry. We're seeing lots of duplicate threads because of this. Link to comment Share on other sites More sharing options...
CtrlAltDel Posted March 30, 2014 Share #4 Posted March 30, 2014 Can you post a code snippet from the /home/xpenol/public_html/forum/cache/queue.php file a few lines before and after line three maybe enough to find an error? You could try looking for something like this while your in the code if you spot a similar error... The line may start with a $query... values $_REQUEST['VariableName']"; Change to something like this... values {$_REQUEST['VariableName']}"; EDIT: Your code will have a different value for 'VariableName'. You may find that a closing ')' is missing on the line so look for that also. Link to comment Share on other sites More sharing options...
andywhit Posted March 31, 2014 Share #5 Posted March 31, 2014 The files in the "cache" directory are precompiled PHP files, the main queue.php (text) file is probably in the forum/ directory and is the one which should be changed if required. If changed then the "Purge Cache" operation needs to be performed in the forum admin control panel (worth admin doing this anyway). I think the queue.php file is responsible for initiation of any EMail messages which the forum sends out. Perhaps someone's entered some new EMail server details in the control panel and the values are illegal/corrupt ? (unlikely) Link to comment Share on other sites More sharing options...
dark alex Posted March 31, 2014 Share #6 Posted March 31, 2014 Hi Trantor, in my option cache files should automagically regenerate. Try to delete the queue.php from that location but MAKE A BACKUP FIRST. Of course if there really is an error in original queue.php then ehis will not fix the problem. Did you update PhpBB or what did cause the problem? Link to comment Share on other sites More sharing options...
CtrlAltDel Posted March 31, 2014 Share #7 Posted March 31, 2014 The system is providing an error message which would seem to be the first step in finding a solution. Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ')' in /home/xpenol/public_html/forum/cache/queue.php on line 3 Parse error: Something in the code doesn't meet the rules of the parser. syntax error: Something isn't meeting the rules of the language. unexpected T_Encapsed..., expecting ')': The parser isn't seeing the ')' which is required to pass the check. Either it's missing or it's incorrectly escaped? in /.../queue.php on line 3: The file that has failed to be parsed and the line which contains the error. Wouldn't it make sense to take a look at that first and try to resolve the missing ')' or apply the required escape? If you suspect that the issue is associated with the email notification routine then you could establish that by disabling the notification system temporarily, to perform a test to prove that theory. Something has changed in the past week which has caused this error as it wasn't happening before. Which would suggest that a new script has been activated or an update applied which has broken something somewhere. Running a diff on the changed files against the backup may help discover the source of the error? Link to comment Share on other sites More sharing options...
Andy928 Posted April 1, 2014 Share #8 Posted April 1, 2014 Ok. I try to find problem! Link to comment Share on other sites More sharing options...
Andy928 Posted April 1, 2014 Share #9 Posted April 1, 2014 Fixed. Please check the problems. Link to comment Share on other sites More sharing options...
CtrlAltDel Posted April 1, 2014 Share #10 Posted April 1, 2014 Nice one thanks for sorting it out. EDIT: All good this end. Link to comment Share on other sites More sharing options...
CtrlAltDel Posted April 4, 2014 Share #11 Posted April 4, 2014 The error is back. Link to comment Share on other sites More sharing options...
Andy928 Posted April 5, 2014 Share #12 Posted April 5, 2014 Fixed. But I can not found main problem. On next week I will make forum upgrade. Maybe the error no longer return. Link to comment Share on other sites More sharing options...
Recommended Posts