This topic is locked
[SOLVED]

  Error Type 4096 - Object Of Class Datetime Could Not Be Converted To String

5/2/2013 10:54:08 AM
PHPRunner General questions
S
Suety29 author

Hi Guys,
I have an application that runs fine on my local machine but when i upload to my hosting site, quarter of the edit page loads and i see the following error on the screen:
Error Type: 4096

Error Description: Object of class DateTime could not be converted to string

Error File: E:..\classes\controls\DateField.php
Can anyone help me resolve this urgently?

Admin 5/2/2013

It's hard to tell anything without having access to your application.
You can post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

S
Suety29 author 5/6/2013



It's hard to tell anything without having access to your application.
You can post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.


Thanks Sergey,
I figured out what was causing the error.. It had something to do with the date format.

I tried modifying the query page in phprunner by formatting the date fields in the query using CONVERT(VARCHAR(10), Date_Field, 101) AS Date_Field. This solved the issue with error 4096.
However, i was then faced with another issue. The date was showing on the edit page but not on the view page or if the date field was read only.
I therefore resorted to changing the data type in the mssql database to datetime and all issues were resolved (before they were set to date).