We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36147
    • 21 Posts
    I try to upgrade a MODX 2.2.1 to the newest version using the very useful tool upgradeMODX. First the installation failed, because the snippet and the chunk haven't been installed. After dealing some other errors of the installation I managed to install it properly, but the widget didn't appear. Following Bob's guide I added the lines to the three files and the widget appeared. Perfect except the error message: Versions Empty - check github_username and github_token System Settings.

    I created a github token an inserted the username and token to the system-settings, cleared the cache, but the result is still the error message.

    What can I do?

    Thank you for helping! [ed. note: telebube last edited this post 5 years, 4 months ago.]
      • 3749
      • 24,544 Posts
      I think your version may be too old for UGM to work properly.

      Did an UpgradeMODX resource get installed? If so, try viewing it.

      If not, I'm afraid you'll have to upgrade the old-fashioned way as described here: https://bobsguides.com/modx-upgrade-faq.html.

      Once you hit 2.3.0, I think you'll be able to re-install UpgradeMODX and use it from there on.
        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
        • 36147
        • 21 Posts
        Hi Bob,

        thank you for your help. I tried to follow your instructions and got stuck with the following error message:
        FATAL ERROR: MODX Setup cannot continue.

        To use PHP 5.3.0+, you must set the date.timezone setting in your php.ini. Please do set it to a proper timezone before proceeding. A list can be found here.

        I tried to insert the time setting in the php.ini and in the .htaccess file, but nothing changes.

        Do you have an idea, what could help?

        Thank you.
          • 46886
          • 1,154 Posts
          I dont know about this area, but could you possibly use a newer php version? Could avoid the problem and generally is a good idea, but I am not sure about the process of upgrading so maybe wait for BobRay to weigh in first
            • 36147
            • 21 Posts
            Quote from: nuan88 at Nov 04, 2018, 04:40 PM
            I dont know about this area, but could you possibly use a newer php version? Could avoid the problem and generally is a good idea, but I am not sure about the process of upgrading so maybe wait for BobRay to weigh in first

            Thank you, it's not my webspace and not my website, it's from a friend with multiple sites. Probably it's a good idea to use a newer version than 5.6 and if this is the problem I'll try this.

            First of all I wait for BobRay's answer, maybe he knows the trick.
              • 3749
              • 24,544 Posts
              Can you post the php.ini line that sets the date/timezone?

              Some hosts are set up to ignore local php.ini files, so that could be an issue.

              You can create a one-line snippet with this code to see the actual setting:

              return 'Time Zone: ' . ini_get('date.timezone');
              

              Also, check the MODX System Setting -- I think it's date_timezone.
                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
                • 36147
                • 21 Posts
                Hi BobRay,

                I tried two another times without success. I created the snippet, you'll see the result in the attachment. Enclosed you'll find a screenshot of the error message and this is the php.ini line:
                 date.timezone = "Europe/Berlin"
                .

                I changed recursively the permissions of the directories and files of all relevant folders in the root directory. And after extracting the zip everything seemed to be alright.

                There is a great probability that the site has been hacked before. Maybe there are some more troubles than the obvious ones? Maybe it's easier to set up the site completely new?

                Thank you for your help!
                  • 3749
                  • 24,544 Posts
                  Did you check the MODX date_timezone System Setting to make sure it matches?

                  You didn't jump all the way from 2.2 to the current version right? You should install all the x.x.0 versions on the way (2.3.0, 2.4.0, 2.5.0, 2.6.0, then the current version).

                  The hacks have been remarkably persistent. All it takes is one remaining file that the hacker can use to gain entrance again, or even if it doesn't present a vulnerability, it may still crap up the site when it executes. That said, your symptoms don't look like the result of hacking to me (I could be wrong).

                  SiteCheck, BTW, checks for mismatches in the date/timezone settings and a lot of other things that can cause problems.

                    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
                    • 36147
                    • 21 Posts
                    Thank you for the tip with SiteCheck.

                    There has been a problem with the php and mySQL timesettings. One has been summertime (php), the other wintertime. I tried the php.ini in the root directory and it worked. So I upgraded successfully to 2.3.0.

                    I reinstalled upgradeMODX but the error keeps the same:
                    Fehler: Versions Empty - check github_username and github_token System Settings


                    Again upgrading manually?

                    What permissions do I have to change after upgrading manually except the core/config/config.inc.php? Remember I set everything to 755.
                      • 3749
                      • 24,544 Posts
                      Typically the permissions are 755 for folders ad 644 for files.

                      Do you have the latest version of UpgradeMODX (2.0.2)? I hope to release 2.0.3 soon, which may help with your problem.

                      What version of PHP do you have?

                        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