Author Topic: Warnings im Control Panel  (Read 4194 times)

0 Members and 1 Guest are viewing this topic.

Offline bernd

  • Full Member
  • ***
  • Posts: 214
    • View Profile
Warnings im Control Panel
« on: November 27, 2002, 02:54:18 AM »
und zwar bei "Allgemein > Einstellungen". Ich muß gestehen, daß ich dort schon länger nicht mehr reingeschaut habe (und auch nicht 100%ig sagen kann, ob seit dem Update auf 1.7 überhaupt). Jedenfalls bekomme ich beim Klick auf oben genanntes an zwei Stellen Warnings:

Code: [Select]
Warning: Invalid argument supplied for foreach() in /home/www/web675/html/hh/admin/settings.php on line 125

Und
Code: [Select]
Warning: Invalid argument supplied for foreach() in /home/www/web675/html/hh/admin/settings.php on line 136

Line 125 ist die foreach hier
Code: [Select]
function show_auto_thumbnail_resize_type_options($setting_name, $setting_value) {
  global $auto_thumbnail_resize_type_optionlist;
  foreach ($auto_thumbnail_resize_type_optionlist as $key => $val) {
    echo "<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if ($setting_value == $key) {
      echo " checked=\"checked\"";
    }
    echo "> ".$val."<br />";
  }
}


Line 136 diese foreach
Code: [Select]
function show_account_activation_options($setting_name, $setting_value) {
  global $account_activation_optionlist;
  foreach ($account_activation_optionlist as $key => $val) {
    echo "<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if ($setting_value == $key) {
      echo " checked=\"checked\"";
    }
    echo "> ".$val."<br />";
  }
}


Ist irgendwie nichts wirklich tragisches - es funktioniert alles (auch User activation), aber irgendwie 'n ungutes Gefühl :-) . Hat jemand von Euch evtl. dasselbe Problem und vielleicht sogar 'ne Lösung?

Danke und cheers,
Bernd

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Warnings im Control Panel
« Reply #1 on: November 27, 2002, 08:44:57 AM »
Du hast die Sprachdateien nicht aktualisiert.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline bernd

  • Full Member
  • ***
  • Posts: 214
    • View Profile
Warnings im Control Panel
« Reply #2 on: November 27, 2002, 12:56:30 PM »
dooh  :oops:

hab aber beim Aktualisieren eben noch einen Mini-Bug in der main.php in lang/deutsch gefunden. Zeile 157

Quote
$lang['register_success_none'] = "Ihre Registrierung war erfolgreich. Sie können Sie nun einloggen.";


cheers,
Bernd

Offline echoleigh

  • Pre-Newbie
  • Posts: 5
    • View Profile
    • http://www.echoleigh.com
Warnings im Control Panel
« Reply #3 on: March 27, 2003, 10:32:13 PM »
I'm getting this same error, but I don't speak German. What is 'Sprachdateien' and how do I change it?

Sorry, dumb American here.  :wink: