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

Call PEAR non-Static to get rid of unnecessary warning messages

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.2.0
    • Component/s: Accounting Integration
    • Labels:
      None

      Description

      My log was allways full of Warnings like this one:

      Strict warning: Non-static method CRM_Utils_System::url() should not be called statically, assuming $this from incompatible context in CRM_Utils_System->crmURL() (Line 226 in /srv/ht/pub/sites/all/modules/civicrm/CRM/Utils/System.php).

      To get rid of this message i have changed all occurrence of:

      function isError ()

      replaced with:

      static function isError ()

      As mentioned in this forum post: http://forums.devshed.com/showpost.php?p=2605343&postcount=8

      Hope this was helpful

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              andromedas Alexandro Gratiolet
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10 minutes
                10m
                Remaining:
                Remaining Estimate - 10 minutes
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified