We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17301
    • 932 Posts
    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'});
      ■ email: [email protected] | ■ website: https://alienbuild.uk

      The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
      • 4172
      • 5,888 Posts
      can you tell a bit more about your setup and how this happens?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 17301
        • 932 Posts
        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.
          ■ email: [email protected] | ■ website: https://alienbuild.uk

          The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
          • 4172
          • 5,888 Posts
          maybe the fenom-parser has an issue with that, somehow.

          Try to set the system-setting pdotools_fenom_default to 'no'
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!