Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-1812

1.9 registration error "you need to call this page from a Moodle registration page"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: moodle.org
    • Labels:

      Description

      I've been updating some sites to latest 1.9.18+... and after upgrading I went straight to the registration page to update it.

      And in the three updated sites I got "Sorry, but you need to call this page from a Moodle registration page." a bunch of times. Only after 2-3 attempts I got the "Thank you for keeping your entry updated." message.

      Upgrading some 2.x sites I did not get such problem.

      Ciao

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              tsala Helen Foster added a comment -

              Eloy, thanks for your report. I've added Jerome as a watcher in case he has any ideas about the cause of this problem.

              Show
              tsala Helen Foster added a comment - Eloy, thanks for your report. I've added Jerome as a watcher in case he has any ideas about the cause of this problem.
              Hide
              bferguson Bryan Ferguson added a comment -

              Our site is on 1.9.12+ (I inherited the site and haven't been able to upgrade for various reasons)

              When I try to update the registration I also get forwarded to the "Sorry but you need to call this page from a moodle registration page"

              for me no matter how many times or browsers (chrome, FF, IE9) it fails.

              Show
              bferguson Bryan Ferguson added a comment - Our site is on 1.9.12+ (I inherited the site and haven't been able to upgrade for various reasons) When I try to update the registration I also get forwarded to the "Sorry but you need to call this page from a moodle registration page" for me no matter how many times or browsers (chrome, FF, IE9) it fails.
              Hide
              tsala Helen Foster added a comment -

              Bryan, thanks for your comments.

              It seems more and more people are having this problem, as in addition to the duplicate issues MDLSITE-1988 and MDLSITE-1989, there are also two forum threads https://moodle.org/mod/forum/discuss.php?d=214662 and https://moodle.org/mod/forum/discuss.php?d=215469

              Thus I am increasing the priority and assigning it to you Jerome hoping you can fix it soon.

              Show
              tsala Helen Foster added a comment - Bryan, thanks for your comments. It seems more and more people are having this problem, as in addition to the duplicate issues MDLSITE-1988 and MDLSITE-1989 , there are also two forum threads https://moodle.org/mod/forum/discuss.php?d=214662 and https://moodle.org/mod/forum/discuss.php?d=215469 Thus I am increasing the priority and assigning it to you Jerome hoping you can fix it soon.
              Hide
              jerome Jérôme Mouneyrac added a comment -

              Thanks Helen, unfortunally I don't have access to moodle.org (specially this 1.9 registration script), which I understand as we most likely want to limit access to moodle.org (and already few people have access to it). I only worked on 2.X registration process and MOOCH. I'd be happy to have a look thought. Assigning to Matt in the meantime.

              Show
              jerome Jérôme Mouneyrac added a comment - Thanks Helen, unfortunally I don't have access to moodle.org (specially this 1.9 registration script), which I understand as we most likely want to limit access to moodle.org (and already few people have access to it). I only worked on 2.X registration process and MOOCH. I'd be happy to have a look thought. Assigning to Matt in the meantime.
              Hide
              matts Matt Sharpe (Inactive) added a comment -

              If we still care about registering 1.9 sites, I can sort out access for someone to see what's up and fix it, just let me know who and what they need.

              Show
              matts Matt Sharpe (Inactive) added a comment - If we still care about registering 1.9 sites, I can sort out access for someone to see what's up and fix it, just let me know who and what they need.
              Hide
              ratna Visvanath Ratnaweera added a comment -

              Matt, why shouldn't moodle.org care about 1.9? See https://moodle.org/mod/forum/discuss.php?d=215469 which Helen already pointed out.

              What is the purpose of https://moodle.org/stats/ if moodle.org does refuse to register 1.x sites?

              Show
              ratna Visvanath Ratnaweera added a comment - Matt, why shouldn't moodle.org care about 1.9? See https://moodle.org/mod/forum/discuss.php?d=215469 which Helen already pointed out. What is the purpose of https://moodle.org/stats/ if moodle.org does refuse to register 1.x sites?
              Hide
              fox Séverin Terrier added a comment -

              Same problem for me with latest 1.9.19+...

              Show
              fox Séverin Terrier added a comment - Same problem for me with latest 1.9.19+...
              Hide
              dougiamas Martin Dougiamas added a comment -

              I was just made aware of this! I can't believe it's been like this for 6 months.

              Show
              dougiamas Martin Dougiamas added a comment - I was just made aware of this! I can't believe it's been like this for 6 months.
              Hide
              dougiamas Martin Dougiamas added a comment -

              I believe it's a problem from when we switched to https. The redirect from http to https loses all the POSTed data.

              Show
              dougiamas Martin Dougiamas added a comment - I believe it's a problem from when we switched to https. The redirect from http to https loses all the POSTed data.
              Hide
              dougiamas Martin Dougiamas added a comment -

              Assigning to Matt to try placing an exception into the redirect for this URL only.

              Show
              dougiamas Martin Dougiamas added a comment - Assigning to Matt to try placing an exception into the redirect for this URL only.
              Hide
              poltawski Dan Poltawski added a comment -

              Matt: fyi I believe we are doing the redirect at cloudflare level too.

              Show
              poltawski Dan Poltawski added a comment - Matt: fyi I believe we are doing the redirect at cloudflare level too.
              Hide
              dougiamas Martin Dougiamas added a comment -

              It's entirely possible that there is another problem underneath this one, because the move to https was on October 17 or so, and the registration script was apparently broken since June, but we can check that next once data is actually getting to that script.

              Show
              dougiamas Martin Dougiamas added a comment - It's entirely possible that there is another problem underneath this one, because the move to https was on October 17 or so, and the registration script was apparently broken since June, but we can check that next once data is actually getting to that script.
              Hide
              dougiamas Martin Dougiamas added a comment -

              Our https redirect is happening on Cloudflare. I tried to exclude /register from the redirect but their page rules don't support this currently, but might later in 2013. (This is a definitive answer from Cloudflare support).

              Show
              dougiamas Martin Dougiamas added a comment - Our https redirect is happening on Cloudflare. I tried to exclude /register from the redirect but their page rules don't support this currently, but might later in 2013. (This is a definitive answer from Cloudflare support).
              Hide
              dougiamas Martin Dougiamas added a comment -

              Apparently this CAN work from the cloudflare side but the problem is our own redirect rules on the server. I messed with them for ages just now but without 100% success. Reverting to leave for Matt next week.

              Show
              dougiamas Martin Dougiamas added a comment - Apparently this CAN work from the cloudflare side but the problem is our own redirect rules on the server. I messed with them for ages just now but without 100% success. Reverting to leave for Matt next week.
              Hide
              dougiamas Martin Dougiamas added a comment -

              Only remnant is a top-level symbolic link at /register, just FYI

              Show
              dougiamas Martin Dougiamas added a comment - Only remnant is a top-level symbolic link at /register, just FYI
              Hide
              mspurrier Matthew Spurrier added a comment -

              Okay, so what we can do is setup a rewrite rule that proxies http to the correct form, which will preserve the post data.
              I'll look into what I need to change and then action it.

              Show
              mspurrier Matthew Spurrier added a comment - Okay, so what we can do is setup a rewrite rule that proxies http to the correct form, which will preserve the post data. I'll look into what I need to change and then action it.
              Hide
              mspurrier Matthew Spurrier added a comment -

              Removed cloudflare redirect and enabled the following on apache:

              <VirtualHost *:80>
              ServerName moodle.org
              ServerAlias www.moodle.org
              SSLProxyEngine On
              RewriteEngine On

              1. 301 redirect all traffic to https bar /register
                RewriteCond % {REQUEST_URI} !^/register
                RewriteRule ^(.*)$ https://moodle.org$1 [R=301,L]
                # Proxy /register requests to https equiv site in order to preserve post data
                RewriteCond %{REQUEST_URI}

                ^/register
                RewriteRule ^/register(.*) https://moodle.org/register$1 [P]
                </VirtualHost>

              (also did some config cleanup on the server while i was there.

              Martin has tested, working for him.

              Marking resolved.

              Show
              mspurrier Matthew Spurrier added a comment - Removed cloudflare redirect and enabled the following on apache: <VirtualHost *:80> ServerName moodle.org ServerAlias www.moodle.org SSLProxyEngine On RewriteEngine On 301 redirect all traffic to https bar /register RewriteCond % {REQUEST_URI} !^/register RewriteRule ^(.*)$ https://moodle.org$1 [R=301,L] # Proxy /register requests to https equiv site in order to preserve post data RewriteCond %{REQUEST_URI} ^/register RewriteRule ^/register(.*) https://moodle.org/register$1 [P] </VirtualHost> (also did some config cleanup on the server while i was there. Martin has tested, working for him. Marking resolved.
              Hide
              dougiamas Martin Dougiamas added a comment - - edited

              Yay! Thanks Matt

              Show
              dougiamas Martin Dougiamas added a comment - - edited Yay! Thanks Matt
              Hide
              tsala Helen Foster added a comment -

              Many thanks Matt for fixing this issue. I have replied to the forum threads encouraging people to register / re-register their 1.9 sites.

              Show
              tsala Helen Foster added a comment - Many thanks Matt for fixing this issue. I have replied to the forum threads encouraging people to register / re-register their 1.9 sites.
              Hide
              tylergilpin Tyler Gilpin added a comment -

              It works for me now, however isn't it supposed to update the registration info on your page as well? After registering I still see the previous registration info on "/admin/register.php"

              Tyler

              Show
              tylergilpin Tyler Gilpin added a comment - It works for me now, however isn't it supposed to update the registration info on your page as well? After registering I still see the previous registration info on "/admin/register.php" Tyler
              Hide
              tsala Helen Foster added a comment -

              Seems it's once again not possible to register 1.9 sites - see MDLSITE-2238.

              Show
              tsala Helen Foster added a comment - Seems it's once again not possible to register 1.9 sites - see MDLSITE-2238 .

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: