[1.7.3 | 2.0.0] Parsed CharacterProfiler in 0 seconds

Official announcements concerning bugs and fixes in the WoWRoster package
Posting is restricted to Forum Moderators

[1.7.3 | 2.0.0] Parsed CharacterProfiler in 0 seconds

Postby zanix » Mon Feb 26, 2007 3:14 am

Generally, most users will not need to do this but in cases where the web host disables reading from PHP's upload temp directory, this fix might help

Make sure you pick the edit that corresponds to your Roster version
To find your Roster version, check the text in the Footer of any Roster page

There is no download for this fix


1.7.3

First, create a directory in your roster folder
Give that new folder write permissions (chmod 777)
Remember the name of this directory

Open update.php
Find
Code: Select all
                    $data ParseLuaFile$file['tmp_name'],$file_type ); 


Replace with
(Changing REPLACE with the directory you created)
Code: Select all
                    $new_lua_file ROSTER_BASE.'REPLACE'.DIR_SEP.basename($file['tmp_name']);
                    
move_uploaded_file($file['tmp_name'],$new_lua_file);

                    
// Parse the lua file into a php array that we can use
                    
$data ParseLuaFile$new_lua_file,$file_type );
                    
                    @
unlink($new_lua_file); 




2.0

Open lib/update.lib.php
Find
Code: Select all
                    $data $luahandler->luatophp$file['tmp_name'], isset($this->blinds[$filebase]) ? $this->blinds[$filebase] : array() ); 


Replace with
Code: Select all
               $new_lua_file = ROSTER_CACHEDIR . basename($file['tmp_name']);
               move_uploaded_file($file['tmp_name'],$new_lua_file);
               $data = $luahandler->luatophp( $new_lua_file, isset($this->blinds[$filebase]) ? $this->blinds[$filebase] : array() );
               @unlink($new_lua_file);


If this does not fix this error, you may have a corrupt .lua file
I suggest deleting the file from your SavedVariables directory and rescan in-game
Last edited by zanix on Sun Oct 19, 2008 10:32 am, edited 5 times in total.
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

Return to Official Bugs & Updates

Who is online

Users browsing this forum: No registered users and 1 guest

cron