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

    today I’ve tried to update a 0.9.2 installation to Evo 1.0.3 on a Cent OS. But this installation produces a lot of php errors now. all concerning accesscontrol.inc.php line 129 to 131.

    Is is not possible to directly upgrade 0.9.2 to 1.0.3?

    Thanks
      • 25663 MODX Staff
      • 12,272 Posts
      Would need more details about your server environment. It should be possible. See "help us help you" link in my signature, and please also provide more information on the errors.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 2901
        • 277 Posts
        Ryan

        I advanced a bid more by overwriting the whole installation once more. Now all works except that I have a problem with a ditto call. I always get this error. the strange thing is this happens only with one single call all other work well.

        fatal error: Cannot redeclare getidfromurl() (previously declared in /var/www/vhosts/kleintheater-braui.ch/httpdocs/manager/includes/document.parser.class.inc.php(770) : eval()'d code:129) in /var/www/vhosts/kleintheater-braui.ch/httpdocs/manager/includes/document.parser.class.inc.php(770) : eval()'d code on line 137


        The Server runs on php 5.2.13
        MySQL 5.0.77




          • 25663 MODX Staff
          • 12,272 Posts
          Did you run the installer in upgrade mode and replace the snippets with the newer versions? Honestly Ditto in 092 is vastly different than the current release.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 2901
            • 277 Posts
            yes I replaced all the snippets and also run the installer.

            Guess the best is to repeat the whole upgrade process.
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              When upgrading across such a large gap in versions, I don’t upload snippets, nor do I select them for installation in the installer form. Later, when I have the opportunity to fiddle with the differences, I’ll manually upgrade snippets one by one.
                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
                • 33337
                • 3,975 Posts
                Quote from: sottwell at Apr 22, 2010, 03:40 PM

                When upgrading across such a large gap in versions, I don’t upload snippets, nor do I select them for installation in the installer form. Later, when I have the opportunity to fiddle with the differences, I’ll manually upgrade snippets one by one.
                Very nice tip!
                Thanks.
                  Zaigham R - MODX Professional | Skype | Email | Twitter

                  Digging the interwebs for #MODX gems and bringing it to you. modx.link
                  • 2901
                  • 277 Posts
                  I am sorry I have to pick this subject up again.

                  did a new install. When calling ditto from another page ie id 1, then the call works fine. as soon as I switch back to id 37 I get the very same error message like mentioned before.

                  Ditto Version 2.1with a new config.file as call.

                  Fatal error: Cannot redeclare getidfromurl() (previously declared in /var/www/vhosts/kleintheater-braui.ch/httpdocs/manager/includes/document.parser.class.inc.php(770) : eval()'d code:129) in /var/www/vhosts/kleintheater-braui.ch/httpdocs/manager/includes/document.parser.class.inc.php(770) : eval()'d code on line 137


                  Could this be a DB problem?

                  I try to add some more system info
                  The Server runs on php 5.2.13
                  MySQL 5.0.77
                  Apache/2.2.3 (Red Hat)
                  as far as I know on a Cent OS 5...

                  I am not really sure what to do now.
                    • 2901
                    • 277 Posts
                    Hi there

                    looks as if my problem has to do with YoutubeVideo 2.0 in Ditto calls.

                    As soon as more than one video is called the error occurs.
                      • 2901
                      • 277 Posts
                      checked a bid deeper now.

                      I guess it has to do with this function.
                      function getIdFromUrl($url) {
                      	$url_parts = parse_url($url);
                      	parse_str($url_parts['query']);
                      	if (isset($v)) {
                      		return $v;	  
                      	} else {
                      		return false;	
                      	}
                      }

                      When calling one movie things are OK, when calling multiple movies I get the above error.

                      Your help is much appreciated.