News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Error Log: Undefined index [help to fix this]

Started by Costa, August 08, 2009, 09:09:28 PM

Previous topic - Next topic

Costa

Hello folks

In my error log i have many errors like this

8: Undefined index: chat
File: /home/infodz/public_html/in4tek/Sources/Subs.php
Line: 3884

I'll try, but i don't see the error (maybe i need glasses :P)

The line 3884 is the nex red one

         
   $num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
   $chatButton = $txt['chat'];
   $chatButton .= ($num > 0) ?  ('('.$num.')') : '';
   $chatLink = str_replace("index.php", "chat/index.php", $scripturl);
   if (!empty($modSettings['chatPopUp']))
      $chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';


   $cacheTime = $modSettings['lastActive'] * 60;


Can someone help me fix this?

Thank's for the answers :)

Farewell
-Costa
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

JBlaze

Are you using another language? Or even UTF-8?

Make sure the language edits were made properly.
Jason Clemons
Former Team Member 2009 - 2012

Costa

portuguese non utf8
and yes, the languages are right
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Costa

Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Arantor

The error is saying that modifications where not applied to your language.

In the mod pack there will have been instructions to modify Modifications.english.php, the same modifications need to be added to Modifications.portuguese.php (I think that's the file, anyway, but it should be clear in your languages directory), and translated to Portuguese.
Holder of controversial views, all of which my own.


Costa

Ups...

a missing "a" letter on modifications.portuguese.php
$txt['cht'] = 'Chat'; :P :P :P :P :P :P

Thanks guys!

Topic Solved for me :)
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Advertisement: