vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   XML Question - Need quick help (https://vborg.vbsupport.ru/showthread.php?t=77334)

Deaths 03-02-2005 02:30 PM

XML Question - Need quick help
 
Hey there,

I'm writing an install script for my latest hack, and I use XML to import the templates.
Now, when I run the script, I get this error:
PHP Code:

XML Errornot well-formed (invalid tokenat Line 26 

This is my line 26:
PHP Code:

<phrase 1="$bbuserinfo[username]">$vbphrase[welcome_to_your_member_area]</phrase

I don't have a clue what's wrong with this, so hopefully someone can help me out.

eva01_ 03-02-2005 02:39 PM

just a shot in the dark since i kinda suck at PHP and am still learning what happens if you put single quotes around username

Deaths 03-02-2005 02:40 PM

Tried that :-/
Also tried putting a single quote around the whole thing, adding a double quote around username...

Thanks for the help anyway

Zero Tolerance 03-02-2005 02:47 PM

It's possible its a line above or a couple of lines above causing the error, since i don't see anything wrong with that line.

- Zero Tolerance

filburt1 03-02-2005 03:02 PM

Make sure it's inclosed in a CDATA wrapper to avoid the phrase tag being incorrectly parsed as XML itself.

Deaths 03-02-2005 03:15 PM

Fixed guys, I forgot the CDATA wrapper

EDIT: Haha, I only noticed your post after I posted this one^^.
Anyway, thanks guys, you can expect vBMA to be released anytime soon :)


All times are GMT. The time now is 04:39 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.01041 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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