Undefined Index errors in relation to language packages

Started by marcnyc, May 13, 2004, 05:41:02 PM

Previous topic - Next topic

marcnyc

Hello, I upgraded from YaBB SE 1.5.5 to the latest SMF 1.0 Beta 5 Public and I am getting all these Undefined Index errors (modSettings_title, previous_next_back, previous_next_forward, aim_default_message etc)... The Admin page of the forum says that if I am getting error messages about undefined indexes my language files are old. I tried to check their versions and made sure there are no duplicates in the theme's directory (I don't really see how there could be) and I see some red question marks (next to Default Theme and Current Theme) and some red lettering (next to Language File) yet if I click on them they say that the version is 1.0 Beta 4.1 Public, which indeed IS the latest available package for the language I installed (italian). So I would like to understand if this error is due to the fact that there is no Beta 5 of the italian package yet or if it is due to something else, and if yes what, since I have the latest one... Thanks.

Owdy

If you installed beta5p you need lang pack with same version number. Previous versions wont work, you get those errors. There are italian version for beta5p ;)
http://www.simplemachines.org/download.php#lang
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

marcnyc

Strange, I had already downloaded the italian language pack from that page and it didn't do the trick the first time and it did the second time... I have different problems now, though...

On the log in page I now get:

Parse error: parse error, unexpected T_STRING in /home/virtual/site371/fst/var/www/html/gull/Themes/default/languages/Login.italian.php on line 59

Notice: Undefined offset: 633 in /home/virtual/site371/fst/var/www/html/gull/Themes/default/Login.template.php on line 73   

Notice: Undefined offset: 634 in /home/virtual/site371/fst/var/www/html/gull/Themes/default/Login.template.php on line 79

Notice: Undefined offset: 635 in /home/virtual/site371/fst/var/www/html/gull/Themes/default/Login.template.php on line 80
Notice: Undefined offset: 636 in /home/virtual/site371/fst/var/www/html/gull/Themes/default/Login.template.php on line 80
Notice: Undefined offset: 637 in /home/virtual/site371/fst/var/www/html/gull/Themes/default/Login.template.php on line 80

plus if I go to the Languge version check in the ADMIN section I still get the red lettering I explained in the first post and I get these errors:

Notice: Undefined offset: 429 in /home/virtual/site371/fst/var/www/html/gull/Sources/Admin.php on line 886

Notice: Undefined offset: 429 in /home/virtual/site371/fst/var/www/html/gull/Themes/default/Admin.template.php on line 331

Any ideas? I am lost. I also tried re-running the upgrade.php file but it didn't change anything...

In case you wanna see the forum it's at http://www.marc-us.com/gull

Oldiesmann

Looks like someone forgot to escape a ' someplace:

Quote$txt['admin_register_email_desc'] = 'Indirizzo Email dell' Utente<br />(richiesto se decidi di inviare i dettagli)';

Should probably be
Quote$txt['admin_register_email_desc'] = 'Indirizzo Email dell\' Utente<br />(richiesto se decidi di inviare i dettagli)';
Michael Eshom
Christian Metal Fans

marcnyc

Thanks, that worked. I hope somebody can update that italian language pack.
Now only the other problem remains unsolved:
if I go to the Languge version check in the ADMIN section I still get the red lettering I explained in the first post and I get these errors:

Notice: Undefined offset: 429 in /home/virtual/site371/fst/var/www/html/gull/Sources/Admin.php on line 886

Notice: Undefined offset: 429 in /home/virtual/site371/fst/var/www/html/gull/Themes/default/Admin.template.php on line 331

Any ideas?
Also any ideas why after putting in the new 1.5beta italian language pack I still get RED lettering in the Admin/Language section as if it was a wrong or unknown (??) version?

Oldiesmann

Make sure $txt[429] exists - based on what you've said it's probably in Admin.italian.php.
Michael Eshom
Christian Metal Fans

[Unknown]

Sounds like there are some errors in the Italian translation... hmm...

Has someone contacted Bostasp or the Italian translator(s)?

-[Unknown]

marcnyc

You were right, $txt[429] was missing and since I speak italian I took the liberty to add it. For those who experience the same problem you can add:
$txt[429] = 'Detailed Version Check';
I wish I could add an attachment to this post, then I could add the two files I have fixed to avoid all these errors.

Now the only thing that is still unclear to me is if I have to worry about those red letters and question marks in the detailed version check.
Can somebody tell me?

[Unknown]


marcnyc

Ok, thanks for letting me know... and what about where it still says 1.0 Beta 5 Public in red and under which it still says 1.0 Beta 4.1 Public in red even though I installed the upgraded package?

marcnyc

I also keep having other problems. If I click on the Modify Settings page in the Admin section I get lots of errors and no description next to the settings...
These are the errors:

Parse error: parse error, unexpected T_STRING in /home/virtual/site371/fst/var/www/html/gull/Themes/default/languages/ModSettings.italian.php on line 12

