Upload problems

CharacterProfiler.lua file uploading issues

Re: Upload problems

Postby Draoicht » Sat Sep 16, 2006 11:26 pm

I am having a problem like the above. open_basedir is off, but the files are not being processed when I attempt to upload through the roster or using UniUpload. I made no changes since last I updated, but now it's not working.

Any thoughts? Most of the fixes above have to do with uploading incorrect .lua files (I am attempting to upload the correct ones. Triple checked for safety) or making changes based on open_basedir being on, from what I can tell. I'm learning this as I go along.

Thank you for the assistance.
Draoicht
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Wed Aug 30, 2006 11:45 pm

Upload problems

Postby Raikir » Sun Sep 17, 2006 3:21 pm

I have been having serious problems getting my profiles to update.

When I try to update CharacterProfiler.lua from the WTF/... directory I get the following lines in my update Log:
"Raikir @ Kirin Tor Ignored"

and in my SQL Queries i get:
"SELECT `config_name`, `config_value` FROM `roster_config` ORDER BY `id` ASC;"


I have followed the instructions in the post: www.wowroster.net/inde...c&t=61 {three or four or more times}

I have disabled lines 300 to 316 in config.php {They were originally giving me problems.}

I have renamed config.php to admin.php and the associated internal line
$script_filename = 'admin.php';

{no change and was unable to access 'Roster Config so I changed it back}

I am using www.hostgator.com/ for my host.

It appears the I cannot use a php.ini file with hostgator, however, I can use a .htaccess file. Unfortunately I do not know how to script the variables or where to place the .htaccess file if I need to go that route.

Server OS: Linux 2.6.17.6hg, Apache version: 1.3.37 (Unix), PHP version: 4.4.4 , MySQL version: 4.1.21-standard



Also, when I go into Roster Diag. i find:
PHP Settings phpinfo() page

PHP Version 4.4.4
PHP API Type cgi
safe_mode Off
open_basedir Off
allow_url_fopen On
file_uploads On
upload_max_filesize 10M


I think I just found my problem. My PHP is appears to be running in cgi.

If anyone can help me with any of this I would really appreciated it, especially if I do not have to change host, but I am starting to get a bad feeling about that.

Thanks,

**EDIT**
Solved part of the problem. I was unable to add my guild info on the Roster Config page so I had to do it manually in the roster_config table.
Last edited by Raikir on Mon Sep 18, 2006 10:48 am, edited 3 times in total.
Raikir
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Sun Sep 17, 2006 7:46 am

Upload problems

Postby zanix » Sun Sep 17, 2006 4:30 pm

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: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Upload problems

Postby Draoicht » Sun Sep 17, 2006 8:11 pm

zanix wrote:Did you follow this guide?
http://www.wowroster.net/wiki/index.php/Roster:Updating


I did, step by step. I also ensured the upload size is smaller than my maximum for the .lua file, so I can rule that out. I attempted to make the change to the luaparser.php file that was spoken of in another thread on this issue...still no luck.

Diag:

OS Windows NT
Server Software Microsoft-IIS/5.0
MySQL Version 4.1.9-nt


PHP Settings phpinfo() page

PHP Version 4.3.10
PHP API Type cgi-fcgi
safe_mode Off
open_basedir Off
allow_url_fopen On
file_uploads On
upload_max_filesize 2M

The diag shows no errors.

Website is Here
Attachments
characterprofiler.lua
My character profiler .lua I'm attempting to update with.
(287.94 KiB) Downloaded 79 times
Last edited by Draoicht on Sun Sep 17, 2006 8:16 pm, edited 1 time in total.
Draoicht
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Wed Aug 30, 2006 11:45 pm

Re: Upload problems

Postby MattM » Sun Sep 17, 2006 8:36 pm

Let me understand the whole open_base_dir uploading problem

am i right when i say when this option is turned off, the php script cannot open the uploaded temp file?

if so then wouldnt a move_uploaded_file to a temp folder inside the roster file structure fix this?
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

Upload problems

Postby hula73 » Mon Sep 18, 2006 12:22 am

i had this issue before with your setup...please check your php.ini and see where your temp folder is going to...make sure it EXISTS!!!
hula73
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Tue Sep 12, 2006 9:54 am

Upload problems

Postby Draoicht » Mon Sep 18, 2006 2:35 am

I checked my php.ini and it's set for PHP/uploadtemp, which does exist.

So, I'm now unsure what the issue might be.

If you need the php.ini information to assist me, just say so, and thank you for the help!
Draoicht
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Wed Aug 30, 2006 11:45 pm

Re: Upload problems

Postby Draoicht » Mon Sep 18, 2006 11:40 pm

I may simply delete the damn thing tonight and reinstall and start over. When in doubt, wipe the slate.
Draoicht
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Wed Aug 30, 2006 11:45 pm

Re: Upload problems

Postby Draoicht » Tue Sep 19, 2006 9:40 pm

Full reinstall, still no joy. Obviously something changed somewhere on the server, but I don't know what...and I don't have the permissions to look what or where.

Well, thanks for the help, folks.
Draoicht
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Wed Aug 30, 2006 11:45 pm

Re: Upload problems

Postby Whirlwind » Thu Sep 21, 2006 1:55 pm

Rammaroth wrote:I had the same problem since the installation for the roster.

So I rename the CHARACTERPROFILER.LUA (exactly what I found in my installation) to CharacterProfiler.lua and everything runs smooth on both installs.

Hope that helps :)


