Error log mystery

Hi all,

I have built a new site, and I’m being plagued with an error in the logs which occurs whenever the page is loaded, and my error log becomes huge.

The error is:

[2024-10-04 15:41:28] (ERROR @ /home/site/public_html/core/src/Revolution/modX.php : 1072) `` is not a valid integer and may not be passed to makeUrl()

I found by process of elimination (not very technical - just deleting parts of the template until the error stopped showing!) that it was being caused by this line of code:

[[!tagLister? &tv=`country` &tpl=`tagSelectTpl` &sortBy=`tag` &sortDir=`ASC` &limit=`100`]]

I wondered if it was from within the tpl listed above, so i deleted the contents of that, but the error still shows - so it must be the above tagLister call. But I cannot see anything wrong with it?

Can anyone point me in the right direction at all?

Thanks in advance!
Andy

Further investigation - I delted this part of the tagLister call:

&tv=`country`

And the error stopped occurring!
But I need that to call the relevant tags!

So - I added a &target parameter - and that stops the error altogether - I don’t need a target, because I’m just listing the tags in a select menu - so I added one and it seems to have stopped it happening. I guess i needed a destination even though I’m not using one!

1 Like

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.