We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53951
    • 3 Posts
    Hi,

    I have enabled HTTPS on a domain, and MODX seems to automatically convert links and other module links to https thanks to the default setting of

    link_tag_scheme
    Great, however...

    ...pdoResources chunks simply fail to render at all. This documentation page states that you can specify the URL scheme by passing in an attribute (&scheme=`https`), but nope - that doesn't fix it either:

    https://docs.modx.pro/en/components/pdotools/snippets/pdoresources

    Do any pdoResources experts know if there is something obvious I am missing as to why pdoResources fails to work over HTTPS?

    Thanks in advance.
    • How your site is accessed should have literally zero impact on the functioning of specific snippets. Must be something else going on?
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 53951
        • 3 Posts
        Quote from: markh at Dec 06, 2017, 06:08 PM
        How your site is accessed should have literally zero impact on the functioning of specific snippets. Must be something else going on?

        That's what I expected too, but the anything using pdoResources doesn't process, so I have to assume it's related to that.

        Because if I view the site in standard http, everything (including all plugin types) works as expected.
        If I view the exact same site via https://, the pdoResources chunks don't execute.

        The fact the pdoResources (https://docs.modx.pro/en/components/pdotools/snippets/pdoresources) references a scheme type attribute (&scheme=`https`) also makes me assume it handles data in different ways?

        Any ideas are much appreciated smiley
          • 4172
          • 5,888 Posts

          Help us help you. If you’re having technical problems, please supply adequate details: web server type and version; PHP version, configuration and how it runs; MySQL details and especially the MODX version and list of Add-ons installed.

          to see your code, how you call pdoResources and how you setup your chunks, might also be helpfull
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 53951
            • 3 Posts
            Thanks Bruno

            OK, here are the system details:

            PHP version: 5.6.16
            MODX version: Revolution 2.3.1-pl (traditional)
            Database type: mysql
            Database version: 5.6.38

            The Chunk I am using is as expected, and obviously works fine, but doesn't render when viewed via https. Here it is:

            [[pdoResources? 
            	&limit=`0` 
            	&depth=`0` 
            	&parents=`33` 
            	&tpl=`headerproductdropdown`
            	&sortby=`menuindex`
            	&sortdir=`ASC`
            ]]
            


            "headerproductdropdown" Chunk:

            <li role="presentation"><a role="menuitem" tabindex="-1" href="[[~[[+id]]]]">[[+menutitle]]</a></li>
            


            If there is anything else I should provide please let me know.
              • 38705
              • 101 Posts
              You probably could try to call it uncached until you get expected output.
              [[!pdoResources?
              &limit=`0`
              &tpl=`yourChunkHere`]]


              I use pdoResources alot, also on https protocol, never a problem.
              maybe you should change te sort options like this example:
              [[pdoResources?
                  &parents=`16`
                  &sortby=`{"publishedon":"DESC"}`
                  &limit=`1`
                  &includeTVs=`projPic,projPlace`
                  &includeContent=`1`
                  &tpl=`HomeSliderProject`]]


                Addict since 2012....