EllisLab text mark
Advanced Search
     
Undefined Index error
Posted: 18 July 2007 07:07 AM   [ Ignore ]
Avatar
Joined: 2006-10-17
62 posts

Hi all,

I recently updated a EE installation to the new 1.6.0 without any problems, except this one:

NoticeUndefined indexblog_name in /home/username/public_html/system/modules/weblog/mod.weblog.php on line 2959

Notice
Undefined indexphoto_width in /home/username/public_html/d2cp/modules/weblog/mod.weblog.php on line 2962

Notice
Undefined indexphoto_height in /home/username/public_html/system/modules/weblog/mod.weblog.php on line 2963

Notice
Undefined indexavatar_width in /home/username/public_html/system/modules/weblog/mod.weblog.php on line 2965

Notice
Undefined indexavatar_height in /home/username/public_html/system/modules/weblog/mod.weblog.php on line 2966

Notice
Undefined indexsig_img_width in /home/username/public_html/system/modules/weblog/mod.weblog.php on line 2968

Notice
Undefined indexsig_img_height in /home/username/public_html/system/modules/weblog/mod.weblog.php on line 2969 

It is only happening to logged-in users and only with the keywords plugin. I have read most of topics about this problem, but I did not find the solution yet.

Does someone has any idea?

Thanx, Robert

[Mod Edit: Removed sensitive security items such as username.]

 
Posted: 18 July 2007 09:58 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2002-05-20
12626 posts

Can you paste a code block that generates the message?  If I understand correctly, it’s only when a keyword plugin is used in the template that it throws the error?  Which plugin- can you link to it?  Sounds like it may be an issue with the plugin rather than EE, but I can’t tell for sure.

Also- edited your paths so the system folder doesn’t show.

 Signature 
 
Posted: 18 July 2007 10:46 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2006-10-17
62 posts
Robin Sowell - 18 July 2007 01:58 PM

Can you paste a code block that generates the message?  If I understand correctly, it’s only when a keyword plugin is used in the template that it throws the error?  Which plugin- can you link to it?  Sounds like it may be an issue with the plugin rather than EE, but I can’t tell for sure.

Also- edited your paths so the system folder doesn’t show.


Hee Robin,

De code block that’s generating the message is this one (dutch alert!!)

<div id="wrapper">
            <
div id="content">
                
{if segment_3 == ""}
                
<h2 class="cat-heading">Tags</h2>
                <
div class="entry">
                    
{exp:keywords:weblog_keywords keyword_fields="keywords" weblog="weblog1" font_largest="30" font_smallest="9" backspace="22"}
                    
<span style="font-size:{font_size}px;"><a href="{path='site/tags'}{keyword}/" title="Bekijk postings met het trefwoord '{keyword}'">{keyword}</a></span> &bull;&nbsp;
                       
{/exp:keywords:weblog_keywords}
                
</div>
                
{if:else}
                
<h2 class="cat-heading">Tags{segment_3}</h2>
                <
div class="entry">
                    <
ul>
                        
{exp:keywords:entries keyword="{segment_3}" weblog="weblog1" keyword_fields="keywords"}
                        
<li><a href="{path='site/entry'}{url_title}/">{title}</a></li>
                        
{/exp:keywords:entries}
                    
</ul>
                
                    <
p>Toon mij een <a href="{path='site/tags'}">overzicht van alle Tags</a><p>
                    
                    <
p>Tags die gerelateerd zijn aan <strong>{segment_3}</strong>:<br />
                    
{exp:keywords:related_keywords keyword="{segment_3}" keyword_fields="keywords" weblog="weblog1" backspace="19"}
                    
<a href="{path='site/tags'}{keyword}/">{keyword}</a> &bull;&nbsp;
                    
{/exp:keywords:related_keywords}
                    
</p>

                    
<?php 
                    $seg3 
"{segment_3}"//grab the keyword from the URL String
                    
$noSpaces str_replace(" """$seg3); //yank out the spaces
                    
?>
                    
<p>Bekijk <strong>{segment_3}</strongop:
                    <
a  rel="tag" href="http://www.technorati.com/tag/{segment_3}">Technorati</a>, <a  rel="tag" href="http://del.icio.us/tag/{segment_3}">Del.icio.us</a></p>
                </
div>
                
{/if}
                               
            
</div> <!-- END CONTENT -->
                                                 <
center>{embed="includes/advertentierectangle"}</center>
        </
div> <!-- END WRAPPER --> 

The plugin is included in this message. The plugin is an old one i guess, but it’s no longer on development. The plugin worked fine in 1.5.2.

Hope you can find a solution.

Thanx… Robert.

File Attachments
pi.keywords.txt  (File Size: 67KB - Downloads: 232)
 
Posted: 18 July 2007 11:18 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2002-05-20
12626 posts

Looks like it’s a problem with the plugin rather than with EE.  There are some new variables added that the plugin doesn’t ask for in the query before it turns it over to the weblog class for parsing- thus the undefined indexes.  So- I’m going to shift this down to the plugin forum.  Also- I might consider looking into Solspace’s ‘Tags’ module- it’s a leaner version of a keywords module and still in active development.

All that said- I think you could hack in a fix in line 990 of the plugin- where it generates the query.  Add in the variables throwing the errors above and I suspect it would work.

Make sense?

 Signature 
 
Posted: 18 July 2007 12:02 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2004-05-14
20504 posts

As a note, I removed your EngineHosting username from your post, for security reasons.

I would echo what Robin said - The Tags module is awesome and 2.0 is going to come out soon, it’s been in public beta for awhile - it’s really, really amazing.  I highly recommend trying it out.

 
Posted: 18 July 2007 12:11 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2006-10-17
62 posts

Thanx Robin… followed your suggestion and now the problem is fixed!


Ciao, Robert.

 
Posted: 18 July 2007 12:15 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2006-10-17
62 posts

Hi Lisa,

OOOPS… SORRY! I’ve missed that one.

Thanx for Big-Brothering me.  cool hmm

Ciao, Robert.

 
Posted: 18 July 2007 12:22 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2004-05-14
20504 posts

It’s called “protecting” *dances*  “big-brothering” remind me to use that against someone sometime.. =)