Can't add Addons and Logos

Support and feedback for UniAdmin

Can't add Addons and Logos

Postby zanix » Wed Oct 25, 2006 6:19 am

Yeah, I think I can help
The changes listed here will be in UniAdmin 0.7.1


First of all, change the $debug value in conf.php
Code: Select all
$debug 2

This is so debug messages will show


modules/addons.php
Find Lines 395-401
Code: Select all
        // Try to set write access on the uploaded file
        
$try_chmod = @chmod($zip_file,0777);
        if( !
$try_chmod )
        {
            
$uniadmin->debug(sprintf($user->lang['error_chmod'],$zip_file));
            return;
        } 

Replace with
Code: Select all
        // Try to set write access on the uploaded file
        
if( !is_writeable($zip_file) )
        {
            
$try_chmod = @chmod($zip_file,0777);
            if( !
$try_chmod )
            {
                
$uniadmin->debug(sprintf($user->lang['error_chmod'],$zip_file));
                return;
            }
        } 



modules/logo.php
Find Lines 266-272
Code: Select all
        $md5 md5_file($logo_location);
        
$try_chmod = @chmod($logo_location,0777);
        if( !
$try_chmod )
        {
            
$uniadmin->debug(sprintf($user->lang['error_chmod'],$logo_location));
            return;
        } 

Replace with
Code: Select all
        $md5 md5_file($logo_location);

        if( !
is_writeable($logo_location) )
        {
            
$try_chmod = @chmod($logo_location,0777);
            if( !
$try_chmod )
            {
                
$uniadmin->debug(sprintf($user->lang['error_chmod'],$logo_location));
                return;
            }
        } 
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

Re: Can't add Addons and Logos

Postby jffire » Wed Oct 25, 2006 5:59 pm

Thank you SOOOOOoooooo Much!

Its working now ! WOOOOT!

You'll save me hours of explanation to guild members :)

Thanks again!!! Keep up the good work!
User avatar
jffire
WR.net Apprentice
WR.net Apprentice
 
Posts: 30
Joined: Wed Jul 26, 2006 8:38 pm

Can't add Addons and Logos

Postby SethDeBlade » Sun Nov 26, 2006 5:40 pm

seems a stupid question but how many addons can be managed by the addon module??

only one addon is stored in the db. any additional addon is uploaded correctly to the webspace but not entered in the db :scratch:

edit: ah, no i see. activating debug mode returns
Code: Select all
SQL query error

Query: INSERT INTO `uniadmin_addons` ( `time_uploaded` , `version` , `enabled` , `name`, `dl_url`, `homepage`, `toc`, `required` ) VALUES ( '1164541359', '1.6.3', '1', 'CharacterProfiler', 'http://www.mypathtouuadmin.de/addon_zips/rpgo-CharacterProfiler_1.6.3.zip', 'http://www.rpgoutfitter.com/', 11200 , 1);
Message: Duplicate entry '0' for key 1
Code: 1062
Last edited by SethDeBlade on Sun Nov 26, 2006 5:45 pm, edited 1 time in total.
User avatar
SethDeBlade
WR.net Expert
WR.net Expert
 
Posts: 192
Joined: Thu Jul 06, 2006 1:02 am
Location: Germany

Can't add Addons and Logos

Postby zanix » Sun Nov 26, 2006 6:43 pm

Clear your tables and re-import the sql file to the database

Some column didn't get the auto increment value for some reason
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

Can't add Addons and Logos

Postby SethDeBlade » Sun Nov 26, 2006 9:01 pm

yes, thanks. that worked :)
User avatar
SethDeBlade
WR.net Expert
WR.net Expert
 
Posts: 192
Joined: Thu Jul 06, 2006 1:02 am
Location: Germany

Previous

Return to UniAdmin

Who is online

Users browsing this forum: No registered users and 0 guests

cron