Log in

View Full Version : Functions_Showthread Error


DannyBoy8406
01-12-2005, 07:09 PM
Ok, I'm having an error in my functions_showthread file that I cannot figure out. I have installed some hacks, but this file has not been touched. I have tried unzipping and reuploading a fresh copy and that still did not fix the errors I'm getting. The two errors I'm getting refer to the same line in the file.... I don't know what it wrong as there isn't anything on the line excet a "}" Everything else on the board is working fine and the erros only show up when I try to view a thread.... No posts are showing up in the threads at all. I'm attaching a copy of the functions_showthread I'm using and here are the two errors I'm receiving:


Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/screeng/public_html/includes/functions_showthread.php(640) : eval()'d code on line 38

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/screeng/public_html/includes/functions_showthread.php(640) : eval()'d code on line 38

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/screeng/public_html/includes/functions_showthread.php(640) : eval()'d code on line 38

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/screeng/public_html/includes/functions_showthread.php(640) : eval()'d code on line 38



Unable to add cookies, header already sent.
File: /home/screeng/public_html/includes/functions_showthread.php(640) : eval()'d code
Line: 38

rake
01-12-2005, 07:19 PM
Remove the file you have attached. You are NOT allowed to attach entire vBulletin files, and you have also made your LICENCE NUMBER publically viewable, since it's in the header of that file.

If it's a fresh copy, it won't do you any good anyway. The error comes from somewhere else, probably showthread.php.

DannyBoy8406
01-12-2005, 08:52 PM
Remove the file you have attached. You are NOT allowed to attach entire vBulletin files, and you have also made your LICENCE NUMBER publically viewable, since it's in the header of that file.

If it's a fresh copy, it won't do you any good anyway. The error comes from somewhere else, probably showthread.php.
Ok, my bad.... anywyas that still did not fix it... I had no idea what to do so I did a total reinstall of my VB (I was just setting it up anyways....) and the error is still there! this is very frustration... what culd be wrong!?

Marco van Herwaarden
01-12-2005, 08:59 PM
You have been changing any templates?

rake
01-13-2005, 06:18 AM
this is the piece of code that's causing the errors:

eval('$retval = "' . fetch_template($maintemplatename) . '";');

and it's in the construct_postbit function. Revert your postbit templates.