This happens because update.php check the filename with a pre-defined value in a case sensitive way, so if the file name is not exactly "CharacterProfiler.lua" it don't work.

you can change a bit the update.php from the row 67 in this way:

Code: Select all
// Files that we accept for upload
// DEBUG: Lowered the filename for avoid wrong uppercase issue
$filefields[] = 'characterprofiler.lua';
$filefields[] = 'pvplog.lua';
// DEBUG END

// Loop through each posted file
foreach ($_FILES as $filefield => $file)
{
   $filename = $file['tmp_name'];
   $filemode = '';

   if( substr_count($file['name'],'.gz') > 0 )   // If the file is gzipped
      $filemode = 'gz';

   foreach( $filefields as $acceptedfile )   // Itterate through all the possible filefields
   {
      // DEBUG: Lowered the filename for get a case-insensitive check
      $lowcase_filename = strtolower($file['name']);
      if( $acceptedfile == $lowcase_filename || $acceptedfile.'.gz' == $lowcase_filename )
      // DEBUG END


The changes are in the //DEBUG //DEBUG END zones, so it start to work in a case-insensitive way.

i hope this can help too.
Whirlwind
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Tue Aug 22, 2006 3:36 pm

Re: Upload problems

Postby shalamoo » Thu Oct 12, 2006 1:29 pm

I had this same problem on a Windows server.
reference: "SELECT `config_name`, `config_value` FROM `roster_config` ORDER BY `id` ASC;"


I had followed the instructions to the letter. Here's my fix.

I have this page kept handy for other issues, create a test.php with the following code:

Code: Select all
<?php
phpinfo();
?>


Run that on the server and look for the TEMP and TMP values (these are your Windows Environment Variables (also going to Start > Run, and typing %TEMP% will bring the location up quickly)

I had read that if PHP can't use a set value for upload_tmp_dir it will use the systems default directory. Once you find it, set the permissions for user IUSR_COMPUTERNAME with the same permissions you'd set for the upload_tmp_dir (read / write I believe).

I closed my browser, tested, and I haven't had a problem since. I'll troubleshoot the php temp issue later.

Good luck folks!
shalamoo
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Thu Oct 12, 2006 12:32 pm

Upload problems

Postby Klaatha » Thu Oct 12, 2006 3:56 pm

Well I have been using the roster for qiute som etime now without any problems at all.. Until today when I was about to update the guild and my characters. I get these messages:

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/virtual/lawguild.eu/public_html/lawroster/lib/wowdb.php on line 845

Warning: Invalid argument supplied for foreach() in /home/virtual/lawguild.eu/public_html/lawroster/lib/wowdb.php on line 845

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/virtual/lawguild.eu/public_html/lawroster/lib/wowdb.php on line 845

Warning: Invalid argument supplied for foreach() in /home/virtual/lawguild.eu/public_html/lawroster/lib/wowdb.php on line 845

Fatal error: Allowed memory size of 11534336 bytes exhausted (tried to allocate 1978659 bytes) in /home/virtual/lawguild.eu/public_html/lawroster/lib/commonfunctions.lib.php on line 159


The roster is located in http://www.lawguild.eu/lawroster and the version is 1.7.0. Any ideas?
Last edited by Klaatha on Thu Oct 12, 2006 4:02 pm, edited 2 times in total.
Klaatha
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Fri Jul 14, 2006 1:56 pm

Upload problems

Postby zanix » Fri Oct 13, 2006 12:22 am

Klaatha
Don't thread hijack, your post has nothing to do with this problem

Make your own post or post in a topic with the same problem
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: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Previous

Return to Uploading

Who is online

Users browsing this forum: No registered users and 0 guests

cron