Only on first request: "null pointers are another name for undefined values"
We recently updated from CF7 to CF8 and have started getting the following error:
===========
The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
Null Pointers are another name for undefined values.
===========
However, it doesn't occur every time you load the page. In fact, it only occurs the first time you load the page. If you hit refresh, it's fine. If you hit refresh again, it's still fine. Visit it a little bit later, still fine. Visit it a day later? The error might be back.
We're using MySQL and not doing anything weird with the queries. For example:
<cfquery name="qGetJobs" datasource="#APPLICATION.dsn#">
SELECT * FROM jobs ORDER BY dateposted DESC
</cfquery>
(Incidentally, dateposted is a timestamp and not empty in any record.)
I've searched the forums here and found several people receiving the same error, but they're not magically fixing themselves on refresh. I did find a post on an other site that solved the problem by recreating the CF DSN.
Do you have any idea why this might be happening? Thanks!
