Skip to content

Error in Modx Log (issue #2) #18

@terrybarth

Description

@terrybarth

I wasn't sure if I could post this to a closed issue or if you see an update to a closed issue, so here it is.

I think issue #2 is what I'm seeing on my site. This appears only on the Modx error log on the first and last resource in the folder where there is no prev or next resource to navigate to..

[2016-11-09 09:50:49] (ERROR @ /home/xxxxxxx/public_html/core/model/modx/modx.class.php : 991) `0` is not a valid integer and may not be passed to makeUrl()
[2016-11-09 09:50:50] (ERROR @ /home/xxxxxxx/public_html/core/model/modx/modx.class.php : 991) `0` is not a valid integer and may not be passed to makeUrl()

This is the call

[[!siblingNav? &prevTpl=`prevTpl` &nextTpl=`nextTpl` ]]
[[+sn.prev]][[+sn.next]]

The Tpls are

[[+_isactive:is=`1`:then=`
  <a id="next" href="[[~[[+id]]]]">&gt;</a>  
  `:else=`
  <span class="none">&gt;</span>
`]]	

[[+_isactive:is=`1`:then=`
  <a id="prev" href="[[~[[+id]]]]">&lt;</a> 
  `:else=`
  <span class="none">&lt;</span>
`]]

I'm using version 1.2.2.pl
Modx 2.5.1

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions