Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-768

Warning about missing $_SERVER['REQUEST_URI'], while working from PHP CLI

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.1
    • Fix Version/s: 5.1.3-B1
    • Component/s: Data Management
    • Labels:
      None

      Description

      I'm getting warning about missing $_SERVER['REQUEST_URI'] variable, when In-Portal is executed from PHP CLI, since there are no $_SERVER at all in PHP CLI.

      Warning isn't visible on the screen, since error reporting is turned off in In-Portal in this case. However this causes problems, when this $_SERVER['REQUEST_URI'] is written into database in NOT NULL column resulting

      ERROR 1048 (23000): Column 'PageUrl' cannot be null error (this is in CurlLog table, see task: #000950)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: