Invalid JSON response when upgrade from 1.6.1 to 1.6.5

Invalid JSON response when upgrade from 1.6.1 to 1.6.5

bpitonibpitoni Posts: 21Questions: 7Answers: 2

Response body in console shows
"Undefined variable key in Editor-1.6.5/php/Database/Query.php on line 661"

I believe it is objecting to this 'where' clause in my code (best guess):

        ->where( function ($q) use($now) {
            $q->where_group( function ($r) use ($now) {
                $r
                ->where('in_effect_end', null)
                ->where( function($s) {
                    $s->where('in_effect_start', 'DATE_ADD( NOW(), INTERVAL -1 DAY )', '>=', false);            
                  } )   
                ->or_where('in_effect_end', $now, '>=');                
             } );
        } ) 

The only change I've made is to replace Editor 1.6.1 with 1.6.5 (due to datepicker issues).

On the test page, the shutdowns_extended table works fine (that table is still using Editor 1.6.1 on query page).

https://facilities.rochester.edu/protected/csc_dashboard/shutdowns_test.php

Any help would be appreciated.

Thanks.

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.