We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14883 ☆ A M B ☆
    • 450 Posts
    Apologies if this is posted elsewhere; I searched around for a while and didn’t see any mention.

    It seems that when using the "next page" button on Manager pages such as Manager Actions or Lexicon Management, some king of weird binary fail-math is happening:

    Start on first page of lexicon management:



    Now click the "next page" button:



    Huh, that was weird. Let’s click it again:



    Woah!

    Clicking ’next page’ seems to add a ’10’ to the front of the page number: 1 , 101, 10101, 1010101, etc.
    Clicking ’previous page’ also behaves bizarrely but in a different way - it subtracts 100 each time: 10101, 9901, 9801, etc.

    Manual override isn’t working either: typing a ’2’ into the box gets translated to ’101’, ’3’ becomes ’10101’, and so forth.

    My detective work so far leads me to suspect that this affects pages with 10 or more pages of results. I was noticing it on only one of my Revo installs (at 2.0.0 or 2.0.2) but now that I’ve upgraded all of them to 2.0.3 I’m seeing it on all of them. (Not 100% certain that I was just not paying close enough attention before though).

    Can anyone else recreate this? Or is it just me? Now that I’m seeing it on multiple install environments, I’m having a hard time thinking its only me.

      • 28215
      • 4,149 Posts
      splittingred Reply #2, 16 years ago
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 14883 ☆ A M B ☆
        • 450 Posts
        I manually updated modx.grid.js to reflect the changes... and cleared cache & tried in several different browsers to be sure I wasn’t using cached code... but I’m still seeing the 10101 behavior happening. Could there be more changes needed? Or is there something else I need to do besides update that file?

          • 28215
          • 4,149 Posts
          splittingred Reply #4, 16 years ago
          To use updates from Git, you’ll have to turn of JS compression and concatenation in the mgr, which will slow it down a bit. (the compress_js and concat_js settings).

          We’re looking into what it would take to do nightlies, which would fix this issue.
            shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
            • 14883 ☆ A M B ☆
            • 450 Posts
            Oh, that makes sense. Well, this isn’t an urgent need or anything. I just thought I’d try and change the code and see if it fixed the problem. I’ll just leave compression alone and look forward to the fix in 2.0.4.
              • 4172
              • 5,888 Posts
              ok, this fix is in 2.0.4

              But there are still problems with grids and paging.

              first page:
              page 1 of 10

              second page:
              page 11 of 10

              third page:
              page 111 of 10


                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 28215
                • 4,149 Posts
                Bruno, I don’t get that issue at all. Try flushing your browser cache.
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • 31724
                  • 24 Posts
                  I am having this issue from the beggining of revo. Expected fix in 2.0.4 but the issue is still there. Try to e.g. in system settings to change display per page to 5 and refresh. Then pagination does not work anymore. See my pic.
                    • 28215
                    • 4,149 Posts
                    Hm, can you file that as a bug here: http://bugs.modx.com/
                      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                      • 4172
                      • 5,888 Posts
                      trying to login on http://bugs.modx.com.
                      But forgot my password for that account and get:

                      Internal error
                      
                      An error occurred on the page you were trying to access.
                      If you continue to experience problems please contact your redMine administrator for assistance.


                      Since there is no forgot password - link I went to http://modxcms.com/ and try the link ’forgot password’ I’m directed to http://bugs.modx.com/secure/ForgotLoginDetails!default.jspa
                      and get the redMine 404 page
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!