View Issue Details

IDProjectCategoryView StatusLast Update
0000404WackoWikihandlerpublic2011-12-26 07:49
Reportertaskoma Assigned Toadministrator  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.0.rc 
Target Version5.0.0Fixed in Version5.0.0 
Summary0000404: not recognized inner referrers
DescriptionIn referres not recognized links like ((/Page2 Page2))
Steps To Reproducestep 1 create page with link like
((/Page2 Page2))

step 2 go to page2 and look page2/referrers

"to page" category is empty

but if we create link like ((/Page2)) all is ok
TagsNo tags attached.

Activities

taskoma

2011-12-06 15:07

reporter   ~0000826

Addition:

problem in new page
Reproduce:

create new page1 and create link in it to page2

after that do
select * from ww5_link;
and see that 'from_page_id' equal 0, so this referrer ingnored.
But after edit/save page1 'from_page_id' changed to page_id

taskoma

2011-12-06 15:40

reporter   ~0000827

Solution:

handlers/page/edit.php : 175
instead
$this->write_link_table($this->page['page_id']);
need use
$this->write_link_table($this->get_page_id($this->tag));

administrator

2011-12-07 17:21

administrator   ~0000828

Last edited: 2011-12-07 17:28

Gotcha, if we edit a new page the $this->page['page_id'] is not yet available.
I'll add it better to the write_link_table function

// this is a new page, try to get page_id via tag
if (empty($from_page_id))
{
  $from_page_id = $this->get_page_id($this->tag);
}

administrator

2011-12-26 07:49

administrator   ~0000831

I've chosen the following fix for the issue:

handlers/page/edit.php : 170
// this is a new page, get page_id via tag for the new created page
if (!$this->page)
{
    $this->page['page_id'] = $this->get_page_id($this->tag);
}

There are other possible ways to address this, here we just look up for the page_id if we have a new created page.

Issue History

Date Modified Username Field Change
2011-12-06 14:49 taskoma New Issue
2011-12-06 15:07 taskoma Note Added: 0000826
2011-12-06 15:40 taskoma Note Added: 0000827
2011-12-07 17:21 administrator Note Added: 0000828
2011-12-07 17:21 administrator Assigned To => administrator
2011-12-07 17:21 administrator Severity major => minor
2011-12-07 17:21 administrator Status new => assigned
2011-12-07 17:21 administrator Target Version => 5.0.0
2011-12-07 17:21 administrator Steps to Reproduce Updated
2011-12-07 17:28 administrator Note Edited: 0000828
2011-12-26 07:49 administrator Note Added: 0000831
2011-12-26 07:49 administrator Status assigned => resolved
2011-12-26 07:49 administrator Resolution open => fixed
2011-12-26 07:49 administrator Fixed in Version => 5.0.0