Path

ez projects / eztags / forum / general / error on adding new tag


Error on adding new tag

You need to be logged in to post messages in the forums. New users may register here.

Tamas Szabo

Member since:
19 April 2011

Posts: 2

Thursday 12 January 2012 4:37:05 pm

Hello Guys,

I got the following error when i add a new tag in ez tags 1.2: "The requested page could not be displayed.", however the new tag has been created. The URL is: whatever.com/site_admin/tags/id without the actual id value, so i checked the adding mechanism.

It seems that i've managed to fix the code by changing the following in the modules/tags/add.php from line 97 which:
< $tag = ezpEvent::getInstance()->filter( 'tag/add', array( 'tag' => $tag, 'parentTag' => $parentTag ) );
---
> {
> $filteredParams = ezpEvent::getInstance()->filter( 'tag/add', array( 'tag' => $tag, 'parentTag' => $parentTag ) );
> extract( $filteredParams );
> }

It not an issue in ez tags 1.1 as the new parameter was introduced in 1.2.

Just a note: It might make more sense to view the parent node and not the newly created one after a successful addition of a tag.

Cheers,
Tamas
Up

Edi Modrić

Member since:
22 January 2009

Posts: 76

Thursday 12 January 2012 4:49:11 pm

Hi Tamas,

Already fixed in master :)

I was planning on releasing eZ Tags 1.2.2 today anyways, so you actually caught this just in time.

Certified as an eZ Publish advanced developer on Sep 7th 2012
Certified as an eZ Publish basic developer on Jul 16th 2010

@: http://twitter.com/emodric
www: http://www.netgenlabs.com

Up

Edi Modrić

Member since:
22 January 2009

Posts: 76

Thursday 12 January 2012 6:12:19 pm

Hi Tamas,

eZ Tags 1.2.2 has been released which includes the said fix :)

Certified as an eZ Publish advanced developer on Sep 7th 2012
Certified as an eZ Publish basic developer on Jul 16th 2010

@: http://twitter.com/emodric
www: http://www.netgenlabs.com

Up

Tamas Szabo

Member since:
19 April 2011

Posts: 2

Wednesday 18 January 2012 10:20:47 am

Cheers :)
Up

You need to be logged in to post messages in the forums. New users may register here.