We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20041
    • 83 Posts
    This is the error I got while running Replix:
    Fatal error: Call to a member function addTemplate() on a non-object in D:\xampp\htdocs\powervsn\modx2\assets\snippets\replix\replix.inc.php on line 368

    I called Replix with the following:
    [tt][!Replix? &folder=`14` &customfields=`name,email` &customname=`name` &tplForm=`ucform` &tplComment=`ucTempl`!][/tt]
    The form has fields name, email and comments.
    I folder name is Comments and has an id=14
    Did everything according to the Replix instructions and also read some posts. Maybe I missed something?
    Any help is appreciated.
    Thank you for your time.
      • 25663 MODX Staff
      • 12,272 Posts
      It seems you did not install the TBS template plugin, which is also required. Not super clear in the instructions, but it is in the first post.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 20041
        • 83 Posts
        No, I did not. sad
        Thanks, Ryan.
          • 20041
          • 83 Posts
          I installed the TBS plugin...followed their instructions..
          But the same error persists.
          Fatal error: Call to a member function addTemplate() on a non-object in D:\xampp\htdocs\powervsn\modx2\assets\snippets\replix\replix.inc.php on line 368

          My site needs only a basic user commenting system..no need for email notifications, subscriptions etc.
          Fields are Name, Email & Comments.
          My form chunk is:
          <form id="pvForm" action="[~[id]~]" method="post" name="ucform">
          <input name="ucform[{replix.tag}]" type="hidden" value="on" />
          <br />
          <label for="name">Name : 
          <input name="name" id="big" type="text" tabindex="1" />
          </label>
          <br />
          <label for="email">E mail : 
          <input name="email" id="big" type="text" tabindex="2" />
          </label>
          <br />
          <label for="prayer">Comment : 
          <textarea name="comment" id="contact"  tabindex="3" /></textarea>
          </label>
          <br />
          <p align="left">
          <input id="conbtn1" type="submit" value="Submit">
          </p>
          </form>

          and the comments template is
          <div class="replix_post">
          <div class="replix_post_author">
          [+postnumber+]
          </div>
          <div class="replix_post_author">
          <span>[+user+] [+createdon+] [+email+]</span>
          </div>
          <div class="replix_content">
          [+comment+]
          </div>
          </div> 

          Am I using these templates in the correct way?
          I have seen a sample form in the Replix folder.
          Do I have to use something similar or will it work like this?
          Thank you very much for your time and patience.
            • 20041
            • 83 Posts
            :’(
            I am looking at the code, instructions etc for several hrs now...making changes etc. But still the error is there. Pardon my php inexperience..but i am trying.
            TBS is installed according to instructions. Maybe I should have used usercomments snippets for this simple usercomments system.
            Can anyone spare a little time.. please.
            Thank you very much.
              • 33337
              • 3,975 Posts
              This template isnt compatible with Replix! check Replix’s default template for syntax ..
                Zaigham R - MODX Professional | Skype | Email | Twitter

                Digging the interwebs for #MODX gems and bringing it to you. modx.link