Koozali.org: home of the SME Server

Server-manager panel categories lost

Offline axessit

  • *****
  • 213
  • +0/-0
Server-manager panel categories lost
« on: November 02, 2008, 10:57:42 AM »
Having got my server backup up & running, now when I log into the server manager, I only get one heading "unknown" and all the contribs and server panels are listed in some random order. They are all there and seem to work, just nice to have them in their good old order that I'm used to.

Reboot didn't fix it.


Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Server-manager panel categories lost
« Reply #1 on: November 02, 2008, 11:11:48 AM »
Having got my server backup up & running, now when I log into the server manager, I only get one heading "unknown" and all the contribs and server panels are listed in some random order. They are all there and seem to work, just nice to have them in their good old order that I'm used to.

Reboot didn't fix it.
Please read this sticky post: http://forums.contribs.org/index.php?topic=40789.0
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline axessit

  • *****
  • 213
  • +0/-0
Re: Server-manager panel categories lost
« Reply #2 on: November 02, 2008, 08:28:40 PM »
Thanks for the quick reply. Yeah, tried this but it didn't work. It didn't see any updates either, as I just did this the other day, I am not surprised. Yes, it was working after I did the updates (before my server crashed).

Any other ideas ?

Offline axessit

  • *****
  • 213
  • +0/-0
Re: Server-manager panel categories lost
« Reply #3 on: November 02, 2008, 09:10:35 PM »
when I read thru this wiki, http://wiki.contribs.org/Translations#Outdated_contribs I followed the instructions under the "Simple (and dirty) way to discover the incompatible contrib panel " section near the bottom. This fixed it.

 :-P


Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Server-manager panel categories lost
« Reply #4 on: November 02, 2008, 09:44:22 PM »
when I read thru this wiki, http://wiki.contribs.org/Translations#Outdated_contribs I followed the instructions under the "Simple (and dirty) way to discover the incompatible contrib panel " section near the bottom. This fixed it.

 :-P


Than you most likely have installed a contrib that has it's locale not in UTF8 format.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline shawnbishop

  • *****
  • 298
  • +0/-0
Re: Server-manager panel categories lost
« Reply #5 on: November 13, 2008, 11:45:10 AM »
SSH into the box as root, create a bash script file, call it UT8.sh

copy the following into, chmod 777 it and run

#!/bin/bash
# Script to convert SME server panel to UTF-8
# original author  yythoss walter.thoss@swt-online.de
# last auhtor : Jean-Philippe Pialasse aka Unnilennium tests@pialasse.com
# licence GPL
#
#History
# 2008-06-07
# - added check with iconv to allow to run script as often as you need
# - added incremental backup of the locals

# charset UTF-8
to=$(echo "UTF-8" | tr '[[:upper:]]' '[[:lower:]]')

# function to convert
function code() {
    count=0
    for f in ${files
  • }; do

        count=$(( $count + 1))
        # check if the file is explicitly  declared to be in utf8
        type="$(file "$f" | sed 's/^.*:\s\(UTF-8\|ASCII\)\s.*/\1/' | tr '[[:upper:]]' '[[:lower:]]')"
        # check if the file is in utf8 => return an error if not in UTF8
        converted="$(iconv -f UTF-8 -t UTF-8 --output=/dev/null $f 2>&1 )"
        # if the file is declared to be utf8 do nothing
        if [ "$type" = "$to" ]; then
            echo -n "$count: $f is already $to! => done."
            echo
        # if the file is already in utf8 do nothing
        elif [ "$converted" = "" ] ; then
            echo -n "$count: $f was already converted using this script $to! => nothing to do."
            echo
        # else you can do the job
        else
            case $type in
                *iso-8859*)
                echo -n "$count: Recode now $f to $to!"
                echo
                iconv -f "ISO-8859-1" -t "$to" "$f" > "${f}.${to}"
                mv "${f}.${to}" "$f"
                [[ $? = 0 ]] && echo -n " => done." || echo -n " => failed."
                ;;
                *ascii*)
                echo -n "$count: Recode now $f to $to!"
                echo
                iconv -f "ascii" -t "$to" "$f" > "${f}.${to}"
                mv "${f}.${to}" "$f"
                [[ $? = 0 ]] && echo -n " => done." || echo -n " => failed."
                ;;
                *sgml*)
                echo -n "$count: Recode now $f to $to!"
                echo
                iconv -t "$to" "$f" > "${f}.${to}"
                mv "${f}.${to}" "$f"
                [[ $? = 0 ]] && echo -n " => done." || echo -n " => failed."
                ;;
                *)
                echo -n "Format $type not supported!"
                ;;
                esac && echo
        fi
    done
}

#save before running
number=$(( $(ls -1 locale*.tgz | wc -l) + 1 ))
tar czf locale$number.tgz /etc/e-smith/locale/*

# search for files ine mains languages (we skipped the link)
# why not using this instead : ls -l /etc/e-smith/locale | grep -v '\->'|awk  '{print $9}'|grep -v ^$
for lang in da de el en-us es fr hu id it nl pt_BR sl sv; do
        files=$(find "/etc/e-smith/locale/$lang/etc/e-smith/web/functions/" -iname "*" -type f -print)
        code
done

echo -n "Create the new Server Manager Panel..."
/etc/e-smith/events/actions/navigation-conf
echo

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Server-manager panel categories lost
« Reply #6 on: November 13, 2008, 03:35:24 PM »
SSH into the box as root, create a bash script file, call it UT8.sh
Which is a work-around. To really solve it you need to find out what is causing it and fix the root cause/have the contrib author fix it.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)