News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Error: Undefined index: image

Started by moal, May 06, 2014, 07:54:14 AM

Previous topic - Next topic

moal

Hi there,

in my error logs keep on getting the following error:

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 [nofollow] 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.

Kindred

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
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

moal

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 :-[

moal

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 ...

Kindred

and what are those error messages?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

moal

These are the two new error messages, all the old I had previously deleted.

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

moal

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?


moal

Yes, I have installed both mods. In my first post I posted a list of installed mods.


kat

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.

moal

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.

Quote from: K@ on May 06, 2014, 02:03:14 PM
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

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... :(

Illori

Quote from: K@ on May 06, 2014, 02:13:47 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.

moal

OK, when I uninstall prettyurls what happens to the links which are already listed on Google? Are then all dead links?

kat

I'll leave this to Illori, as she's taken over. :)

Illori

Quote from: K@ on May 06, 2014, 02:45:24 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.

Kindred

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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

moal

GenericControls.template.php   
lines 115-135

Quoteforeach ($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>';

Kindred

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
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

moal

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 :
' glossary ' = > array ( 'code' = > ' glossary ', ' before' = > ' [ glossary] ', ' after' = > ' [/ glossary] ', ' description' = > $ txt [' bbc_glossary ' ] ) ,

I have now changed so the line:
' 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

Advertisement: