Parsing error

CharacterProfiler.lua file uploading issues

Parsing error

Postby Wonderbugg » Wed Jun 20, 2007 9:41 am

When going to the roster, I get the 'Guild not loaded' message. I click on 'Load Guild data' and browse to the 'CharacterProfiler.lua' then enter the password for guild uploader. I get ...

Error while parsing CharacterProfiler after 0.47 seconds

I was promoted to Guild Leader to eliminate that problem. I have re-installed the roster, making sure spelling and capitolization were correct. I logged into my character and made sure that /gp show and /cp show showed everything as scanned. Then logged out and tried to upload with the same error. What am I missing?

I've teried Zanixs' fix to no avail. I've re-installed Roster with no change. I've deleted the 'CharacterProfiler.lua' file (and it's *.bak) several times....nothing seems to work. I've wiped out the Wow addons folder completely, installed ONLY GuildProfiler and CharacterProfiler...logged in, verified all was scanned and tried. Zip...
Wonderbugg
WR.net Apprentice
WR.net Apprentice
 
Posts: 16
Joined: Mon Oct 30, 2006 11:47 pm

Re: Parsing error

Postby tuigii » Wed Jun 20, 2007 2:19 pm

The error that you are showing means actually just one thing :
The file you send has a wrong format.
Is this a transport issue, a server side parse issue ?

Take my procedure to narrow down things:
Create a new character - and Guild it.
Quit WoW.
Destroy CharacterProfiler.lua and GuildProfiler.lua.
Login into the new character.
Do the sac/page/social/Guilde hopping.
Quit WoW

Result : you will have a minimum CharacterProfiler.lua file now....
Open it up with blocnote, and check if it’s normally readable by a human.
Its size is actually only related to the size of your Guild (and all the generic member details) but there's already enough information to do a complete Roster 'Guild' init.
You could even upload it here so ‘we’ can analyze it ! Nearly no private information (if not none) will be present.
Please note that's not needed to be a GM to handle the roster - you need to know the Roster password - and have Guildprofiler installed - that's all. I'm not a GM - and never, never want to be one - and handle 3 Rosters nearly daily. Including global uploading.

More technical: update.php use a function named ParseLuaFile (you find it in roster/lib/luaparser.php.
This function return false, and thus producing and error that you mentioned if the created file isn't "readable" or doesn't "exists" :scratch:
Try to figger out if one of these two isn't failing.
Inject these two lines in roster/lib/luaparser.php - start on line 32 (in the function body):
Code: Select all
      if (file_exists($file_name)) {echo $file_name; }
      if (is_readable($file_name)) {echo '  Readable also :-) '; }

When uploading, do you have a white text on the left upper corner on your screen mentioning a temporary file name and the text Readable also :-) ? (I found out that's it's being writen on a dir named /tmpphp/....., normaly inaccesible and non browsable for me as a user on my server).

Anyway, you get the principle how to debug fast in php, just try to trace it like in my example.

Your post is rather complete :thumleft:
But : is the roster already initialized ?
Please note that's it's rather easy to wipe the Roster database: wipe all tables, put the install directory/files in place (rename them back) and re-install to be sure to have a clean base.

Some stupid thing: try to connect from another ISP connection ...

Still no good ?
What about finding another hoster quickly, do the upload, check again.
Free ones are avaible everywhere.
This will show you if the problem is on your side, or on the server side.

Good luck.
Last edited by tuigii on Wed Jun 20, 2007 4:56 pm, edited 4 times in total.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Parsing error

Postby zanix » Wed Jun 20, 2007 2:42 pm

Very nice troubleshooting steps tuigii

Mind if I copy these over to the wiki?
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Parsing error

Postby tuigii » Wed Jun 20, 2007 4:52 pm

zanix wrote:Mind if I copy these over to the wiki?

Be my quest.

Please note that my post is just a condensed written expression from what I should do in this partciluar case.
When throwing it in a Wiki I should test my statements for real.
Il do so. I'll post back with results.

Wonder if it gives some results for Wonderbugg.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Re: Parsing error

Postby Wonderbugg » Wed Jun 20, 2007 6:12 pm

tuigii wrote:Take my procedure to narrow down things:
Create a new character - and Guild it.
Quit WoW.
Destroy CharacterProfiler.lua and GuildProfiler.lua.
Login into the new character.
Do the sac/page/social/Guilde hopping.
Quit WoW



Inject these two lines in roster/lib/luaparser.php - start on line 32 (in the function body):
Code: Select all
      if (file_exists($file_name)) {echo $file_name; }
      if (is_readable($file_name)) {echo '  Readable also :-) '; }






These 2 items together worked. Not sure if they would work seperately though.
Wonderbugg
WR.net Apprentice
WR.net Apprentice
 
Posts: 16
Joined: Mon Oct 30, 2006 11:47 pm

Re: Parsing error

Postby tuigii » Thu Jun 21, 2007 3:38 am

Wonderbugg wrote:These 2 items together worked. Not sure if they would work seperately though.

I don't quit well understand this answer.
It should be an answer on this question : "What does this print on your screen...(when updating)" ?

Next step is : place an debug line on line 54
Just after
Code: Select all
// return false if not presented with an array

add
Code: Select all
echo "I m bailing out .....";


Do you see this line on your roster screen when updating ?
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Parsing error

Postby zanix » Thu Jun 21, 2007 10:44 am

Thanks tuigii
I added this on the wiki
http://www.wowroster.net/wiki/index.php ... leshooting

If you have anything to add, add it
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Parsing error

Postby Wonderbugg » Thu Jun 21, 2007 5:13 pm

What I mean is that I wiped out the 'WTF', 'Interface' and 'Cache' folders in the World of Warcraft directory. I installed only CharacterProfiler, GuildProfiler and PVPLog. Verified them to be enabled in the Character screen.

Logged into WoW, created a new toon on the same server. Got a guild invite. Was promoted to 'Officer' rank, opened everything. Logged out. quit WoW, then attempted an upload. It finlly worked.
Wonderbugg
WR.net Apprentice
WR.net Apprentice
 
Posts: 16
Joined: Mon Oct 30, 2006 11:47 pm


Return to Uploading

Who is online

Users browsing this forum: No registered users and 1 guest

cron