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