SimpleDesk

SimpleDesk! => SimpleDesk Support => Topic started by: profdrdenis on April 15, 2010, 05:19:52 AM

Title: shd_admin_helpdesklog
Post by: profdrdenis on April 15, 2010, 05:19:52 AM
I have in my Test Forum 2.0RC3 this error in my log:

8: Undefined index: shd_admin_helpdesklog
Filter hinzufügen: Nur Fehler von dieser Datei zeigen
Datei: /Sources/Admin.php
Zeile: 611

Any idea what this mean?
Title: Re: shd_admin_helpdesklog
Post by: Gruffen on April 15, 2010, 05:24:14 AM
How did you install SimpleDesk?
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 15, 2010, 06:53:21 AM
with the manager. After I check in the admin file is everything inside

Any idea?
Title: Re: shd_admin_helpdesklog
Post by: Gruffen on April 15, 2010, 07:23:07 AM
It's not Admin.php that's explicitly the problem.

It's the fact that you don't have a SimpleDeskAdmin language file for your language, and it'll fail because of that. What language exactly are you using? (and what files are there in Themes/default/languages/)
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 15, 2010, 02:26:05 PM
I use German in my forum.

But this is the first step what I do, copy the original language files and rename in SimpleDesk-Admin.german.php and so on
Title: Re: shd_admin_helpdesklog
Post by: Gruffen on April 15, 2010, 02:33:57 PM
That would work, yes.

I did write a revision in the code which will appear in SimpleDesk 1.1 that makes sure it has English loaded just in case.
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 15, 2010, 02:40:20 PM
dont forgot my english... so I do what now?
Title: Re: shd_admin_helpdesklog
Post by: hadesflames on April 15, 2010, 03:21:44 PM
Like you said, you're going to want to copy all of the simpledesk language files, and rename the copies to *.german.php

with * being a wild card for the copied simpledesk language file names.
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 15, 2010, 04:02:37 PM
I make from

SimpleDesk-Admin.english.php -> SimpleDesk-Admin.german.php
SimpleDesk-LogAction.english.php - > SimpleDesk-LogAction.german.php

