Potential bug with pdotools and jquery.
My manager is throwing up this error log on my site.
[2016-08-03 14:50:56] (ERROR @ /home/***/public_html/core/components/pdotools/model/pdotools/pdotools.class.php : 940) Unexpected token ':' in modchunk/20 line 96, near '{'overflow' :' <- there
The culprit it is referring to is this piece of jQuery in my html document, specially the colon?
$('body').delay(350).css({'overflow' : 'visible'});
can you tell a bit more about your setup and how this happens?
Thanks for your reply, Bruno.
I did just try a blank test to see if I could replicate it from a clean MODX installation but the error isn't appearing. The site it is appearing on does however use the migxMutliLang extra so I suspect it could be related with that.
The culprit is a preloader I have in the document body which is in a chunk.
<script type="text/javascript">
$(window).load(function() { // makes sure the whole site is loaded
$('#status').fadeOut(); // will first fade out the loading animation
$('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website.
$('body').delay(350).css({'overflow' : 'visible'});
});
</script>
I'll do another test tomorrow just to confirm.
maybe the fenom-parser has an issue with that, somehow.
Try to set the system-setting pdotools_fenom_default to 'no'