Log in

View Full Version : Parse error: syntax error


davit1979
09-11-2011, 11:16 PM
Hello,
I am getting a weird error when trying to access PMs. Started yesterday, I haven't repplaced any files or really haven't done anything new.


Parse error: syntax error, unexpected $end in /home/thespeed/public_html/private.php on line 2138

I included the private.php file in question and was wondering if anyone would be kind enough to tell me what to do.
I am rather new to php errors so not sure what to do.
Thank you in advance!


edit: private.php file removed. The file is copyrighted and you do not have permission to share it. Please see our Site Rules (https://vborg.vbsupport.ru/info.php?do=rules) regarding this.

HMBeaty
09-11-2011, 11:20 PM
You need to reupload private.php as the file is incomplete. While you're at it, you may want to reupload all default vBulletin files to be sure :)

Boofo
09-11-2011, 11:24 PM
You might want to remove that file from the first post.

PAKIDIL
09-12-2011, 12:16 AM
Hello,
I am getting a weird error when trying to access PMs. Started yesterday, I haven't repplaced any files or really haven't done anything new.


Parse error: syntax error, unexpected $end in /home/thespeed/public_html/private.php on line 2138

I included the private.php file in question and was wondering if anyone would be kind enough to tell me what to do.
I am rather new to php errors so not sure what to do.
Thank you in advance!

re upload the file with ASCII mode .

davit1979
09-12-2011, 01:36 AM
You need to reupload private.php as the file is incomplete. While you're at it, you may want to reupload all default vBulletin files to be sure :)

re upload the file with ASCII mode .

Stupid question, do I just download the vbulletin version I have and then select private.php file and reupload it?
Should I just do a Vb4 upgrade from 3.8.7 I am on now??? Will that fix the issue?
Also how do I upload in ascII mode???

kh99
09-12-2011, 02:17 AM
Stupid question, do I just download the vbulletin version I have and then select private.php file and reupload it?


Yes, that should work.


Should I just do a Vb4 upgrade from 3.8.7 I am on now??? Will that fix the issue?

It should fix the issue, but I wouldn't do that unless you're sure you want to deal with upgrading. If you have any mods or custom styles it can take time and effort to convert them.


Also how do I upload in ascII mode???

Your ftp program should have a way to select the transfer mode. But I think normally they automatically select the correct mode.

Boofo
09-12-2011, 02:37 AM
If you are on a Unix server, you can upload in ASCII or Binary.

davit1979
09-12-2011, 04:02 AM
Yes, that should work.
It should fix the issue, but I wouldn't do that unless you're sure you want to deal with upgrading. If you have any mods or custom styles it can take time and effort to convert them.
Your ftp program should have a way to select the transfer mode. But I think normally they automatically select the correct mode.

Yeah... well did the upgrade, pm issues fixed, my vbulletin skin and vbadvanced doesn't work, such a freakin headache. Should have stayed with 3.8.7, damned thing worked just fine.

If you are on a Unix server, you can upload in ASCII or Binary.

Got it thank you!