<![CDATA[ Parser see element as plain text when i add exclamation mark to element call - My Forums]]> https://forums.modx.com/thread/?thread=105002 <![CDATA[Parser see element as plain text when i add exclamation mark to element call]]> https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call?page=2#dis-post-564570 I dont know when it started but at some point i realised that when i add "!" to make snippet or chunk non cacheable, the code after "!" is outputted as plain text on certain html page.

For example: [[&form_request?]] works fine.
[[!&form_request?]] doesnt work.
I just get text: [[!&form_request?]] in a place of element on web page

I've attached screenshot.

Site located on shared hosting so i havent changed any server side parameters.
I also tried to reinstall modx as an update.

]]>
tomgwarrior Mar 24, 2019, 04:06 PM https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call?page=2#dis-post-564570
<![CDATA[Re: Parser see element as plain text when i add exclamation mark to element call]]> https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call?page=2#dis-post-564601 ]]> BobRay Mar 26, 2019, 05:02 AM https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call?page=2#dis-post-564601 <![CDATA[Re: Parser see element as plain text when i add exclamation mark to element call]]> https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call?page=2#dis-post-564597 I suddenly marked HTML document as binary...In Content types menu.
That's crazy.
Sorry, Bob, for all that noise and your time. I really tried to solve it several days and tried many ways.


]]>
tomgwarrior Mar 25, 2019, 08:12 PM https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call?page=2#dis-post-564597
<![CDATA[Re: Parser see element as plain text when i add exclamation mark to element call]]> https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call?page=2#dis-post-564596

May it is something in system settings ? When i tried to get rid of .php extension in friendly urls i changed something there.

And let's not forget that parser interpretate XML documents in correct way.



]]>
tomgwarrior Mar 25, 2019, 08:08 PM https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call?page=2#dis-post-564596
<![CDATA[Re: Parser see element as plain text when i add exclamation mark to element call]]> https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call#dis-post-564594 Quote from: BobRay at Mar 25, 2019, 07:03 PM
Since nothing else has worked, here's what I'd suggest:

1. Install the UpgradeMODX extra in Package Manager.

2. Set your settings_version System Setting to 2.6.5-pl

3. Use UpgradeMODX on the main dashboard (click on the MODX logo) to "upgrade" to 2.7.0, then another upgrade to 2.7.1 (also using UGM).

That will give you fresh versions of all MODX files, plus any DB updates you might have missed in 2.7.0, and it will clear the cache files.



This is looking very promising !
Thanks. I'll go try it.]]>
tomgwarrior Mar 25, 2019, 07:08 PM https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call#dis-post-564594
<![CDATA[Re: Parser see element as plain text when i add exclamation mark to element call]]> https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call#dis-post-564593
1. Install the UpgradeMODX extra in Package Manager.

2. Set your settings_version System Setting to 2.6.5-pl

3. Use UpgradeMODX on the main dashboard (click on the MODX logo) to "upgrade" to 2.7.0, then another upgrade to 2.7.1 (also using UGM).

That will give you fresh versions of all MODX files, plus any DB updates you might have missed in 2.7.0, and it will clear the cache files.


]]>
BobRay Mar 25, 2019, 07:03 PM https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call#dis-post-564593
<![CDATA[Re: Parser see element as plain text when i add exclamation mark to element call]]> https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call#dis-post-564592 Quote from: BobRay at Mar 25, 2019, 05:42 PM
I found this in the source code of your mail test:

<!-- /Yandex.Metrika counter -->


It's possible that its JavaScript is interfering with the parsing of MODX tags, though it seems unlikely.

What version of MODX are you using?

What happened when you tried to upgrade MODX (and what was your upgrade method)?


Well i thought about javascript. Will try to comment scripts 1 by 1. Yandex metrika is russian web analytics similar to google analytics. Used on almost every site, but i could not find similar problem in russian segment of web. tbh i found 1 guy but he was unable to solve it.

I've changed template of 'mailtest' page to default, without fancy JS and nothing changed.

I am using 2.7.1-pl.

Well it was not really an upgrade, because i just downloaded setup of same version. I ran it and installation offered me to perform an update with saving all my settings. All was performed flawless.

But problem gone nowhere.

]]>
tomgwarrior Mar 25, 2019, 06:39 PM https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call#dis-post-564592
<![CDATA[Re: Parser see element as plain text when i add exclamation mark to element call]]> https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call#dis-post-564590
<!-- /Yandex.Metrika counter -->


It's possible that its JavaScript is interfering with the parsing of MODX tags, though it seems unlikely.

What version of MODX are you using?

What happened when you tried to upgrade MODX (and what was your upgrade method)?

]]>
BobRay Mar 25, 2019, 05:42 PM https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call#dis-post-564590
<![CDATA[Re: Parser see element as plain text when i add exclamation mark to element call]]> https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call#dis-post-564586 Quote from: BobRay at Mar 25, 2019, 02:59 PM
I did see what you mean with one of your examples. Do you happen to happen to have the FastField extra installed?


No, i am very new to modx so i used few of extras.
they are:

Ace

Canonical

FormIt

pdoTools

QuickEmail

Wayfinder

googlesitemap -- deleted

---
pdoTools i've installed just yesterday, i thought it has own parser who will work correctly smiley But was surprised it has great sitemap.

My install is clean, what i did is just transferred it from subdomain to main domain by moving folders and changing paths in configuration files.

In my tries to fix the issue i even made an installation of modx over my installation as an update.
I've checked all configuration files, htaccess etc...

Also why parser interpretate xml document correct and html not ?

It is not critical to me at the moment as i am not expiriencing problems caused by caching, but i cant get FormIt working smiley
Even simplest 'redirect' hook. So i started to think this is because i forced to call FormIt without exclamation mark.

Focusing on the topic, also i tried to deinstall ace and almost every extra except wayfinder i guess.




Quote from: andytough at Mar 25, 2019, 01:15 PM
I have just noticed what snippet you are using. The word 'Unauthorized' is probably the correct response for that snippet.

I think 'unauthorised' is correct output for non-admin user. It shows the snippet call was parsed correctly.]]>
tomgwarrior Mar 25, 2019, 03:46 PM https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call#dis-post-564586
<![CDATA[Re: Parser see element as plain text when i add exclamation mark to element call]]> https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call#dis-post-564583


]]>
BobRay Mar 25, 2019, 02:59 PM https://forums.modx.com/thread/105002/parser-see-element-as-plain-text-when-i-add-exclamation-mark-to-element-call#dis-post-564583