and so on  and start to translate. Thats all
Title: Re: shd_admin_helpdesklog
Post by: Gruffen on April 15, 2010, 04:11:31 PM
Well, making the 5 files will clear up the error in the first instance. Translation is up to you; I don't think we have a German translation in progress at all.
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 15, 2010, 04:27:58 PM
today is my english lost. Sorry you make something? and attach the files? Or?
Title: Re: shd_admin_helpdesklog
Post by: hadesflames on April 15, 2010, 04:30:59 PM
He means that although you will have the errors stop, the text will still appear in english. Currently we do not have a German translator, and so you will need to translate the files yourself if you want the text to appear in German. You can also feel free to apply for a translation position and assist us translate the project into German if you wish =]
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 15, 2010, 04:37:28 PM
I dont understand  :(

I copy the language files to the *.german.php once and than I have this error? Why?

When I delete the german files is the error away?
Title: Re: shd_admin_helpdesklog
Post by: hadesflames on April 15, 2010, 05:10:54 PM
No, the errors should go away after you rename the language files to german.php (for example, SimpleDesk-Admin.english.php, you copy it, then rename the copy to SimpleDesk-Admin.german.php)
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 15, 2010, 05:13:38 PM
sorry but on reply 4 I say this one I do direct. This is all the time what I do first
Title: Re: shd_admin_helpdesklog
Post by: Gruffen on April 15, 2010, 05:15:06 PM
Do you also clear the file cache? (Admin > Maintenance > Empty the file cache)
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 15, 2010, 05:17:33 PM
yes
Title: Re: shd_admin_helpdesklog
Post by: hadesflames on April 15, 2010, 05:22:26 PM
If you clear your error log, and then browse around the area that causes the error, does it show back up?
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 16, 2010, 02:58:26 AM
yes too
Title: Re: shd_admin_helpdesklog
Post by: hadesflames on April 16, 2010, 12:25:21 PM
So what exactly have you done so far to the files?
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 16, 2010, 01:27:57 PM
what you mean with your question? Please note my english is not super perfect.. and when I translate your sentence... it looks crazy to me  :-X
Title: Re: shd_admin_helpdesklog
Post by: hadesflames on April 16, 2010, 02:04:01 PM
/me is going to try to use google translate to see if we can communicate easier in German using it =/

English:
Have you tried changing the word "english" in all of the simple desk language file names to "german"?

German:
Haben Sie versucht, wechselt das Wort "english" in allen von der Simple Desk sprache datei namen zu "german"?
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 16, 2010, 02:51:13 PM
sometimes I use the google translater...ok

in all the language files are only in a comment line is the word "english" so what is to change? and why this makes problem? I never see this in any other mod.

Or you can show me the word english in any langauage file? maybe I am blind  :(



Title: Re: shd_admin_helpdesklog
Post by: hadesflames on April 16, 2010, 04:33:26 PM
It's the name. The file is usually named something like file.english.php you need to change the word "english" in the NAME of all of the simpledesk language files so that it looks like file.german.php
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 16, 2010, 04:39:06 PM
ok, but you read my reply 4 and 8? then you see, that all the Simple Desk language files are like this:

SimpleDesk-Admin.english.php
SimpleDesk-Admin.german.php
SimpleDesk-LogAction.english.php
SimpleDesk-LogAction.german.php

and so on 5 files in englisch, 5 in german
Title: Re: shd_admin_helpdesklog
Post by: flapjack on April 16, 2010, 04:59:22 PM
arent you using utf-8 encoding by any chance?
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 16, 2010, 05:10:03 PM
I use UTF-8 this is what you mean?
Title: Re: shd_admin_helpdesklog
Post by: Gruffen on April 16, 2010, 05:16:10 PM
In which case the files have to be *.german-utf8.php not *.german.php
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 16, 2010, 05:19:52 PM
ok, I change and test

thanks and a nice evening. By the way you stay in which place?
Title: Re: shd_admin_helpdesklog
Post by: hadesflames on April 16, 2010, 06:23:05 PM
Quote from: profdrdenis on April 16, 2010, 05:19:52 PM
By the way you stay in which place?

What do you mean?
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 17, 2010, 02:54:32 AM
you live where

ok, back to the topic. I change and after I dont have any german language. Its not working.

Can you tell me something about the background from the shd_admin_helpdesklog?
Title: Re: shd_admin_helpdesklog
Post by: hadesflames on April 17, 2010, 12:32:14 PM
In the US

So you changed it to *.german-utf8.php and it didn't work?
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 17, 2010, 12:35:29 PM
yes.

I cant cancel this in the Admin.php? and than its finish. Or?
Title: Re: shd_admin_helpdesklog
Post by: ccbtimewiz on April 17, 2010, 01:31:27 PM
Let me get this straight.

You have a language pack installed on your forum, and that language pack is German.

Now, it is German UTF8 correct? In default/languages you will have a lot of files that have the language filename. Such as admin.german-utf8.php. In order for SD to be translated, make sure all the english files that SD added are their [file].german-utf8.php countpart (translated, obviously).

The undefined index issue is because your translated file does not have that string for whatever reason. Make sure you have the official german translation pack, and that it is up-to-date.
Title: Re: shd_admin_helpdesklog
Post by: hadesflames on April 17, 2010, 01:33:18 PM
and you cleared the file cache once more after changing the files to *.german-utf8.php right?
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 17, 2010, 01:49:34 PM
I have UTF-8, see please the attach file and all my language files are *.german.php. This is working with all my mods! and with SD. But SD is to sensitive and so I have this error

When I change all the SD files to *.german-utf8.php SD dont work with them.

With this background what is todo?
Title: Re: shd_admin_helpdesklog
Post by: hadesflames on April 17, 2010, 03:21:44 PM
this is quite odd...all your german files should be utf8. After renaming your files to german.php, did you clear your file cache in Admin > Maintenance > Forum Maintenance

under "Empty the file cache" click run task. Then empty your error log.
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 17, 2010, 03:31:06 PM
cache is empty, error log too but the error is there....
Title: Re: shd_admin_helpdesklog
Post by: Gruffen on April 26, 2010, 09:30:39 PM
I'm guessing that since profdrdenis isn't using SD any more by his own admission that this can be solved?
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 27, 2010, 05:04:46 AM
I am using SD.

sorry, but I dont see here any help and I hear that SD is for Core... but Core is not everything  8) A good program is building for Core and other themes. But this is another topic
Title: Re: shd_admin_helpdesklog
Post by: Gruffen on April 27, 2010, 05:44:45 AM
You told me you weren't using SD because of a design decision I made about moved tickets.


SimpleDesk isn't actually that sensitive, and I actually made it even stronger in builds after 1.0 final, by rewriting how language files are loaded by SimpleDesk.

I'd say your setup is actually messed up because it's reporting that it's running UTF-8 when it clearly isn't.
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 27, 2010, 06:10:09 AM
We use SD.

But we dont use the option to move the ticket. This cuts threads!

We install SMF over 20 times and test and test... all the 35 mods are ok and running, no stress with the language. This is only SD.

Look like this: 35 mods like the install style and they are ok with us  ;D ;D ... only SD makes stress.

My wish is/was that you help, help with SD and not with my install style. My questions was:
Quote from: profdrdenis on April 17, 2010, 12:35:29 PM
I cant cancel this in the Admin.php? and than its finish. Or?

means:

//   'helpdesklog' => array($txt['shd_admin_helpdesklog'], 'admin_forum', 'enabled' => $modSettings['helpdesk_active'], 'url' => $scripturl . '?action=admin;area=helpdesk_actionlog'),
Title: Re: shd_admin_helpdesklog
Post by: Gruffen on April 27, 2010, 06:25:22 AM
So... from
Quote from: profdrdenis on April 18, 2010, 12:26:46 PM
everything is going..

But its ok. For me we can close this topic. I dont use this. Thanks for listening

You're just telling me you don't use that option, OK that's fine. In the SVN build we also provided an option to actually forcibly disable it entirely.


So, what exactly do you want to do with Admin.php?

There are two places the action log is linked, plus there is an option to disable the action log from actually logging. You tell me what you're trying to do, I'll probably tell you how to do it (since I'm not really supposed to provide support, since every time I answer a support post, I'm not doing what my badge says I should be ;))
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 27, 2010, 07:34:47 AM
Quote from: Arantor on April 27, 2010, 06:25:22 AM
..since every time I answer a support post, I'm not doing what my badge says I should be ;))

