Login reports white page

Server

FOG Version: 1.4 RC1

OS: Debiann 8

Description

Hi

I tried to make a Login Report for a specific host, but I always get a white page when I search for entries. It doesn’t matter wich host i use or how long the timespan is. The same error occurs when choose a user instead of a host.

1.4.0 RC 5 should address the problem though I will admit it initially removes a level of functionality people have probably become accustomed to.

Of note here, it will now display hostname and user.

The “Username” will remain under the user and the host will remain under the hose.

Clicking the “host” will display all login events for that host.
Clicking on the “username” will only display items for the hostname that was selected.
I will probably add another cell later on that will allow you to select a user for all hosts.

Currently it will be:

[hostname] [username]

Clicking [hostname] will show all user tracking events with this hostname.
Clicking [username] will show all user tracking events specific to this host AND user.

It will not ask about dates. This same thing will occur for imaging and snapin logs as well. (I do plan to add this back but more in a filter approach than a you must know what you want to look for first approach).

That all said, I’ve refactored the code and separated it out from the main “report” page and am working to do similar actions to all reports. The idea of moving all reports into a common file before was simply to get them into an OOP based style when compared to how they were (long ago) being parsed and processed.

Now that I have a “clean” system to work with, I can actually move these reports back to the report folder, and will likely move them from ‘management/reports’ to ‘lib/reports’ so we have a common point that can be easily “pluggable” too.

@Polii123 Would you consider truncating the table to start fresh? This will most likely fix the issue immediately so you can start using the login history reports from now forward. You can take a database backup before via Web Interface -> FOG Configuration -> Configuration Save -> Export
Tom hasn’t responded, and without being able to find the problem myself, this is the only thing I can offer.

Get the hostname of the system you want a report for, and use it’s name in this SQL statement to get the report you want. Look closely and carefully at the data returned - we need you to spot what’s wrong with it.

Generally white pages are caused by php syntax errors. Those would be revealed in the apache error log. So, cause the error to happen and then immediately go look in the logs here: Web Interface -> FOG Configuration -> Log Vierwer -> Apache Error Log All the logs are timestamped, you can sort them from newest to oldest. Find the one with the error and post it here.