We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6470
    • 69 Posts
    Local installation works fine
    remote doesn’t

    It add this code at the page beginning
    ray_key_exists($name, $this->placeholders)) {
    			// Return the value from PHx
    			return $this->placeholders[$name];
    		} else {
    			// Return the value from MODx
    			return $modx->getPlaceholder($name);
    		}  
        }
    	
    	// Sets a placeholder variable which can only be access by PHx
        function setPHxVariable($name, $value) {
            if ($name != "phx") $this->placeholders[$name] = $value;
        }
    
    }
    ?>


    url to site
    http://4steps.ru/275

    need help
      • 33372
      • 1,611 Posts
      Your PHP code is not being parsed and is appearing at the beginning of the page (view the document source and you’ll see what I mean). So that explains the error. You need to make this code a snippet if you want it to be exceuted and then put the snippet on your page (and you’re also missing the opening <?php tag, so don’t forget to add that).

      Read the MODx documentation for a fuller explanation of snippets and their use.
        "Things are not what they appear to be; nor are they otherwise." - Buddha

        "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
        • 6470
        • 69 Posts
        1In fact I don’t have any snippet at the page beginning
        except
        [[Ditto? &startID=`146` &format=`rss` &summarize=`20` &total=`20`]]

        2My local development modx Version works just fine, no that strange output,

        that is way i think it is some kind of bug

          • 33372
          • 1,611 Posts
          Where did you add the code you posted to the page? If you added it directly into the document content (or a TV), then that’s the problem. In general, PHP code needs to be added to a snippet and then the snippet is what you put on your page (otherwise it will not be executed, just displayed as code on the page).
            "Things are not what they appear to be; nor are they otherwise." - Buddha

            "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

            Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
            • 6470
            • 69 Posts
            I have a document XML, with empty template for RSS

            in a doc content a have a snippet call
            [[ditto bla bla bla]]
            rss feed id 275

            It works fine in local installation, but do not in remote
            go and see yourself
            4steps.ru
            log:test
            pass:testtest
              • 6470
              • 69 Posts
              sorry, I extended privlegies

              and, template for xml output have just
              [*content*]
                • 25663 MODX Staff
                • 12,272 Posts
                The login is not working for that site.
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 6470
                  • 69 Posts
                  sorry i fixed that
                    • 6470
                    • 69 Posts
                    sorry I fixed it

                    login:test
                    pass:testtest
                      • 6470
                      • 69 Posts
                      Quote from: ganeshXL at Jul 30, 2007, 02:39 PM

                      1 OK, I now deactivated the phx plugin, and *almost* solved it.



                      There remains a single > character at the very beginning of every document (doesn’t matter if it’s html or xml). I have no idea where this is coming from.
                      3 I see you customized quite a few things... that special "save" button etc. Check every file you’ve changed if the code is clean...
                      2 One oddity I also found is that you can’t specify the document-type in the drop-down when editing: text/plain - text/html etc.
                      Why did you deactivate this?

                      1 please provide some information, as for anyway I am updating remote site from local copy frequently and those changes would lost if had no respond
                      2 may be i didnot grant that access to the test account
                      -----------
                      3 yes I spent all last evening to make it transparent, but could not manage to get transparency under ie6,7

                      So, do you think that I shell get rid of phx plugin,
                      if it is something causing problem, I may write <if function ?by myself