HTML content missing from some pages

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

    But some pages return plain text instead:

    Found this in the ssl logs:

    [Thu Mar 25 14:33:35.087212 2021] [php7:error] [pid 3778] [client] 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:

    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!

  • Senior Developer

    @altitudehack May I ask you to open another topic on this issue so we don’t mix things up here? Please post all the details you have here plus the output of grep packages /opt/fog/.fogsettings in that new topic. Maybe also add instructions on how you installed MariaDB (external repo I suppose) so I might be able to reproduce the issue.

    Did you switch form the CentOS default mysql 5.7.x to MariaDB from external repo just recently? I ask because this same issue should have come up when updating to FOG already.

  • @sebastian-roth I did a new get pull but the installer does not recognize my MariaDB installation:

     * Checking package: make......................................OK
     * Checking package: mariadb...................................Failed!
    !! The installer was not able to run all the way to the end as   !!
    !! something has caused it to fail. The following few lines are  !! 
    !! from the error log file which might help us figure out what's !!
    !! wrong. Please add this information when reporting an error.   !!           
    !! As well you might want to take a look at the full error log   !!
    !! in /files/git/fogproject-dev-branch/bin/error_logs/fog_error_1.5.9.65.log !!
    package mariadb is not installed         
    # mysql -V
    mysql  Ver 15.1 Distrib 10.5.9-MariaDB, for Linux (x86_64) using readline 5.1
    # rpm -qa | grep -i maria
  • Senior Developer

    @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.

  • Senior Developer

    @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?

  • Senior Developer

    @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.