Hi all,
I recently updated a EE installation to the new 1.6.0 without any problems, except this one:
Notice: Undefined index: blog_name in /home/username/public_html/system/modules/weblog/mod.weblog.php on line 2959
Notice: Undefined index: photo_width in /home/username/public_html/d2cp/modules/weblog/mod.weblog.php on line 2962
Notice: Undefined index: photo_height in /home/username/public_html/system/modules/weblog/mod.weblog.php on line 2963
Notice: Undefined index: avatar_width in /home/username/public_html/system/modules/weblog/mod.weblog.php on line 2965
Notice: Undefined index: avatar_height in /home/username/public_html/system/modules/weblog/mod.weblog.php on line 2966
Notice: Undefined index: sig_img_width in /home/username/public_html/system/modules/weblog/mod.weblog.php on line 2968
Notice: Undefined index: sig_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.]
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.
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><a href="http://{path=%27site/tags%27}{keyword}/" title="Bekijk postings met het trefwoord '{keyword}'">{keyword}</a></span> •
{/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="http://{path=site/entry}{url_title}/">{title}</a></li>
{/exp:keywords:entries}
</ul>
Toon mij een <a href="http://{path=site/tags}">overzicht van alle Tags</a>
Tags die gerelateerd zijn aan <strong>{segment_3}</strong>:
{exp:keywords:related_keywords keyword="{segment_3}" keyword_fields="keywords" weblog="weblog1" backspace="19"}
<a href="http://{path=site/tags}{keyword}/">{keyword}</a> •
{/exp:keywords:related_keywords}
<?php
$seg3 = "{segment_3}"; //grab the keyword from the URL String
$noSpaces = str_replace(" ", "", $seg3); //yank out the spaces
?>
Bekijk <strong>{segment_3}</strong> op:
<a href="http://www.technorati.com/tag/{segment_3}rel=tag">Technorati</a>, <a href="http://del.icio.us/tag/{segment_3}rel=tag">Del.icio.us</a>
</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.
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?
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.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.