Log in

View Full Version : Help: Parse error: syntax error when try to befriend


Classico
09-14-2008, 12:46 AM
Hi,

When someonte tries to befriend to anotheruser i got this error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /*****/forum/profile.php(722) : eval()'d code on line 3

I have disable all the plug and still the same problem.

I?m running 3.7.3 and my 722 line is:



eval(fetch_email_phrases('friendship_request_email ', $touserinfo['languageid']));
require_once(DIR . '/includes/class_bbcode_alt.php');
$plaintext_parser =& new vB_BbCodeParser_PlainText($vbulletin, fetch_tag_list());
$plaintext_parser->set_parsing_language($touserinfo['languageid']);
$message = $plaintext_parser->parse($message, 'privatemessage');
vbmail($touserinfo['email'], $subject, $message);



I think it is custom code from some plugin in but i can?t identify it...

Can anyone please help me?

Thanks!!!!!!!!!!!!

Max Kwiatkowski
09-14-2008, 07:16 AM
This error is from a plugin you've installed. You should to disable each of your plugins then turn them on one-by-one until you do get the problem.

Classico
09-14-2008, 09:42 AM
Hi,

Thanks for your help.

I have disable all the plugin and still have the problem...

I don?t know from what plug in is... :(

Opserty
09-14-2008, 02:15 PM
Try reuploading all PHP vBulletin files.

Are you using a custom language?

Classico
09-14-2008, 02:26 PM
Hi,

I just do it yesterday when i upgrade to 3.7.3.

I?m using a custom language but when i use the standart english i still have the same error.... :(

Perhaps some translation...

Opserty
09-14-2008, 02:29 PM
What language does the person you are trying to send it to, use? (Test it by trying to befriend someone who is using English language)

Classico
09-14-2008, 02:44 PM
Just try it... an still having the problem...

If i just could understand from what plug in it comes i woul uninstall it...

Opserty
09-14-2008, 02:59 PM
I don't think its a plugin, "Phrases" means it is from a language probably.

Classico
09-14-2008, 06:30 PM
Maybe...

I only get this error when the request friendship is sent to the other user. Otherwise it works fine.

The sistem works fine and the befriend works, but it gives the erros for 2/3 seconds.

--------------- Added 1221421900 at 1221421900 ---------------

I don't think its a plugin, "Phrases" means it is from a language probably.

You are right!!!! :up:

I just uninstall the custom language and it works fine with no errors.

The error is in sending the friendship email!:confused:

--------------- Added 1221426914 at 1221426914 ---------------

Solved. :)

The translation of the language in the befriend email misses an " ] " in the text of the email:

Dear $userinfo[username],

That was giving the parse error. Now works fine!!

Thanks for all the help!! :up::up: