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

new embedded profiles give invalid html

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.5
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)

      Description

      I pasted the html output from the edit contribution page - civicrm/admin/contribute/settings?reset=1&action=update&id=1 screen into an online htm validator & got multiple errors per below

      (note that the html on this particular screen was cleaned at one point in the 4.4 series so this is a regression - apparently from the new embedded profiles - presumably a case of putting the URL in some new function through CRM_Utils_System::url - or passing the html_encode param in with it)

      Warning Line 20, Column 108: cannot generate system identifier for general entity "context"

      …":"\/civicrm\/profile\/create?reset=1&context=dialog&gid=4","type":"Individual…

      An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (. The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

      Entity references start with an ampersand (&) and end with a semicolon (. If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters.

      If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

      Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: