CRM-3138 php errors on reg page for non-cost event

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      https://mysite.ca/civicrm/event/register?id=10&reset=1

      Custom profile with firstname, lastname, email primary, and organization name is not rendered. Rest of page renders. Errors :

      • warning: array_keys() [function.array-keys]: The first argument should be an array in /mypath/sites/all/modules/civicrm/CRM/Event/Form/Registration.php on line 433.
      • warning: Invalid argument supplied for foreach() in /mypath/sites/all/modules/civicrm/CRM/Event/Form/Registration.php on line 433.
      • warning: Invalid argument supplied for foreach() in /mypath/sites/all/modules/civicrm/CRM/Event/Form/Registration.php on line 440.

        Attachments

          Activity

          [CRM-3138] php errors on reg page for non-cost event
          Donald A. Lobo added a comment -

          1. please reproduce on demo

          2. please discuss on forum before filing an issue

          Joe Murray added a comment -

          This is from the demo site. Note that the errors do not occur if the current user is not signed in.

          Sorry for not posting and discussing in forum first.

          Joe Murray added a comment -

          it's event 19 on demo site.

          Donald A. Lobo added a comment -

          You cannot mix an Individual and Organization field in a profile, hence it does not render and gives those php warnings. I disabled the organization name profgile and it works fine

          CRM-3037 will ensure that you cannot create / include such profiles via the user interface

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              Joe Murray

              Dates

              • Created:
                Updated:
                Resolved: