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

    Need your help - can't figure out what to do.

    The thing is there is a website that have worked quite perfectly for many months until recently. Last week I noticed that browsers don't display images and texts from resources, lines with code are just left blank. The problem is only with custom TVs; *pagetitle, *alias, *content, etc. work correctly.

    First I thought there must be a problem with caching, but then I tried to create a new resource by duplicating an existing one and find out that the system can't really update info for custom TVs (with *pagetitle, *alias, *content again there is no problem, information was updated and displayed). So now I think the problem has something to do with database, but can't really figure out where to start.

    Please advise me smiley
      • 17301
      • 932 Posts
      Have you set your call to includetvs and processestvs?
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 3749
        • 24,544 Posts
        *pagetitle, *alias, *content are not TVs, they are Resource Content fields, though Resource Content fields and TVs are shown with the same kind of tag. It's not clear from your post, but I kind of suspect that by "custom TVs" you mean regular TVs, not custom TVs (which take a fair amount of effort to create).

        In addition to LK's note, getResources also assumes that your TVs are prefixed with 'tv.' unless you add this property:

        &tvPrefix=``
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 53423
          • 5 Posts
          Quote from: lkfranklin at Apr 29, 2017, 08:44 PM
          Have you set your call to includetvs and processestvs?

          Yes, both are set to `1`
            • 53423
            • 5 Posts
            Quote from: BobRay at Apr 30, 2017, 04:01 AM
            *pagetitle, *alias, *content are not TVs, they are Resource Content fields, though Resource Content fields and TVs are shown with the same kind of tag. It's not clear from your post, but I kind of suspect that by "custom TVs" you mean regular TVs, not custom TVs (which take a fair amount of effort to create).

            In addition to LK's note, getResources also assumes that your TVs are prefixed with 'tv.' unless you add this property:

            &tvPrefix=``

            Sure then, by custom TVs I mean regular TVs then. tvPrefix was set to `` long long time ago. Guys, the point is the system have worked quite perfectly until recently, then all of a sudden there is a problem with TVs throughout the entire website, that's why I think the problem should be somewhere with caching or interaction with database
              • 53423
              • 5 Posts
              And another super weird thing is that when I change information in TVs' fields nothing is updated. E.g., there is a TV called [[*eventName]], when I change information in its field (say from "Event 1" to "Event 2") and press "Save", the system informs "Save successful", however, after reloading the information in the field wasn't updated at all (it's still "Event 1").
                • 3749
                • 24,544 Posts
                Try logging out, manually deleting all files in the core/cache directory, and logging back in.

                What version of MODX are you running?
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 53423
                  • 5 Posts
                  Quote from: BobRay at May 01, 2017, 06:26 AM
                  Try logging out, manually deleting all files in the core/cache directory, and logging back in.

                  What version of MODX are you running?

                  Version: 2.3.3-pl traditional

                  Logging out, manually deleting didn't help sad
                    • 3749
                    • 24,544 Posts
                    Your connection to the DB must be good or the site wouldn't work at all. Are you, by chance using the CacheMaster extra? If so, try disabling it, deleting the cache files again, and see if that solves the problem.

                    This article is about Resources, but some of it could relate to TVs: https://bobsguides.com/blog.html/2017/03/08/why-some-resources-cant-be-saved/.

                    Is there anything useful in the MODX error log?
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting