UniAdmin 0.7.5 WoWAce Addon Error

Support and feedback for UniAdmin

Re: UniAdmin 0.7.5 WoWAce Addon Error

Postby sweede » Sun Feb 18, 2007 6:27 pm

The problem has nothing to do with what version of php you are using or what addons you are installing.

The problem is that some enviroments, apache is running with mode 111 , which means when it creates a file or directory, it will have permissions of 666, which is read and write ONLY for user, group, world.

When pclzip begins to unzip the file it downloads, on some systems it does not create the directory with permission to execute in that directory and apache cannot perform operations in that directory.

on any unix/linux system, a directory must have execute permissions to do a directory listing.

[root@65-110-41-60 addon_temp]# ls -la
total 12
drwxrwxrwx 3 apache apache 4096 Feb 18 12:23 .
drwxr-xr-x 12 dalvengy dalvengy 4096 Feb 18 11:21 ..
drw-rw-rw- 2 apache apache 4096 Feb 18 12:23 ag_UnitFrames

Notice that it doesnt have execute permissions.

So where is the issue?

Researching the pclzip library, we come across an option that can be used to chmod the directory when you unzip a file. on or around like 230 , there is
" $list = $archive->extract(PCLZIP_OPT_PATH, $path); "

according to the pclzip library you can add the option to set the permission of the directory there,
$list = $archive->extract(PCLZIP_OPT_PATH, $path, PCLZIP_OPT_SET_CHMOD, 0777);


however, that does not work, which is the real problem and will be the required solution.

if that makes sense to anyone, let me know :)
sweede
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Sun Feb 18, 2007 6:21 pm

Re: UniAdmin 0.7.5 WoWAce Addon Error

Postby Ansgar » Sun Feb 18, 2007 8:15 pm

I reviewed the instructions regarding the use of pclzip, this option seems not to be fully implemented

"This argument was not fully tested and should be considered as EXPERIMENTAL."
Ansgar
WR.net Apprentice
WR.net Apprentice
 
Posts: 26
Joined: Wed Jul 05, 2006 7:12 pm

UniAdmin 0.7.5 WoWAce Addon Error

Postby 776Sputnik » Sun Feb 18, 2007 10:15 pm

When trying to download an ace addon (checking a box and clicking download)....

Getting this at the top of the screen
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/.irish/---------/uuadmin.-----.net/modules/wowace.php on line 151

Warning: file_get_contents(http://files.wowace.com/GemList/GemList.zip) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/.irish/------/uuadmin.------.net/modules/wowace.php on line 151

and this in the normal error box
Error
PCLZip Unrecoverable Error: [PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature]
User avatar
776Sputnik
WR.net Apprentice
WR.net Apprentice
 
Posts: 29
Joined: Thu Jul 06, 2006 1:23 am

UniAdmin 0.7.5 WoWAce Addon Error

Postby zanix » Sun Feb 18, 2007 10:17 pm

URL file-access is disabled in the server configuration

That is your problem, you server has disabled this feature so you cannot download addons from wowace
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

UniAdmin 0.7.5 WoWAce Addon Error

Postby 776Sputnik » Sun Feb 18, 2007 10:38 pm

hmm... no way around it then?
User avatar
776Sputnik
WR.net Apprentice
WR.net Apprentice
 
Posts: 29
Joined: Thu Jul 06, 2006 1:23 am

UniAdmin 0.7.5 WoWAce Addon Error

Postby sweede » Tue Feb 20, 2007 2:40 pm

sweede
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Sun Feb 18, 2007 6:21 pm

Previous

Return to UniAdmin

Who is online

Users browsing this forum: No registered users and 0 guests

cron