vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Parse error: parse error, unexpected T_STRING in /www/.../private.php (https://vborg.vbsupport.ru/showthread.php?t=43807)

Dark Jim 09-22-2002 10:52 AM

Parse error: parse error, unexpected T_STRING in /www/.../private.php
 
I have no idea what causes it, not even what hack may cause it as I'm not the only one who modifies the code on the forum this occurs. This is the entire error:

Parse error: parse error, unexpected T_STRING in /www/...../private.php on line 315

This is the part in private.php:

PHP Code:

// ############################### start show message ###############################
if ($action=="show") {
  
makeforumjump();

  
$privatemessageid verifyid("privatemessage",$privatemessageid);

  
$message $DB_site->query_first("SELECT privatemessage.*,icon.title as icontitle,icon.iconpath,attachment.attachmentid,attachment.filename,attachment.counter
                                    FROM privatemessage
                                    LEFT JOIN icon ON (privatemessage.iconid = icon.iconid)
                                    LEFT JOIN attachment ON (attachment.attachmentid = privatemessage.attachmentid)
  if (
$message[userid]!=$bbuserinfo[userid]) {
    
$idname="privatemessage";  // This is line 315
    eval("
standarderror(\"".gettemplate("error_invalidid")."\");");
    exit;
  } 

Could someone help please? :(

Admin 09-22-2002 11:03 AM

Add " after this:
Code:

LEFT JOIN attachment ON (attachment.attachmentid = privatemessage.attachmentid)

Dark Jim 09-22-2002 11:40 AM

Did that. Now I get:

Parse error: parse error, unexpected T_IF in /www/...../private.php on line 314

I then tried also adding the ) (should that also be there?) but it stays the same.

Xenon 09-22-2002 11:42 AM

after the " chen told ya you have to add );

Dark Jim 09-22-2002 11:43 AM

Argh nevermind, ofcourse also the ; has to be added.

Thanks for pointing me in the right direction. :)


All times are GMT. The time now is 09:58 PM.

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.00979 seconds
  • Memory Usage 1,720KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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