Notice: Undefined index: smf235 in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 180
Notice: Undefined index: smf236 in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 180
Notice: Undefined index: smf236 in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 180
Notice: Undefined index: smf111 in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 235
Notice: Undefined index: smf64 in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 250
Notice: Undefined index: mods_cat_expand_all in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 308
Notice: Undefined index: smf3 in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 311
Notice: Undefined index: pollMode in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: enableStickyTopics in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: allow_guestAccess in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: userLanguage in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: allow_hideEmail in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: guest_hideEmail in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: titlesEnable in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: default_personalText in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: max_signatureLength in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: removeNestedQuotes in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: enableEmbeddedFlash in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: enablePostHTML in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: enableBBC in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: max_messageLength in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: time_format in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: time_offset in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: spamWaitTime in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: edit_wait_time in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: failed_login_threshold in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: lastActive in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: enableSpellChecking in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: trackStats in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: hitStats in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: enableCompressedOutput in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: disableCaching in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: enableErrorLogging in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cookieTime in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: localCookies in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: globalCookies in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: securityDisable in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: registration_method in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: send_validation_onChange in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: send_welcomeEmail in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: autoOptDatabase in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: autoOptMaxOnline in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: autoFixDatabase in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: notifyAnncmnts_UserDisable in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: modlog_enabled in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: queryless_urls in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: maxwidth in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: maxheight in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: mail_type in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: smtp_host in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: smtp_username in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: smtp_password in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: xmlnews_enable in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: xmlnews_maxlen in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: recycle_enable in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: recycle_board in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: viewNewestFirst in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: compactTopicPagesEnable in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: todayMod in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: simpleSearch in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: topbottomEnable in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: onlineEnable in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: enableVBStyleLogin in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: autoLinkUrls in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: fixLongWords in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: defaultMaxTopics in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: defaultMaxMessages in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: defaultMaxMembers in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: topicSummaryPosts in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: enableAllMessages in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: hotTopicPosts in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: hotTopicVeryPosts in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: enableParticipation in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: enablePreviousNext in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: timeLoadPageEnable in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: disableHostnameLookup in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: who_enabled in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_allow_server_stored in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_directory in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_url in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_allow_external_url in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_max_width_external in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_max_height_external in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_check_size in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_action_too_large in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_allow_upload in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_max_width_upload in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_max_height_upload in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_resize_upload in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: avatar_download_png in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: attachmentEnable in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: attachmentCheckExtensions in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: attachmentExtensions in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: attachmentShowImages in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: attachmentEncryptFilenames in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: attachmentUploadDir in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: attachmentDirSizeLimit in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: attachmentPostLimit in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: attachmentSizeLimit in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: karmaMode in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: karmaMinPosts in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: karmaWaitTime in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: karmaTimeRestrictAdmins in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: karmaLabel in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: karmaApplaudLabel in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: karmaSmiteLabel in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_enabled in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_daysaslink in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_startmonday in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_showweeknum in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_days_for_index in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_showholidaysonindex in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_showbdaysonindex in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_showeventsonindex in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_defaultboard in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_minyear in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_maxyear in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_bdaycolor in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_eventcolor in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_holidaycolor in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_allowspan in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396
Notice: Undefined index: cal_maxspan in /home/virtual/site371/fst/var/www/html/gull/Sources/ModSettings.php on line 396

Owdy

Do you have that problem with english language?
I think those italian files are still corrupted.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

marcnyc

let me check... no I don't have that problem with the english version...

Oldiesmann

In ModSettings.italian.php:

Find
$txt['smf33'] = 'Mostra i sondaggi esistenti come Topics;

Replace
$txt['smf33'] = 'Mostra i sondaggi esistenti come Topics';
Michael Eshom
Christian Metal Fans

marcnyc

Ok that solved that...
I have a question about the directory structure of the /Themes folder:
I have:
/languages (contains all italian files)
/images/italian (contains italian pics)
/default/languages (contains both italian and english files)
/default/images/english (contains english pics)
/default/images/italian (contains italian pics)
/default/help (english help)
/converted (contains only 8 files)

The admin section says:
"Undefined Index!
If you are getting error messages about undefined indexes, like modSettings_title or aim_default_message, your language files are old. Please try a detailed version check, and make sure you do not have an extra set of language files in your current theme's directory."

So I'd like to know if that duplicate set of italian language files is wrong and if yes (I suppose it is useless to have it twice) I'd like to know which one to remove. Thanks

Owdy

Quote from: marcnyc on May 14, 2004, 11:57:59 AM
Ok that solved that...
I have a question about the directory structure of the /Themes folder:
I have:
/languages (contains all italian files)
/images/italian (contains italian pics)
/default/languages (contains both italian and english files)
/default/images/english (contains english pics)
/default/images/italian (contains italian pics)
/default/help (english help)
/converted (contains only 8 files)

So I'd like to know if that duplicate set of italian language files is wrong and if yes (I suppose it is useless to have it twice) I'd like to know which one to remove. Thanks

You can remove these
/languages (contains all italian files)
/images/italian (contains italian pics)

these are right
/default/languages (contains both italian and english files)
/default/images/italian (contains italian pics)

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0


Owdy

NP ;)

You can look right directory structure also from install package.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

jami

the errors in Login.italian.php and ModSettings.italian.php are already solved as described in

http://www.simplemachines.org/community/index.php?topic=11052.0

is necessary an update of the italian language pack for SMF 5p ? ( 2 errors: a missing single quote and a single quote not backslashed )


andrea

The images directories are by default under the theme dir. Maybe that /images comes from a conversion YaBBSE -> SMF?

Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



Advertisement: