osTicket Version v1.10.1
Web Server Software Microsoft-IIS/10.0
MySQL Version 5.5.45
PHP Version 5.6.31
When doing an Advanced Ticket Search and selecting Created on and any date, I get an HTTP 500 error page. I can successfully search Created dates in other ways but NOT when it's one specific date.
This is the error in the PHP error logs:
[09-Apr-2018 23:38:41 UTC] PHP Fatal error: __clone method called on non-object in C:\inetpub\wwwroot\support\include\class.forms.php on line 2035
Here's the line referenced in class.forms.php (bolded):
function getSearchQ($method, $value, $name=false) {
$name = $name ?: $this->get('name');
$config = $this->getConfiguration();
$value = is_int($value)
? DateTime::createFromFormat('U', !$config['gmt'] ? Misc::gmtime($value) : $value) ?: $value
: $value;
switch ($method) {
case 'equal':
$l = clone $value;
$r = $value->add(new DateInterval('P1D'));
return new Q(array(
"{$name}__gte" => $l,
"{$name}__lt" => $r
If anyone can provide any assistance it would be greatly appreciated. Thank you.