Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-16032

Demo pages yield permission error on fresh build

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.7.1
    • Component/s: WordPress Integration
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      The CiviCRM demo sites include a few WordPress pages like:

      http://wp45.demo.civicrm.org/contribution-page/
      http://wpmaster.demo.civicrm.org/contribution-page/

      These sites and pages are setup automatically using the same scripts – i.e. in https://github.com/civicrm/civicrm-buildkit/tree/master/app/config/wp-demo , the "download.sh" and "install.sh" scripts call wp-cli.

      When visiting the page "/contribution-page", one sometimes gets the error: "You do not have permission to access this page." Specifically:

      A. With fresh wp45, it works fine.
      B. With fresh wpmaster, it gives the error.
      C. If you login to wpmaster and logout, then it works fine.

      I generated mysqldump's of the WP DB for conditions A+B+C, and it appears that the table "wp_options" has a row for "wp_user_roles", and the data is different. In A+C, there's data about "anonymous_user". In B, there is no data for "anonymous_user" at all.

      Any ideas?


      Footnote: One can reproduce them locally if buildkit is setup by running:

      $ civibuild create wp45 --url http://wp45.demo.civicrm.org
      $ civibuild create wpmaster --url http://wpmaster.demo.civicrm.org

        Attachments

          Activity

            People

            • Assignee:
              haystack Christian Wach
              Reporter:
              timotten Tim Otten
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: