Details

    • Type: Sub-task
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.5
    • Fix Version/s: 4.1.0
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      Causes numerous errors on event registration page:
      Notice: Undefined property: stdClass::$componentid in /home/xxxx/public_html/libraries/joomla/application/menu.php on line 231

      To fix change: /components/com_civicrm/civicrm.php
      Line:
      $item = $menu->getItems('componentid', $component->id, true);
      To:
      $item = $menu->getItems('component_id', $component->id, true);
      However apparently this will break Civi version 3.x.x

        Attachments

        1. civicrm.php.patch
          0.6 kB
          Brian Shaughnessy
        2. CRM-9461 Screenshot.jpg
          200 kB
          chankartat

          Activity

          [CRM-9461] 'componentid' bug still exists in CiviCRM 4.0.8
          chankartat added a comment -

          Affects v4.0.8 too running on Joomla v1.7

          To fix change: /components/com_civicrm/civicrm.php
          Line:
          $item = $menu->getItems('componentid', $component->id, true);
          To:
          $item = $menu->getItems('component_id', $component->id, true);

          Brian Shaughnessy added a comment -

          chankartat –
          can you clarify how to reproduce this? I setup a public event and created a menu item link to the info page.
          i visited the info and reg pages, and received no error on screen, in the apache log, or in the civicrm log.

          if you can setup/replicate on the sandbox site, that would be helpful too: http://sandbox.joomla.civicrm.org/

          Brian Shaughnessy added a comment -

          i can't reproduce the error, but confirmed that the variable is incorrect.
          i suspect they changed the name between J15 and J16+

          however, i don't think we even need the component id. it's not used anywhere.

          i'll file a patch.

          Brian Shaughnessy added a comment -

          chankartat -
          i just removed that line altogether. would be good if you can apply and test, as I was not able to actually reproduce the errors.

          chankartat added a comment -

          Hi Brian,

          As demo user, I can't reproduce exactly my setup in the sandbox as I was not allowed to create menu items. I encountered this bug when linking a frontend menu item in J1.7 to any CiviCRM 4.0.* backend forms (attached screenshot).

          I have tried the patch by commenting out entirely line 55 $item = $menu->getItems('componentid', $component->id, true) in com_civicrm/site/civicrm.php .
          It works !!

          Hope this patch can be release soon as it is affecting all J1.6+ installation

          Brian Shaughnessy added a comment -

          Lobo - can you apply the patch and close. thx.

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              chankartat

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified