I'm having a lot of errors in my log

Started by tonnybarros, March 17, 2010, 07:47:49 PM

Previous topic - Next topic

tonnybarros

I'm having a lot of errors in my log, all the same but different links. In the folowing is more than 15 in one day was 77000.



8: Undefined index: active_button
Ficheiro: /home/xxxxx/public_html/forum/Themes/default/Display.template.php (body_above sub template - eval?)
Linha: 583

8: Undefined index: active_button
Ficheiro:   /home/xxxxxx/public_html/forum/Themes/default/Login.template.php   (body_above sub template - eval?)
Linha: 583

8: Undefined index: active_button
Ficheiro:   /home/xxxxx/public_html/forum/Themes/default/index.template.php   (body_above sub template - eval?)
Linha: 583

tonnybarros

I think I found the problem, I put a custom button, and now I took after I took the errors stopped. Here's the code:

    'categoria' => array(
                'title' => 'Categorias',
                'href' => $scripturl . '',
                'show' => true,
                'sub_buttons' => array(
      'ajuda-tecnica' => array(
            'title' => 'Reparação Geral',
                      'href' => $scripturl . '?board=21.0',
                      'show' => true,
      'sub_buttons' => array(
              'Nova-Mensagem' => array(
      'title' => 'Escrever nova mensagem',
                          'href' => $scripturl . '?action=form;id=1',
                          'show' => true,
                   ),
                   ),
   ),
      'lcd-plasma-ledtv' => array(
  'title' => 'LCD, Plasma e LEDTV',
                      'href' => $scripturl . '?board=47.0',
                      'show' => true,
    'sub_buttons' => array(
              'Nova-Mensagem' => array(
      'title' => 'Escrever nova mensagem',
                          'href' => $scripturl . '?action=form;id=5',
                          'show' => true,
                   ),
   ),
                   ),
      'off-topico' => array(
  'title' => 'Encontro da Galera',
                      'href' => $scripturl . '?board=11.0',
                      'show' => true,
    'sub_buttons' => array(
              'Nova-Mensagem' => array(
      'title' => 'Escrever nova mensagem',
                          'href' => $scripturl . '?action=post;board=11.0',
                          'show' => true,
                   ),
   ),
                   ),
      'resolvidos' => array(
  'title' => 'Defeitos Resolvidos',
                      'href' => $scripturl . '?board=2.0',
                      'show' => true,
    'sub_buttons' => array(
              'Nova-Mensagem' => array(
      'title' => 'Colocar Resolvido',
                          'href' => $scripturl . '?action=post;board=2.0',
                          'show' => true,
                   ),
   ),
                   ),
      'esquemas' => array(
  'title' => 'Pedidos de Esquemas',
                      'href' => $scripturl . '?board=12.0',
                      'show' => true,
    'sub_buttons' => array(
              'Nova-Mensagem' => array(
      'title' => 'Disco Tectonny',
                          'href' => $scripturl . '?action=page;sa=esquema',
                          'show' => true,
                   ),
   ),
                   ),
      'suporte' => array(
  'title' => 'Suporte do Fórum',
                      'href' => $scripturl . '?board=7.0',
                      'show' => true,
    'sub_buttons' => array(
              'Nova-Mensagem' => array(
      'title' => 'Solicitar suporte',
                          'href' => $scripturl . '?action=post;board=7.0',
                          'show' => true,
                   ),
   ),
                   ),
      'informatica' => array(
  'title' => 'Informática',
                      'href' => $scripturl . '?board=17.0',
                      'show' => true,
    'sub_buttons' => array(
              'Nova-Mensagem' => array(
      'title' => 'Escrever nova mensagem',
                          'href' => $scripturl . '?action=post;board=17.0',
                          'show' => true,
                   ),
   ),
                   ),
      'video-game' => array(
  'title' => 'Videos Games',
                      'href' => $scripturl . '?board=3.0',
                      'show' => true,
    'sub_buttons' => array(
              'Nova-Mensagem' => array(
      'title' => 'Escrever nova mensagem',
                          'href' => $scripturl . '?action=post;board=3.0',
                          'show' => true,
                   ),
   ),
                   ),
      'Moderadores' => array(
  'title' => 'Moderadores',
                      'href' => $scripturl . '?board=26.0',
                      'show' => true,
    'sub_buttons' => array(
              'Nova-Mensagem' => array(
      'title' => 'Escrever nova mensagem',
                          'href' => $scripturl . '?action=post;board=26.0',
                          'show' => true,
                   ),
   ),
                   ),

      'senha' => array(
  'title' => 'Recuperar Senha',
                      'href' => $scripturl . '?action=reminder',
                      'show' => true,
    'sub_buttons' => array(
              'Nova-Mensagem' => array(
      'title' => 'Registre-se',
                          'href' => $scripturl . '?action=register',
                          'show' => true,
                   ),
   ),
                   ),
      'grupo' => array(
  'title' => 'Escolher Grupo',
                      'href' => $scripturl . '?action=profile;area=groupmembership;u=',
                      'show' => true,
    'sub_buttons' => array(
              'Nova-Mensagem' => array(
      'title' => 'Estatísticas Gerais',
                          'href' => $scripturl . '?action=stats',
                          'show' => true,
                   ),
   ),
                   ),

               ),
            ),


