We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36129
    • 2 Posts
    Hi dear MODx community,
    I have a strange issue which I can’t figure out.
    When my site has been online for about half a day, it gets an HTTP 500 error until I go into modx manager and clears the cache.

    The whole site is built upon the plugin Gallery. It seems likePHP only the pages listing images based upon their tag with this snippet call is affected:
    [[!Gallery? &tag=`[[!fetchUrlParameter? &parameterName=`emoticons`]]` &thumbTpl=`gifMainListItemTpl` ]]

    the fetchUrlParameter snippet just fetches the GET value emoticons in the URL.
    The start page seem to run just fine even when the cache collapses.

    Do you have any idea why this error occur?


    Environment:
    PHP version : 5.3.2-0.dotdeb.2
    PHP memory limit : 128mb
    MYSQL version: 5.0.51a-24+lenny4-log
    modx version. MODx Revolution 2.0.4-pl2

    /proc/cpuinfo
    processor : 3
    vendor_id : AuthenticAMD
    cpu family : 15
    model : 65
    model name : Dual-Core AMD Opteron(tm) Processor 2210 HE
    stepping : 2
    cpu MHz : 900.082
    cache size : 1024 KB
    physical id : 1
    siblings : 2
    core id : 1
    cpu cores : 2
    apicid : 3
    fpu : yes
    fpu_exception : yes
    cpuid level : 1
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy
    bogomips : 3600.17
    TLB size : 1024 4K pages
    clflush size : 64
    cache_alignment : 64
    address sizes : 40 bits physical, 48 bits virtual
    power management: ts fid vid ttp tm stc
      • 3749
      • 24,544 Posts
      I would try upgrading to 2.0.8, or 2.1.0-pl, which should be out soon.
        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
        • 36129
        • 2 Posts
        Yes, I will do that. It’s strange though, never had this problem before.

        I also tried to make the Gallery snippet call catched
        [[Gallery? &tag=`[[!fetchUrlParameter? &parameterName=`emoticons`]]` &thumbTpl=`gifMainListItemTpl` ]]

        No difference, the tags listing pages was dead when I woke up today.
        I will try to un-check "Cacheable" for that resource, see if that helps. Until the new version comes out that hopefully fixes it...