Harvest function returns error
Posted: 17 November 2007 03:56 AM   [ Ignore ]
Newbie
Rank
Total Posts:  8
Joined  2005-12-30

thanks for the better instructions! i am trying again, but…

the harvest function returns this error:

Notice: Undefined variable: total in /serverpath/public_html/ee/system/modules/tag/mcp.tag.php on line 3121

i am assuming that is why nothing displays with the new code. any ideas?

Profile
 
 
Posted: 17 November 2007 08:17 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Which version of Expression Engine are you running?

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 17 November 2007 12:54 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  8
Joined  2005-12-30

I am on 1.6.1.

thanks!

Profile
 
 
Posted: 17 November 2007 12:58 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Daniel,

Also, can you confirm which version of Tag you’re using? Might try downloading the most recent version just to be safe. This sounds like a bug that we fixed a little while back.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 17 November 2007 01:01 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  8
Joined  2005-12-30

i have 2.0.9, which appears to be the latest. should i download a fresh one?

Profile
 
 
Posted: 17 November 2007 01:07 PM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Yeah. Try a fresh build of 2.0.9 just in case.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 17 November 2007 01:50 PM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  8
Joined  2005-12-30

well, there’s no error with the harvest now. it said it did it. however no tags show up using the example code…

my old code looked like this:

{if Keyword} <br />
<
span class="extra_fields">tagged{exp:tag:tags_from_field}{Keyword}{format}<em> <a href="/tag/{websafe_tag}/">{tag}</a></em>{/format}{/exp:tag:tags_from_field}</span>
{/if} 

i tried this:

{exp:tag:tags entry_id="{entry_id}" type="weblog" limit="1"}Keywords{/exp:tag:tags}{exp:tag:tags entry_id="{entry_id}" type="weblog" backspace="2" orderby="clicks" sort="desc" limit="10"}<a href="{path='/tag'}{websafe_tag}" title="{tag_name}">{tag}</a>, {/exp:tag:tags} 

and this:

{exp:tag:tags entry_id="{entry_id}" type="weblog" limit="1"}Keywords{/exp:tag:tags}{exp:tag:tags entry_id="{entry_id}" limit="10"}<a href="/tag/{websafe_tag}">{tag}</a>, {/exp:tag:tags} 

from the recommended thread. i am sure i am missing something simple here…

EDIT: Resetting prefs and Re-harvesting… i think i didn’t harvest completly

thanks!

Profile
 
 
Posted: 17 November 2007 10:52 PM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

So it’s working now? smile

The easiest way to check if any tags have been assigned to the entries of course, would be to check the Tag tab in the CP Entry Edit view smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 17 November 2007 11:08 PM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  8
Joined  2005-12-30

It does!! thanks for your help! I’d never have tried to fix it without your message!

Now if I could get the ‘suggest tags’ button to do something… does it take a long time?

thanks again!

Profile
 
 
Posted: 17 November 2007 11:56 PM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

This is for all humans out there who may be listening…

I wish we could have figured it out, but because of a security provision in Javascript, when we execute an AJAX function on a page like the Suggest Tags function, the url that we call to must match the url of the current page in the browser. We use the “URL to your Control Panel index page” setting as the url to call to for our AJAX stuff. If you’re viewing your CP from a different url than in that setting, the AJAX features won’t work.

The most common example is when you have http://www.yoursite.com/some_cp/index.php as your CP index page setting but you are visiting your CP using http://yoursite.com/some_cp/index.php. Notice the www in the urls.

Anyway, we couldn’t figure a way around this issue, so you poor users have to make sure the urls are in synch.

mk

 Signature 

Mitchell Kimbrough

Profile