![]() |
cant work this error out
ok i've been working on a world of warcraft armory parser for achievements and for some reason its showing an error even thou the other pages i have just like this one work fine
CODE: PHP Code:
the error i'm recieving is when i update the script it send me this HTML Code:
#!/usr/bin/php does anyone know how to rectify this error at all any help is appreciated thanks in advance Talonos |
ohh btw this is the sort of content its trying to parse from
Code:
<achievement categoryId="168" dateCompleted="2009-06-15+02:00" desc="Defeat Kel'Thuzad on Normal Difficulty in Naxxramas." icon="inv_trinket_naxxramas06" id="574" points="10" title="Kel'Thuzad's Defeat"/> |
Well, it will fail in trying to parse the data between,
Code:
<criteria name="The Arachnid Quarter"/>Code:
<criteria>The Arachnid Quarter</criteria> |
thing is thou this script is the same as my others and they are working fine even with the <criteria issue that u say might be breaking it
|
Can you post a copy of the HTML source? It will help me pinpoint where in the PHP it's failing.
|
my read file:
PHP Code:
http://eu.wowarmory.com/character-ac...warcraft&c=168 to find the area i might be having problems in the xml file just search for Code:
576Code:
[acheivement][/achievment]Code:
function check_achievement($achievement, $num) {Code:
Notice: Trying to get property of non-object in C:\wamp\www\ulduar.php on line 163 |
Did you now get this working? I clicked your link. In:
Opera - you get a text nightmare. Firefox - same IE8 - renders the (ugly) HTML. You need some more standard tags. Namely the html and body. Or xml... |
The output is XML...
It's gotta be the way you parse the XML. I just can't find it. |
in IE8 click "view source" to see the xml data and i've still not fixed the error :(
|
i've already got one page that parses that same xml file but a diffrent part and the layout is the exact same with the criteria but that page doesn't have the error at all, but this one is and its really starting to annoying me now as quite a few people cant work it out either even thou theres very little diffrence within the 2 pages, i'll post my working script so u guys can compare and see if u can work it out too
PHP Code:
|
ok i think i worked out my problem, seems that there are diffrent
Code:
</category> |
ok if anyone wants to know i got my error resolved
find: PHP Code:
PHP Code:
|
| All times are GMT. The time now is 05:20 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0