We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18597
    • 12 Posts
    Hello,

    I did the upgrade to Evolution 1.0 and now when i try to edit a document i get this error:

    Fatal error: Call to undefined method DocumentParser::stripAlias() in /homepages/44/d274345671/htdocs/Arbeitsrecht_regional/manager/processors/save_content.processor.php on line 87


    and this one ist in the date:

    Fatal error: Call to undefined method DocumentParser::toDateFormat() in /homepages/44/d274345671/htdocs/Arbeitsrecht_regional/manager/actions/document_data.static.php on line 267


    any help?? thanks in advance

    • I suspect that the file manager/includes/document.parser.class.inc.php didn’t get updated when you upgraded.
      Try replacing it with the version from the MODx 1.0.0 distribution and see if the errors go away.
      If that fixes the problem, you might have some other files that didn’t get updated properly.
        Mike Schell
        Lead Developer, MODX Cloud
        Email: [email protected]
        GitHub: https://github.com/netProphET/
        Twitter: @mkschell
        • 18597
        • 12 Posts
        Thanks... that was the problem!! i used some hacked files for this problem:

        Fatal error: Out of memory (allocated 25952256) (tried to allocate 79691776 bytes) in /homepages/44/d274345671/htdocs/Arbeitsrecht_regional/assets/cache/siteCache.idx.php on line 78687


        any idea for reduce the cache? Thanks again

        • Try to move snippet code into external files with only minimal preparation and an include directive to include the external .php file; remove any templates, chunks, snippets and plugins you’re not using; replace chunks as far as possible (put their content back into your main template, or use TVs with a default value instead and hide them in a document group, or if they are used as tpls for Wayfinder or Ditto move them into external config files).
            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
            • 18597
            • 12 Posts
            thanks.. im deleting all not used stuff.. I think my problem is coz i got a lot of CHUNKS... Im using the same content in different countries.. thats why i got that content in chunks.. for change all at the same time if i need to edit the content... any idea? Thank you again
            • Try using TVs instead; just put the content in the default value and use the TV tags instead of the chunk tags. If you create a document group and assign the TVs to that document group, then ordinary manager users won’t even see the TV. Chunks are stored in the cache file, TVs are not.
                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
                • 1778
                • 659 Posts
                function strip() is deprecated in PHP 5.3... Maybe the source of your problem...

                replacing it by preg_split() or explode() seems to resolve this...

                Cheers