We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29774
    • 386 Posts
    Please can you try replacing lines 18 and 19 of ssl.php with:

    $tv = $modx->getTemplateVarOutput(array("encryption"),$id,1);
    $encryption =& $tv["encryption"];
    


    Let me know if that works...
      Snippets: GoogleMap | FileDetails | Related Plugin: SSL
      • 27330
      • 884 Posts
      didn’t work. I get the exact same sql error.
      and thanks for the help.
        • 18174
        • 116 Posts
        if you use the tv in the inherited way, did you set the tv in the document root?
        Does your 404 page have the same template or at least is the ssl tv set the too?
          • 27330
          • 884 Posts
          Im not using @INHIRT I have only a single payment page I use with SSL.
          setting the 404 page to ssl still get me same error.
            • 18174
            • 116 Posts
            Quote from: sinbad at Dec 15, 2009, 07:12 AM

            setting the 404 page to ssl still get me same error.
            So your 404 page has a selected template for sure?
              • 27330
              • 884 Posts
              yes have template. if I disable the ssl plugin the 404 page comes up no problem, only with the plugin enabled it gives me the parse error instead.
                • 18174
                • 116 Posts
                SQL: SELECT tv.*, IF(tvc.value!=’’,tvc.value,tv.default_text) as value FROM `smartsecurity`.`modx_site_tmplvars` tv

                Where is this prefix ’smartsecurity’ from in your sql call?
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  That’s the name of his database.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 29774
                    • 386 Posts
                    I don’t know why you’re getting this error but for now you could prevent the plugin from running on the 404 page like this:

                    $id = $modx->documentIdentifier;
                    if ($id == "[put the doc id of your 404 here]"){
                    exit;
                    }
                    
                      Snippets: GoogleMap | FileDetails | Related Plugin: SSL
                      • 27330
                      • 884 Posts
                      where in the plugin would I add it?
                      and do i need the [ brackets or just if ($id == "3"){ ?

                      I tried with/without the brackets and don’t seem to disable the plugin on the 404 page.
                      Tried adding the lines below the first $id = $modx->documentIdentifier; and after but don’t see any change. mind elaborating please?