We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48362
    • 12 Posts
    Hi, I managed to get my manager looking smooth with a cache clear, but none of the pages work in my manager. Only the homepage shows. Whenever I click a link, nothing happens, or I get a blank page.

    Even logging out doesn't work. I have never had problems with previous upgrades, and I feel there might be a buggy upgrade process in the new release?

    Refreshing and emptying the cache did not improve functionality. Problem is I can't log out since nothing works anymore and since I'm currently logged in, I don't want to make changes to the setup now, being afraid I might not get back into my manager after attempting a downgrade.

    I'm using a local setup on a mac. The upgrade process gave an 'ok' on every part of the upgrade.

    (made a new account here on the forums, couldn't get into my old one anymore somehow)
    - Marinus

    This question has been answered by multiple community members. See the first response.

    [ed. note: smashingred last edited this post 9 years, 9 months ago.]
      • 22840
      • 1,572 Posts
      Turn off compress_css and compress_js via phpMyAdmin then deleter the core cache again
        • 48362
        • 12 Posts
        Hey Paulp, I just read your post in another topic:

        Quote from: crichard at Jul 17, 2014, 05:17 AM
        Quote from: paulp at Jul 16, 2014, 03:58 PM
        Try turning off compress_css and compress_js via phpMyadmin and delete the core >> cache again

        Thanks. This solution solved my issue.

        Thanks, this has also worked for me, I just tried it a second before you replied on my question.
        Kind of strange, prepare for many more like me...

        I hope this gets solved soon, I can imagine not everyone will have the ingenuity to fix this.

        Happy anyway, I can get to work again!
        Thanks PaulP!
          • 22840
          • 1,572 Posts
          Glad it's working, I know the team are aware of the issue so it will hopefully be fixed in 2.3.1
            • 48362
            • 12 Posts
            One new issue also came, now my page is being output with a '1' in the head, but it's printed on the page?.. Right after the base.

            <html>
            <head>
            <title>Marinus de Beer - Projects</title>
            <base href="[removed]" />
            1
            <link rel="stylesheet" href="assets/css/layoutv1.css" type="text/css" />
            </head>
            <body>


            Superweird since my template looks like this:

            <html>
            <head>
            <title>[[++site_name]] - [[*pagetitle]]</title>
            <base href="[[++site_url]]" />
            [[insert_css?]]
            </head>
            <body>



            And the insert css looks like this:

            <?php
            $modx->regClientCSS('assets/css/layoutv1.css');
              • 22840
              • 1,572 Posts
              There is an issue in 2.3 that Extras that don't return anything will return 1, the solution is to add a return to the bottom of the snippet in question but I can't find the thread it's detailed in
                • 48362
                • 12 Posts
                Thanks, I am not using any extras besides wayfinder for now, but removing wayfinder didn't solve it. This has left me clueless, since there is no way that 1 can be coming from anything in my manager.

                It's this thread by the way:
                http://forums.modx.com/thread/92145/problem-with-snippets---snippets-add-1-at-the-end-of-the-output-since-update-to-2-3#dis-post-503477

                But it's about turning the echo into a return. My problem is different, as the 1 thats being output, is not near an echo or return.

                OKay, so it comes down to that this script causes it:
                <?php
                $modx->regClientCSS('assets/css/layoutv1.css');
                [ed. note: ohmarinus last edited this post 9 years, 9 months ago.]
                • discuss.answer
                  Every snippet and plugin is going to have to have a return statement at the end. Otherwise MODX is going to output the 1 for successful execution of the snippet or plugin. Where that output will appear is going to be uncertain.
                    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
                    • 48362
                    • 12 Posts
                    Quote from: sottwell at Jul 19, 2014, 12:53 PM
                    Every snippet and plugin is going to have to have a return statement at the end. Otherwise MODX is going to output the 1 for successful execution of the snippet or plugin. Where that output will appear is going to be uncertain.

                    Alright so I turned it into:
                    $modx->regClientCSS('assets/css/layoutv1.css');
                    return $modx->regClientCSS;


                    This has solved my problem, is this the right way of doing it?
                    • discuss.answer
                      No. That will return the success or failure of the regClientCSS() function. Simply return nothing, since nothing is what you want it to return.
                      <?php
                      $modx->regClientCSS('assets/css/layoutv1.css');
                      return;

                        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