vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/forumdisplay.php?f=105)
-   -   Parse error (https://vborg.vbsupport.ru/showthread.php?t=94014)

lewisbeech 08-10-2005 05:02 PM

Parse error
 
hello, yet another error from me :(

here is what i get when i click the private message like:

Code:

Parse error: parse error, unexpected T_ELSE in /home/aq2zbea/public_html/private.php on line 1040
the bit of php code is as follows:

PHP Code:

                        // bbuser is being ignored by recipient - do not send, but do not error
                        
$tostring["$user[userid]"] = $user['username'];
                        continue;
                    }
                }
                else <<<<<---- 
THIS IS LINE 1040!
                {
                    
cache_permissions($userfalse);
                    if (
$user['permissions'] < 1)
                    {
                        
// recipient has no pm permission 


Marco van Herwaarden 08-11-2005 12:37 PM

You will have to post the code that is before this, until the first 'if'

lewisbeech 08-11-2005 04:53 PM

ok, go to www.a-2z.com/private.phps

Marco van Herwaarden 08-12-2005 03:51 AM

PHP Code:

                       // bbuser is being ignored by recipient - do not send, but do not error
                        
$tostring["$user[userid]"] = $user['username'];
                        continue;
                    }   <-- 
this line don't seem to have a matching openin bracket
                } 


Marco van Herwaarden 08-12-2005 03:52 AM

Ohh and please remove that file ASAP

lewisbeech 08-12-2005 06:30 AM

yes, i did remove the private.php file when i found that there was a problem.
and you gave me that code, but what do i add? i am not very good with php scripts.

Marco van Herwaarden 08-12-2005 10:21 AM

Well difficult for me to guess what it should be. I guess that either the line i marked should be removed, or there should have been an if-statement 2 lines before.

Pease triple check your instructions.


All times are GMT. The time now is 01:38 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.00969 seconds
  • Memory Usage 1,729KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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