Log in

View Full Version : Parse error: syntax error?


SpottySocks
10-18-2008, 02:47 PM
I was just trying to add a new profile field and when I clicked that section of the admin CP I got a white page saying this:

Parse error: syntax error, unexpected $end in /home/public_html/admincp/profilefield.php on line 978

I downloaded the file, it's a long file. 978 is the last line so here's the last few lines... if you need me to post the whole file let me know

// ###################### Start Add Checkbox #######################
if ($_POST['do'] == 'addcheckbox')
{
$vbulletin->input->clean_array_gpc('p', array(
'newfield' => TYPE_NOHTML,
'newfieldpos' => TYPE_UINT,
));

if (!empty($vbulletin->GPC['newfield']))
{
$boxdata = $db->query_first("
SELECT data

Any help appreciated! :)

Lynne
10-18-2008, 03:23 PM
Have you tried reuploading that page from a downloaded version of vbulletin? That error sometimes just means the file wasn't uploaded completely (unexpected $end).

SpottySocks
10-19-2008, 11:16 AM
Thank you, that worked. :)