Kill Em All

Please do not bump your topic less than 24 hrs old, instead edit.

If you have phpmyadmin:
Run This query In phpMyAdmin (What is phpMyAdmin?)
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);

Then tell us what errors you are getting. Eval is hiding the file where it is coming from.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

tonnybarros

Ok excuse the repetition.

The error, ran the command in mysql and errors remain the same. See ai


http://www.tectonny.com/forum/index.php?pretty;board=sony;topic=medir-a-bobina-do-slim-por-cima!.0
8: Undefined index: active_button
Ficheiro: /home/xxxxxx/public_html/forum/Themes/default/index.template.php
Linha: 583


This ai is one of the many that appears when you put the code on my buttons Subs.php

And if you can tell the command to enable new in mysql

Kill Em All

Is that everything in your error log now? There were other errors leading to the Display.template and login.template.php. What mods do you have installed?


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

tonnybarros

1.     SMF Archive     2.0     [ Desinstalar ]
2.    Online Only Groups in the Group Key    1.0    [ Desinstalar ]
3.    Aeva Media    1.1a    [ Desinstalar ]
4.    Team Page    3.5.4    [ Desinstalar ]
5.    BoardHover Mod    1.6.0    [ Desinstalar ]
6.    Display Name On Registration    2.0    [ Desinstalar ]
7.    OS & Browser Detection    1.4    [ Desinstalar ]
8.    Custom Form Mod    1.6    [ Desinstalar ]
9.    Advanced Contact Form    1.1    [ Desinstalar ]
10.    eNinja - Custom Pages    1.0.12    [ Desinstalar ]
11.    Topic Solved    1.1    [ Desinstalar ]
12.    Highslide Image Viewer    1.6    [ Desinstalar ]
13.    PM to New Members    1.2    [ Desinstalar ]
14.    Look But No Read    1.3    [ Desinstalar ]
15.    EmailValidator    1.0    [ Desinstalar ]
16.    Member Color Link    3.0.8    [ Desinstalar ]
17.    Users Online Today    1.5.6    [ Desinstalar ]
18.    Pretty URLs    1.0    [ Desinstalar ]
19.    Global Headers Footers    2.0    [ Desinstalar ]
20.    Ad Managment    2.3.6.1    [ Desinstalar ]


Recalling that the errors only happen when I put my buttons in Subs.php

Kill Em All

Are you sure you were putting in the buttons correctly?

Take a look here as it might help:
http://www.simplemachines.org/community/index.php?topic=360100.0


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

tonnybarros

My buttons are right on Subs.php do not know if the correct, but I did to work.

Kill Em All

What version of SMF are you using? And what theme are you using? If you don't mind, can you please attach your Subs.php to.

Thanks


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

tonnybarros

Hello, the version is RC3 and the theme is the Curve. Follows Subs.php


Kill Em All

Your Subs look fine, so back to the file that is giving you the error, can you please attach now your index.template.php.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.


Kill Em All

Try this one.

This might be a problem with the PrettyURLs mod to. If this index.template.php doesn't work, I would probably suggest downloading the latest version of that mod, uninstalling and deleting the old one and uploading the newest. If that doesn't work, contact the mod author.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

tonnybarros

But I already use the latest version.

tonnybarros

Same thing, what is strange is if I take my buttons Subs.php files, the errors stop, Is that why my buttons have sub-button?

Kill Em All

#16
Uh, I'm looking at your Subs.php some more and its a little off as far as the coding aspect of your buttons.

For example in your Category menu, it should have a similar look to this:

         'menu1' => array(
            'title' => 'Menu 1',
            'href' => $scripturl,
            'show' => true,
            'sub_buttons' => array(
               'sub_menu1' => array(
                  'title' => 'Sub Menu 1',
                  'href' => $scripturl,
                  'show' => true,
               ),
               'sub_menu2' => array(
                  'title' => 'Sub Menu 2',
                  'href' => $scripturl,
                  'show' => true,
               ),
               'sub_menu3' => array(
                  'title' => 'Sub Menu 3',
                  'href' => $scripturl,
                  'show' => true,
               ),
            ),
         ),

Give me a little bit so I can make some changes to it for you.

edit, added file


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

tonnybarros


Kill Em All



My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

tonnybarros

Error

Parse error: syntax error, unexpected ';', expecting ')' in /home/xxxxxxx/public_html/forum/Sources/Subs.php  on line 4383

Advertisement: