• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    HTML content missing from some pages

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    2
    7
    723
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      altitudehack
      last edited by

      HTML content seems to be sporadic. The main page looks fine:
      main.png

      But some pages return plain text instead:
      html.png

      Found this in the ssl logs:

      [Thu Mar 25 14:33:35.087212 2021] [php7:error] [pid 3778] [client xxx.xxx.xxx.19:34716] PHP Fatal error:  Uncaught Exception: DateTime::__construct(): Failed to parse time string (not finished yet) at position 0 (n): The timezone could not be found in the database in /var/www/html/fog/lib/fog/fogbase.class.php:1113\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(1113): DateTime->__construct('not finished ye...', Object(DateTimeZone))\n#1 /var/www/html/fog/lib/fog/fogbase.class.php(1194): FOGBase::niceDate('not finished ye...')\n#2 /var/www/html/fog/lib/pages/hostmanagementpage.class.php(3073): FOGBase::validDate('not finished ye...')\n#3 /var/www/html/fog/lib/pages/hostmanagementpage.class.php(3242): HostManagementPage->hostSnapinHistory()\n#4 /var/www/html/fog/lib/fog/fogpagemanager.class.php(220): HostManagementPage->edit()\n#5 /var/www/html/fog/management/index.php(58): FOGPageManager->render()\n#6 {main}\n  thrown in /var/www/html/fog/lib/fog/fogbase.class.php on line 1113, referer: https://fogserver.domain.com/fog/management/index.php?node=host&sub=list
      

      date.timezone is configured in php.ini. I did update to the latest dev-branch earlier this week. Also noticed I was using MariaDB 5.5 so updated that to 10.4.
      Thank you!

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Sebastian Roth

        @altitudehack said in HTML content missing from some pages:

        FOGBase::validDate(‘not finished ye…’)\n#3 /var/www/html/fog/lib/pages/hostmanagementpage.class.php(3242)

        Definitely an issue in the dev-branch code (ref). Thanks for reporting. Will fix that soon.

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          @altitudehack Oh well, lost track of this topic, sorry.

          Looking into this again I don’t think the mentioned change would actually cause the CSS styling to fail as we see in the picture.

          Which pages did you load to get the HTML content?

          A 1 Reply Last reply Reply Quote 0
          • A
            altitudehack @Sebastian Roth
            last edited by

            @sebastian-roth Here’s the URL of a page that correctly displays html:
            https://fogserver.domain.com/fog/management/index.php?node=host&sub=list
            text.png

            And here’s one that is just plain text:
            https://fogserver.domain.com/fog/management/index.php?node=host&sub=edit&id=49
            graphics.png

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by

              @altitudehack Thanks and sorry for the long time it took. Finally found time to fix the issue and push to dev-branch. Please update to the latest.

              A 1 Reply Last reply Reply Quote 0
              • A
                altitudehack @Sebastian Roth
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Sebastian Roth

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  165

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project