sorry, build a 100% perfect programm and I am shure you dont loose any time in support  ;D

My question: to remove this, is this ok?

'helpdesklog' => array($txt['shd_admin_helpdesklog'], 'admin_forum', 'enabled' => $modSettings['helpdesk_active'], 'url' => $scripturl . '?action=admin;area=helpdesk_actionlog'),
Title: Re: shd_admin_helpdesklog
Post by: Gruffen on April 27, 2010, 07:38:48 AM
Great, thanks for reminding me that I build bad software.

All that does is remove the link from the Logs menu, nothing more. If you're happy with just removing it from the logs menu it's safe to remove.
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 27, 2010, 07:44:06 AM
Quote from: Arantor on April 27, 2010, 07:38:48 AM
Great, thanks for reminding me that I build bad software.

I not say that  :o I only show you a way out.. for to loose time.

QuoteAll that does is remove the link from the Logs menu, nothing more. If you're happy with just removing it from the logs menu it's safe to remove.

remove the link? this is complete away:

8: Undefined index: shd_admin_helpdesklog
Filter hinzufügen: Nur Fehler von dieser Datei zeigen
Datei: /Sources/Admin.php
Zeile: 611


thanks and now I wait for the next update  8)

Title: Re: shd_admin_helpdesklog
Post by: Gruffen on April 27, 2010, 07:53:25 AM
Quote from: profdrdenis on April 27, 2010, 07:34:47 AM
Quote from: Arantor on April 27, 2010, 06:25:22 AM
..since every time I answer a support post, I'm not doing what my badge says I should be ;))

sorry, build a 100% perfect programm and I am shure you dont loose any time in support  ;D

That says to me SimpleDesk is far far from perfect. I know that, I just don't like being reminded at how often I've messed things up, since probably 75% of the bugs in SimpleDesk were my fault.


That string is simply just the text for the link in the admin menu, nothing more. Direct from SimpleDesk-Admin.english.php:
$txt['shd_admin_helpdesklog'] = 'Helpdesk Log';
Title: Re: shd_admin_helpdesklog
Post by: profdrdenis on April 27, 2010, 09:07:41 AM
You must also see the smileys.. relax SD is great... I am joking

Thanks for everything
Title: Re: shd_admin_helpdesklog
Post by: Gruffen on April 27, 2010, 09:15:21 AM
Just a word of advice: don't imply that something someone has put hundreds (or, by now, into the thousands) of hours into is crappy, even as a joke, because all it does is irritate them.
Title: Re: shd_admin_helpdesklog
Post by: MultiformeIngegno on April 27, 2010, 10:10:14 AM
Arantor you have too many patience!!