PDA

View Full Version : Problem on my forums, won't load


CrazyG
08-03-2011, 03:35 PM
To start off, I was receiving an error when logging in, you could click home forums etc. and it would go to it. The error was: phrase 'invalid_redirect_url_x'.

I read to delete this from the function and reupload it. : if (!$foundurl)
{
eval(standard_error(fetch_error('invalid_redirect_ url_x', $vbulletin->url)));
}

Now, my site is not working at all, gives this error: Parse error: syntax error, unexpected $end in /home/****/public_html/includes/functions.php on line 7709

I've got the command line, but where does it go so I can get my site back up. That's the only line I deleted. I guess I could go section by section that are separated by ********* and try, but figure someone may know exactly where it needs to be inserted.. Need the site back up, anyone help will be appreciated.

I do not know where the original file is, as I overwrote it in the includes folder.
Edit, this is on VB4.1.4

kh99
08-03-2011, 03:46 PM
I'm not quite sure what you're asking - you want to put back what you took out? Probably the bext thing would be to get the original file includes/functions.php and upload it (unless you have doen other modifications you need to keep).

BTW I looked in that file and didn't find a line 7709 (in the version 4.1.4 source it only has 7660 lines).

CrazyG
08-03-2011, 03:58 PM
Well now it's saying line 1355.. I can't find the original. I was hoping someone searched the line, and copied a few lines before and after so I would know where it went back. When I took it out, page will not load, so wanted to replace what I removed.. Should have backed it up, but.. too late now. If you can search that line command, and list something it's posting in between I can find it.

nhawk
08-03-2011, 04:07 PM
He's got 4.1.4 PL2, that's why the discrepancy in file size.

I suggest downloading or unzipping the PL2 files again and re-uploading functions.php to your server.

CrazyG
08-03-2011, 04:22 PM
Thanks, figured I would, and it was also easier then finding it. I'll make sure I back up before I do any editing for now on..