upload error

Support and feedback for UniAdmin

upload error

Postby aniodon » Fri Feb 16, 2007 1:51 pm

Hi!

1) I got the following error after uploading an add on (pvplog or characterprofiler...)

Code: Select all
<b>Warning</b>:  php_uname() has been disabled for security reasons in <b>pclzip.lib.php</bon line...
 


2) the addon is then recognized, no problem, but when using UU to get them, they always get on the WoW\pvplog and Wow\characterprofiler directory, with the directory option turned to on or off (same pb) when uploading the file.

3) When trying to upload CTRaid (advanced version), i got a 500 internal error. (too long ?? 1.5M). Is there a manual way to do that, or something to do on the server ?

Thank you for that incredible work =)
aniodon
WR.net Journeyman
WR.net Journeyman
 
Posts: 108
Joined: Mon Dec 18, 2006 8:09 pm

upload error

Postby zanix » Sat Feb 17, 2007 2:57 am

This error has to do with the zip library UA uses
http://www.phpconcept.net/pclzip/index.en.php

That seems pretty critical to the operation of PclZIP - (include/pclzip.lib.php)
Code: Select all
  // --------------------------------------------------------------------------------
  // Function : PclZipUtilTranslateWinPath()
  // Description :
  //   Translate windows path by replacing '\' by '/' and optionally removing
  //   drive letter.
  // Parameters :
  //   $p_path : path to translate.
  //   $p_remove_disk_letter : true | false
  // Return Values :
  //   The path translated.
  // --------------------------------------------------------------------------------
  
function PclZipUtilTranslateWinPath($p_path$p_remove_disk_letter=true)
  {
    if (
stristr(php_uname(), 'windows')) {
      
// ----- Look for potential disk letter
      
if (($p_remove_disk_letter) && (($v_position strpos($p_path':')) != false)) {
          
$p_path substr($p_path$v_position+1);
      }
      
// ----- Change potential windows directory separator
      
if ((strpos($p_path'\\') > 0) || (substr($p_path0,1) == '\\')) {
          
$p_path strtr($p_path'\\''/');
      }
    }
    return 
$p_path;
  }
  
// --------------------------------------------------------------------------------
 

This is probably why the paths are wrong, because the zip library cannot translate them correctly
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

upload error

Postby aniodon » Sat Feb 17, 2007 3:17 am

Is there anything i can do to help solving the problem ?
aniodon
WR.net Journeyman
WR.net Journeyman
 
Posts: 108
Joined: Mon Dec 18, 2006 8:09 pm

upload error

Postby zanix » Sat Feb 17, 2007 3:26 am

Your webserver host needs to remove the restriction on the function php_uname()

But more than likely they won't :(
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

upload error

Postby zanix » Mon Feb 19, 2007 12:36 am

Try replacing
Code: Select all
if (stristr(php_uname(), 'windows')) { 

With
Code: Select all
if ((strtoupper(substr(PHP_OS03)) == 'WIN')) { 
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

upload error

Postby aniodon » Mon Feb 19, 2007 2:11 am

With this line, the upload is successful =)

Thank you =)

works fine
aniodon
WR.net Journeyman
WR.net Journeyman
 
Posts: 108
Joined: Mon Dec 18, 2006 8:09 pm


Return to UniAdmin

Who is online

Users browsing this forum: No registered users and 1 guest

cron