vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help: Parse error: syntax error when try to befriend (https://vborg.vbsupport.ru/showthread.php?t=190858)

Classico 09-14-2008 12:46 AM

Help: Parse error: syntax error when try to befriend
 
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:

Code:


  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 [DATE]1221421900[/DATE] at [TIME]1221421900[/TIME] ---------------

Quote:

Originally Posted by Opserty (Post 1622005)
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 [DATE]1221426914[/DATE] at [TIME]1221426914[/TIME] ---------------

Solved. :)

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

Quote:

Dear $userinfo[username],
That was giving the parse error. Now works fine!!

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


All times are GMT. The time now is 10:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01209 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete