vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Parse error on sending PM to normal user from admin user (https://vborg.vbsupport.ru/showthread.php?t=183014)

Harrison87 06-20-2008 12:56 AM

Parse error on sending PM to normal user from admin user
 
After I send a pm to a user on a regular account, right after I click send it gives the following error at the top of the screen, and then it redirects back to the inbox.

Code:

"Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/html/gamesrogue.com/forums/includes/class_dm_pm.php(579) : eval()'d code on line 9".
Any idea where this would come from?

Line 579 in class_dm_pm.php:

PHP Code:

eval(fetch_email_phrases($email_phrases['pmreceived'], $touserinfo['languageid'], '''email')); 

--------------- Added [DATE]1213927378[/DATE] at [TIME]1213927378[/TIME] ---------------

Fixed, apparently you can't use single quotes on array variables. Kind of weird, one would think vBulletin would alert to this if it would cause errors.

Re:
Quote:

The variable name is how you will refer to your phrase from the templates. It should not contain any spaces or special characters - meaning, only use A-Z, a-z, 0-9, -, and _ in the name.

To call the phrase from the templates, use
$vbphrase[variablename]
where variablename is what you put in this box.


All times are GMT. The time now is 07:06 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.01140 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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