The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Status Update 016
#24
Hi

I was getting the error
Quote:Notice: Undefined property: stdClass::$is_read in C:\wamp\www\test\users\classes\Notification.php on line 40
and 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
  Reply


Messages In This Thread
Status Update 016 - by mudmin - 09-16-2017, 01:19 PM
Status Update 016 - by mudmin - 09-16-2017, 01:51 PM
Status Update 016 - by mudmin - 09-16-2017, 02:18 PM
Status Update 016 - by Brandin - 09-16-2017, 02:41 PM
Status Update 016 - by karsen - 09-16-2017, 04:24 PM
Status Update 016 - by Brandin - 09-16-2017, 04:35 PM
Status Update 016 - by mudmin - 09-16-2017, 04:53 PM
Status Update 016 - by Brandin - 09-16-2017, 05:03 PM
Status Update 016 - by karsen - 09-16-2017, 05:12 PM
Status Update 016 - by Brandin - 09-16-2017, 05:14 PM
Status Update 016 - by Brandin - 09-16-2017, 05:16 PM
Status Update 016 - by karsen - 09-16-2017, 05:29 PM
Status Update 016 - by Brandin - 09-16-2017, 05:38 PM
Status Update 016 - by mudmin - 09-16-2017, 06:17 PM
Status Update 016 - by karsen - 09-16-2017, 06:57 PM
Status Update 016 - by mudmin - 09-16-2017, 07:22 PM
Status Update 016 - by Brandin - 09-16-2017, 09:32 PM
Status Update 016 - by Brandin - 09-17-2017, 12:25 PM
Status Update 016 - by mudmin - 09-17-2017, 07:06 PM
Status Update 016 - by mudmin - 09-17-2017, 07:07 PM
Status Update 016 - by mudmin - 09-17-2017, 07:13 PM
Status Update 016 - by Brandin - 09-17-2017, 07:35 PM
Status Update 016 - by mudmin - 09-17-2017, 08:12 PM
Status Update 016 - by stowe39 - 11-24-2017, 03:22 AM
Status Update 016 - by dan - 11-24-2017, 04:14 AM
Status Update 016 - by stowe39 - 11-24-2017, 08:04 AM
Status Update 016 - by mudmin - 11-26-2017, 12:37 PM
Status Update 016 - by stowe39 - 11-28-2017, 12:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)