11-24-2017, 03:22 AM
Hi
I was getting the error
I tried running the mysql query to create the notifications table from the sql.sql and got this error
I was running an old version wamp server and that meant my mysql version was older than 5.6.5. - so I updated wamp server and then ran the mysql query to create the notification table and the error is gone.
I'm posting this here in case anyone else is having the same issue, and this thread was the first result when I googled "userspice users\classes\Notification.php on line 40"
Cheers
I was getting the error
Quote:Notice: Undefined property: stdClass::$is_read in C:\wamp\www\test\users\classes\Notification.php on line 40and I've found the issue that caused it. I looked at the line of code in question many times and couldn't see a problem, but then I looked at my database tables and realised I didn't have a notifications table.
I tried running the mysql query to create the notifications table from the sql.sql and got this error
Quote:Error Code : 1293
Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
I was running an old version wamp server and that meant my mysql version was older than 5.6.5. - so I updated wamp server and then ran the mysql query to create the notification table and the error is gone.
I'm posting this here in case anyone else is having the same issue, and this thread was the first result when I googled "userspice users\classes\Notification.php on line 40"
Cheers