Weird error modxclaas and modxparser in errorlog?

[2020-04-12 15:25:16] (ERROR @ /core/model/modx/modx.class.php : 1031) `[[+landing` is not a valid integer and may not be passed to makeUrl()
[2020-04-12 15:25:16] (ERROR in resource 7 @ /core/model/modx/modparser.class.php : 1373) Bad link tag `[[~[[+landing:default=`7`]]]]` encountered
[2020-04-12 15:27:25] (ERROR @ /core/model/modx/modx.class.php : 1031) `[[+landing` is not a valid integer and may not be passed to makeUrl()
[2020-04-12 15:27:25] (ERROR in resource 1 @ /core/model/modx/modparser.class.php : 1373) Bad link tag `[[~[[+landing:default=`1`]]]]` encountered
[2020-04-12 15:34:01] (ERROR @ /core/model/modx/modcachemanager.class.php : 349) Error caching lexicon topic lexicon/nl/core/resource
[2020-04-12 15:34:53] (ERROR @ /core/model/modx/modx.class.php : 1031) `[[+landing` is not a valid integer and may not be passed to makeUrl()
[2020-04-12 15:34:53] (ERROR in resource 1 @ /core/model/modx/modparser.class.php : 1373) Bad link tag `[[~[[+landing:default=`1`]]]]` encountered
[2020-04-12 15:35:09] (ERROR @ /core/model/modx/modx.class.php : 1031) `[[+landing` is not a valid integer and may not be passed to makeUrl()
[2020-04-12 15:35:09] (ERROR in resource 369 @ /core/model/modx/modparser.class.php : 1373) Bad link tag `[[~[[+landing:default=`369`]]]]` encountered
[2020-04-12 15:35:10] (ERROR @ /core/model/modx/modx.class.php : 1031) `[[+landing` is not a valid integer and may not be passed to makeUrl()
[2020-04-12 15:35:10] (ERROR in resource 73 @ /core/model/modx/modparser.class.php : 1373) Bad link tag `[[~[[+landing:default=`73`]]]]` encountered
[2020-04-12 15:35:10] (ERROR @ /core/model/modx/modx.class.php : 1031) `[[+landing` is not a valid integer and may not be passed to makeUrl()
[2020-04-12 15:35:10] (ERROR in resource 12 @ /core/model/modx/modparser.class.php : 1373) Bad link tag `[[~[[+landing:default=`12`]]]]` encountered
[2020-04-12 15:36:00] (ERROR @ /core/model/modx/modx.class.php : 1031) `[[+landing` is not a valid integer and may not be passed to makeUrl()
[2020-04-12 15:36:00] (ERROR in resource 368 @ /core/model/modx/modparser.class.php : 1373) Bad link tag `[[~[[+landing:default=`368`]]]]` encountered
[2020-04-12 15:41:44] (ERROR @ /core/model/modx/modx.class.php : 1031) `[[+landing` is not a valid integer and may not be passed to makeUrl()
[2020-04-12 15:41:44] (ERROR in resource 43 @ /core/model/modx/modparser.class.php : 1373) Bad link tag `[[~[[+landing:default=`43`]]]]` encountered
[2020-04-12 15:41:55] (ERROR @ /core/model/modx/modx.class.php : 1031) `[[+landing` is not a valid integer and may not be passed to makeUrl()
[2020-04-12 15:41:55] (ERROR in resource 60 @ /core/model/modx/modparser.class.php : 1373) Bad link tag `[[~[[+landing:default=`60`]]]]` encountered
[2020-04-12 15:44:50] (ERROR @ /core/model/modx/modx.class.php : 1031) `[[+landing` is not a valid integer and may not be passed to makeUrl()
[2020-04-12 15:44:50] (ERROR in resource 71 @ /core/model/modx/modparser.class.php : 1373) Bad link tag `[[~[[+landing:default=`71`]]]]` encountered

I don’t understand this error. In the resources mentioned, I don’t see something weird or something wrong with links. Also, I checked if modx.claass.php and modparser.class.php were intact files, and they are. How could I solve this error?

Thanks in advance!

Is [[+landing]] at TV being called within a chunk? Can you post the snippet and chunk code as well please. It looks like ModParser can’t evaluate your [[+landing]] tag.

Here are a couple of guesses:

  1. At the time the link tag is parsed the landing placeholder is not set, so the parser is trying to create a link for a resource with the id: [[+landing:default=`12`]].

  2. The :default output modifier is being parsed after the link tag is parsed, so it’s not being replaced by an ID as intended.

In either case, I would replace the [[+landing:default=`12`]] with a custom snippet that returns an integer.

Thanks all :smiley:

But I solved it myself yesterday, quite quickly. I found out that when I updated my templates I placed the template code for simplesearch directly in my template. That’s why it didn’t work. Put it in a chunk and called the chunk in the template. Now everything was properly executed and works as intented :).