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

    I tried to update my website today and I upgraded from modx 2.0.8 to the current version of modx 2.1.3

    Majority of my packages do not require updating, but some do. When I click on the packages that required updates, I receive an error that the files cannot be downloaded from modx. I have googled this error and have come up with my packages folder needs to be set with permission level 755 and the cURL needs to be enabled. Both of these are set correctly.

    Can anyone help with my issue? I would like to update these packages.
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      Anything in the error log?
        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.
        • 22446
        • 181 Posts
        The error log says this.

        [2011-01-06 23:10:36] (ERROR @ /setup/index.php) Could not copy /home/server/public_html/core/packages/core/modContext/678a233aecbc8420937ed5a1672b7dd7/0/ to /home/server/public_html/index.php

        This error looks to repeat for each instance that I tried up update each package.
          • 22446
          • 181 Posts
          Found this error too.

          [2011-01-06 23:10:36] (ERROR @ /setup/index.php) Could not install files from /home/server/public_html/core/packages/core/xPDOFileVehicle/883d6e8b01b8a864e423536cbd0c1e1e/ to /home/server/public_html/connectors/
            • 3749
            • 24,544 Posts
            It sounds like there is a permissions or ownership problem with the core/packages directory.
              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
              • 22446
              • 181 Posts
              Any suggestions to correct the problem?

              I checked the permissions level and they were set to 755. I changed them to 777 just to eliminate all restrictions. the core folder is set to 777 as well as packages folder set to 777.
                • 3749
                • 24,544 Posts
                See if any of this helps:

                If the host is using suPHP or suExec, the directories need to be 755 and the files 644.

                Manually delete all the files in the core/cache directory and clear your browser cache and cookies. Then run setup in upgrade mode.

                In PhpMyAdmin, check the path in the modx_workspaces table and make sure it contains the correct path to your core directory.

                See these topics (especially the last few posts):

                http://modxcms.com/forums/index.php?topic=51831.0

                http://modxcms.com/forums/index.php?topic=65642.0
                  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
                  • 22446
                  • 181 Posts
                  I went through the steps you suggested. Cleared the cache in the core/cache directory and cleared the browser cache and cookies.

                  Ran the setup in upgrade mode again and still no luck. I checked the error log and now it seems I have new errors. Can you give me some insight as to what these errors are??

                  [2011-08-15 09:02:19] (ERROR @ /home/outdoor4/public_html/core/model/modx/transport/modtransportpackage.class.php : 282) PHP warning: curl_setopt() [<a href=’function.curl-setopt’>function.curl-setopt</a>]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set
                  [2011-08-15 09:02:22] (ERROR @ /connectors/workspace/packages.php) MODX could not download the file. You must enable allow_url_fopen, cURL or fsockopen to use remote transport packaging.
                  [2011-08-15 09:02:22] (ERROR @ /connectors/workspace/packages.php) Could not download package at: http://modx.com/extras/download/?id=4d556cfeb2b083396d000f3d


                  It would appear that the cURL is still an issue and my shared server provider told me that it was enabled.
                    • 3749
                    • 24,544 Posts
                    Your host’s security settings are the issue:

                    safe_mode and/or open_basedir

                    +

                    allow_url_fopen
                      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
                      • 22446
                      • 181 Posts
                      Fixed the problem.

                      allow_url_fopen was disabled. Safe mode was ok.

                      Thank you for all your help.