We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42503
    • 120 Posts
    Dear Friends,
    Need some urgent help.
    I have migrate a site build in modx evolution to modx revolution using Provisioner. The import went smoothly but after that it is giving error like this
    "Fatal error: Call to undefined method modX::logEvent() in D:\xampp\htdocs\pres_new\core\cache\includes\elements\modsnippet\3.include.cache.php on line 205"



    Can any one help please I am not so knowledgeable in modx.

    Reply urgently.

    Thanks in advance.
    • What is snippet #3? (the snippets are numbered in the Snippets section of the Elements tab).
        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
      • You'll need to change every occurence of $modx->logEvent to $modx->log();

        Some examples:
        $modx->log(modX::LOG_LEVEL_ERROR,'Uh oh, something is wrong!');
        $modx->log(modX::LOG_LEVEL_WARN,'This may be an issue, but is not logged to the error log by default.');
        $modx->log(modX::LOG_LEVEL_INFO,'Just so you know. Not logged to error log by default either.');
        
          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.
          • 42503
          • 120 Posts
          There are 2 snippets that are giving error one is ditto and another is wayfinder. How to make them compatible. Please help.

          Quote from: sottwell at Jan 12, 2013, 10:16 AM
          What is snippet #3? (the snippets are numbered in the Snippets section of the Elements tab).
          • For one thing you should change Ditto to getResources; it's not difficult to change, as they work in the same way and there is almost no difference in their snippet properties.

            In any case, you'll need to do as Mark said and edit the snippets' files.

            In the Ditto files, find phx.parser.class.inc.php and edit line 75.

            Wayfinder doesn't have it. I only find it in Ditto, again in Jot (also the same phx.parser.class.inc.php file in the Jot files) and in the QuickManager plugin, which doesn't work in Revo in any case.
              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
              • 42503
              • 120 Posts
              Thank Sottwell it is working now.

              Stuck into another issue.
              I have a TV named "social_icon" when I am call this TV into a chunk it is not working.
              The call code is
              <li><a href="[[+content]]" target="_blank"><img src="[[+social_icon]]" alt="[[+pagetitle]]" width="35" height="38" border="0" /></a></li>

              The same is not working for many of my chunks. Please suggest some way out.

              Please Help.

              [ed. note: pronab.saha last edited this post 11 years, 4 months ago.]
                • 4172
                • 5,888 Posts

                I have a TV named "social_icon" when I am call this TV into a chunk it is not working.
                The call code is
                <li><a href="[[+content]]" target="_blank"><img src="[[+social_icon]]" alt="[[+pagetitle]]" width="35" height="38" border="0" /></a></li>


                Is it in a Ditto-tpl or in a getResources-tpl now?

                What is currently your Ditto/getResources snippet-tag?
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 42503
                  • 120 Posts
                  It was previously Ditto but now after migrating to revo I changed them to getResources.

                  Quote from: Bruno17 at Jan 13, 2013, 02:31 PM

                  I have a TV named "social_icon" when I am call this TV into a chunk it is not working.
                  The call code is
                  <li><a href="[[+content]]" target="_blank"><img src="[[+social_icon]]" alt="[[+pagetitle]]" width="35" height="38" border="0"></a></li>


                  Is it in a Ditto-tpl or in a getResources-tpl now?

                  What is currently your Ditto/getResources snippet-tag?
                    • 4172
                    • 5,888 Posts
                    ok, then you should study its properties:

                    http://rtfm.modx.com/display/ADDON/getResources#getResources-AvailableProperties

                    for TVs study especially this properties:

                    &includeTVs
                    &includeTVList
                    &processTVs
                    &processTVList
                    &tvPrefix
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 42503
                      • 120 Posts
                      I have another slider on the home page where slider functionality is working but images are not get loaded, the sam eis happening for most of the image places.

                      I have created a tv named "banner_image". After that I called them through two chunks
                      My actual code is

                      -----home_banners----Chunk

                      <div id="slider" class="nivoSlider">
                      [[getResources? &parents =`44` &tpl=`tpl_home_banner_images` &sortDir=`ASC`]]
                      </div>
                      <script type="text/javascript" src="jquery.nivo.slider.pack.js"></script>
                      <script type="text/javascript">
                      $(window).load(function() {
                      $('#slider').nivoSlider({
                      directionNav: false,
                      effect: 'fade'
                      });
                      });
                      </script>
                      -----------------------------------------------
                      ----tpl_home_banner_images------chunk

                      <img src="[[+banner_image]]" width="670" height="350" />

                      ---------------------------------------------------

                      The url for the dev site is http://precisionairtz.com/devrev/


                      Please help I badly got stuck.

                      Thank you


                      Quote from: Bruno17 at Jan 13, 2013, 05:39 PM
                      ok, then you should study its properties:

                      http://rtfm.modx.com/display/ADDON/getResources#getResources-AvailableProperties

                      for TVs study especially this properties:

                      &includeTVs
                      &includeTVList
                      &processTVs
                      &processTVList
                      &tvPrefix