View Full Version : Error in functions.php
BlueNinjaGo
06-06-2009, 01:55 PM
Parse error: syntax error, unexpected T_DIV_EQUAL in /forum/includes/functions.php on line 795
I haven't edited or messed with functions.php (ever) and I haven't installed/edited any modifications in weeks.
I made a small edit (to the super admin list) in config.php, but then I got this error in functions.php...
Anyone know what's causing it or how to fix it?
HMBeaty
06-06-2009, 02:30 PM
I would re-check the edit you made to your config.php file if this didn't start happening until you edited that file. You may be missing a tag or added an extra one. I ran something similar a couple years ago
Lynne
06-06-2009, 03:12 PM
What is on (and around) line 795 of your functions.php page?
BlueNinjaGo
06-06-2009, 03:28 PM
I changed the config file back as soon as i noticed the error... the problem is still there....
And what's the easiest way to find line 795? (besides hitting down 795 times)
HMBeaty
06-06-2009, 03:33 PM
Edit the file in Notepad
- Turn off word wrap
- Turn on status bar
Should show the line and column in the lower right corner
BlueNinjaGo
06-06-2009, 03:36 PM
Edit: This is the line 795
return preg_match('#^[a-z0-9.!?#$%&?'*+-/=?^_`{|}‾]+@([0-9.]+|([^?s?'"<>@,;]+?.+[a-z]{2,6}))$#si', $email);
Lynne
06-06-2009, 03:57 PM
Was your change in the config file regarding emails?
Do you get that error in regards to any particular user? I'd check their email since it seems the problem is in regards to an email.
BlueNinjaGo
06-06-2009, 03:59 PM
I only added a user ID to the super admin list in config file... and i changed it back to see if it'd resolve the errors...
I haven't edited any other files or installed/uninstalled/changed any other mods or anything in weeks
Lynne
06-06-2009, 04:08 PM
OK, but do you know if you are getting that error regarding a specific user or just any user?
BlueNinjaGo
06-06-2009, 04:09 PM
I'm getting the error when i go to my site at all... any url... every page...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.