Advertisement:

Author Topic: Error: Undefined index: image  (Read 6570 times)

Offline moal

  • Semi-Newbie
  • *
  • Posts: 16
Error: Undefined index: image
« on: May 06, 2014, 07:54:14 AM »
Hi there,

in my error logs keep on getting the following error:

Code: [Select]
http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=hotspot-in-masterrahmen-bild.0&action=post;last_msg=16052
8: Undefined index: image
Filter hinzuf├╝gen: Nur Fehler von dieser Datei zeigen
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=newbie-braucht-hilfestellung.0&action=post;last_msg=16051
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme.0&action=post
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=hotspots-auf-foto-browserdarstellung.0&action=post;last_msg=311
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;action=pm&sa=send;u=11
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/GenericControls.template.php (send sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=newbie-braucht-hilfestellung.0&action=post;msg=16051
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=newbie-braucht-hilfestellung.0&action=post;last_msg=16050
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;action=pm&sa=send;f=inbox;pmsg=5226;u=292
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/GenericControls.template.php (send sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;action=pm&sa=send;f=inbox;pmsg=5226;u=292
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/GenericControls.template.php (send sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;action=post&pretty;board=allgemeine-probleme;topic=newbie-braucht-hilfestellung.0&last_msg=16047
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=newbie-braucht-hilfestellung.0&action=post;last_msg=16047
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;action=pm&sa=send;f=inbox;pmsg=5226;u=292
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/GenericControls.template.php (send sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;action=pm&sa=send;f=inbox;pmsg=5226;u=292
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/GenericControls.template.php (send sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;action=pm&sa=send;f=inbox;pmsg=5225;quote;u=8
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/GenericControls.template.php (send sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=newbie-braucht-hilfestellung.0&action=post;last_msg=16047
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=absturze-von-nof-12.0&action=post;last_msg=16044
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=absturze-von-nof-12.0&action=post;last_msg=16044
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=absturze-von-nof-12.0&action=post;last_msg=16044
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=absturze-von-nof-12.0&action=post;last_msg=16044
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=absturze-von-nof-12.0&action=post;last_msg=16048
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=absturze-von-nof-12.0&action=post;last_msg=16044
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Post.template.php (main sub template - eval?)
Zeile: 127

I use SMF2.0.7 with a customized theme based on Elegant.

The following modifications are installed.
Activity in Profile 1.1    
Auto Refresh Who Index    1.1
Add Table, Td, Tr Button    1.0
cb|GeSHi-mod    1.2
Clone Topic 0.4
Custom Action Mod    3.2
Glossary    0.3.1
Google Translate for SMF 2.0    1.4
Track IP on ip-adress.com 1.0    
Member Color Link    3.1
MetaTags Modification 2.0.2
NoFollow BBCode 1.1
Pretty URLs Extras    1.0
Pretty URLs 1.1.1a
Show BBCode to guests    0.1.7
SimplePortal 2.3.5
SimplePortal - German 2.3.5
Tidy Child Boards 1.4.1
Topic Solved 1.1.1


Please help me, this many errors worry me.

best regards moal

Sorry for my English, I use the goggle translator.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,241
  • Gender: Male
    • Kindred-999 on GitHub
Re: Error: Undefined index: image
« Reply #1 on: May 06, 2014, 08:26:29 AM »
As I explained in the glossary mod thread - the errors should be fixed but are nothing to "worry" about.

Also, you need to turn of eval so you can track down the location of the actual error.
http://wiki.simplemachines.org/smf/SMF2.0:Server_settings
Disable evaluation of templates
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline moal

  • Semi-Newbie
  • *
  • Posts: 16
Re: Error: Undefined index: image
« Reply #2 on: May 06, 2014, 09:08:43 AM »
OK, thanks for your help, now I've evaluation of templates is disabled.
The result is that I now have even more error messages in the error logs.  :o :-[

Offline moal

  • Semi-Newbie
  • *
  • Posts: 16
Re: Error: Undefined index: image
« Reply #3 on: May 06, 2014, 09:31:50 AM »
The majority of the new error caused by an insertion in the index.template.php for Piwik. The insertion I have removed and the error no longer appears. The other two error messages, however, remain ...

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,241
  • Gender: Male
    • Kindred-999 on GitHub
Re: Error: Undefined index: image
« Reply #4 on: May 06, 2014, 09:34:38 AM »
and what are those error messages?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline moal

  • Semi-Newbie
  • *
  • Posts: 16
Re: Error: Undefined index: image
« Reply #5 on: May 06, 2014, 09:56:52 AM »
These are the two new error messages, all the old I had previously deleted.

Code: [Select]
http://www.meine-domain.de/index.php?pretty;board=allgemeine-probleme;topic=absturze-von-nof-12.0&action=post;last_msg=16049
8: Undefined index: image
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/GenericControls.template.php
Zeile: 127

http://www.meine-domain.de/index.php?pretty;action=glossary
8: Undefined index: glossary_change_group_all
Datei: /mnt/web1/a0/01/51373001/htdocs/meine-domain/Themes/default/Glossary.template.php
Zeile: 321

Offline moal

  • Semi-Newbie
  • *
  • Posts: 16
Re: Error: Undefined index: image
« Reply #6 on: May 06, 2014, 12:47:22 PM »
I have a suspicion.
The bbc icon for glossary-mod is in the folder images/bbc/ is, but not found. I make a right click on the missing icon and select display graphic, then I do not see at the url that after "glossary.gif" is wanted, but after ".gif"
Could it be that the image error related to it? Where can I find the point of order .gif to make glossary.gif?

kat

  • Guest
Re: Error: Undefined index: image
« Reply #7 on: May 06, 2014, 01:22:41 PM »

Offline moal

  • Semi-Newbie
  • *
  • Posts: 16
Re: Error: Undefined index: image
« Reply #8 on: May 06, 2014, 01:59:00 PM »
Yes, I have installed both mods. In my first post I posted a list of installed mods.


kat

  • Guest
Re: Error: Undefined index: image
« Reply #9 on: May 06, 2014, 02:03:14 PM »
Sorry. DUR!

I have a feeling that the PrettyURLs mod is screwing everything. I have to confess that I wouldn't install that mod, on my forum, if someone paid me to.

If you disable it, do the errors vanish?

If not, I suspect that the Glossary mod didn't install correctly.

Offline moal

  • Semi-Newbie
  • *
  • Posts: 16
Re: Error: Undefined index: image
« Reply #10 on: May 06, 2014, 02:06:10 PM »
But the "problem" with the .gif stepped on without PrettyUrls. I have been doing just thought nothing of me and have the graphics glossary.gif easy .gif renamed so that it is found.

I have to confess that I wouldn't install that mod, on my forum, if someone paid me to.
Ups... Is there an alternative?

kat

  • Guest
Re: Error: Undefined index: image
« Reply #11 on: May 06, 2014, 02:13:47 PM »
Well, any mod that screws with URLs is gonna be risky and, for the gain you get, I wouldn't judge it to be worth the effort, myself. That's just my opinion. Though, others seem to agree with me, on that. :)

That first error isn't saying that an image is missing. it's telling you that an index, in the database, named "image" doesn't exist. It also seems to be saying that "Pretty" is screwing it... :(

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,824
Re: Error: Undefined index: image
« Reply #12 on: May 06, 2014, 02:20:21 PM »
That first error isn't saying that an image is missing. it's telling you that an index, in the database, named "image" doesn't exist. It also seems to be saying that "Pretty" is screwing it... :(

just because it says index does not mean it is in the database. it is a php error related to a mod the user has installed. if it was a database error it would be in a different format.

Offline moal

  • Semi-Newbie
  • *
  • Posts: 16
Re: Error: Undefined index: image
« Reply #13 on: May 06, 2014, 02:23:04 PM »
OK, when I uninstall prettyurls what happens to the links which are already listed on Google? Are then all dead links?

kat

  • Guest
Re: Error: Undefined index: image
« Reply #14 on: May 06, 2014, 02:45:24 PM »
I'll leave this to Illori, as she's taken over. :)

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,824
Re: Error: Undefined index: image
« Reply #15 on: May 06, 2014, 02:47:08 PM »
I'll leave this to Illori, as she's taken over. :)

i dont know the exact cause of the issue... just it is not a database error as you said.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,241
  • Gender: Male
    • Kindred-999 on GitHub
Re: Error: Undefined index: image
« Reply #16 on: May 06, 2014, 02:56:59 PM »
the undefined index is not referring to a database index...   it's referring to an undefined variable/index.


so $context['image'] -- if that is not defined, then you would see -- "undefined index: image"

moal,

look at the code
GenericControls.template.php    Zeile: 127
copy lines 115-135 and paste into a post.

Same with the glossary template file, for the lines around 321



From the actual error messages, now that the eval is gone, I do indeed suspect prettyURLs.   There should be a warning that it does not play nicely with MANY other mods.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline moal

  • Semi-Newbie
  • *
  • Posts: 16
Re: Error: Undefined index: image
« Reply #17 on: May 06, 2014, 03:15:47 PM »
GenericControls.template.php   
lines 115-135

Quote
                        foreach ($context['bbc_tags'] as $i => $buttonRow)
                        {
                                echo '
                                                [';
                                foreach ($buttonRow as $tag)
                                {
                                        // Is there a "before" part for this bbc button? If not, it can't be a button!!
                                        if (isset($tag['before']))
                                                echo '
                                                        {
                                                                sType: \'button\',
                                                                bEnabled: ', empty($context['disabled_tags'][$tag['code']]) ? 'true' : 'false', ',
                                                                sImage: ', JavaScriptEscape($settings['images_url'] . '/bbc/' . $tag['image'] . '.gif'), ',
                                                                sCode: ', JavaScriptEscape($tag['code']), ',
                                                                sBefore: ', JavaScriptEscape($tag['before']), ',
                                                                sAfter: ', isset($tag['after']) ? JavaScriptEscape($tag['after']) : 'null', ',
                                                                sDescription: ', JavaScriptEscape($tag['description']), '
                                                        }', empty($tag['isLast']) ? ',' : '';

                                        // Must be a divider then.
                                        else


Glossary.template.php
lines 315-332

Quote
        //CHANGE GROUP SELECTION DIV
        echo '
        <div id="div_change_group_all" style="display:none;">
            <a href="#" title="Close" class="modalCloseX simplemodal-close">x</a>
            <div class="header"><span>'.$txt['glossary_action'].'</span></div>
            <div class="ModalContent">
                <label for="">'.$txt['glossary_change_group_all'].'</label>
                <select name="change_group_to_id" id="change_group_to_id">
                    <option value="none">'.$txt['glossary_group_none'].' : </option>';
                foreach ( $context['glossary_groups'] as $id=>$title)
                    echo '<option value="'.$id.'">'.$title.'</option>';
                echo '</select>
            </div>
            <div class="buttons">
                <div onclick="JQ.modal.close();">'.$txt['glossary_new_word_close'].'</div>
                <div onclick="ChangeGroupAll()">'.$txt['glossary_go_on'].'</div>
            </div>
        </div>';

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,241
  • Gender: Male
    • Kindred-999 on GitHub
Re: Error: Undefined index: image
« Reply #18 on: May 06, 2014, 06:56:29 PM »
well, the glossary one is simple
$txt['glossary_change_group_all']

go into glosssary.english.php and define
$txt['glossary_change_group_all']


it looks like both of them are choking in the middle of a javascript function, because of the silly prettyurls mod
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline moal

  • Semi-Newbie
  • *
  • Posts: 16
Re: Error: Undefined index: image
« Reply #19 on: May 07, 2014, 08:25:26 AM »
Thank you, that has eliminated the first error.  :)

I had already written , I have the bbc icon of glossary-mod in suspicion . SMF has always wanted here for a file with the name ".gif" . Should in fact for "glossary.gif " 'm wanted . So it would be correct.
So here are image no name is used, which would be consistent with the error message. The error will never be displayed whenever someone calls a thread , but always is when action = post in the url. So if the bbc icons are displayed.

So I've been looking for subs.editor.php and found this line :
Code: [Select]
' glossary ' = > array ( 'code' = > ' glossary ', ' before' = > ' [ glossary] ', ' after' = > ' [/ glossary] ', ' description' = > $ txt [' bbc_glossary ' ] ) ,
I have now changed so the line:
Code: [Select]
' glossary ' = > array ( 'image' = > ' glossary ', 'code' = > ' glossary ', ' before' = > ' [ glossary] ', ' after' = > ' [/ glossary] ' , 'description '= > $ txt [' bbc_glossary ']) ,
Now the file is displayed glossary.gif and in the error log , there are no new image error more .
The problem with the gif incidentally, there were already , as the pretty-mod was not installed.

best regards moal