The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
Some problems with the notification system - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.4 (https://userspice.com/forums/forumdisplay.php?fid=27)
+--- Thread: Some problems with the notification system (/showthread.php?tid=1370)



Some problems with the notification system - vkirov - 03-10-2019

Hi,
I`m currently running version 4.4.03 with PHP 5.6. I have some PHP script pages, made from the blank project pages that write and read to/from database. But when I turn on the notification system my scripts stopped working and I get an error:

Fatal error: Call to a member function getUnreadCount() on null in /userspice/users/includes/page_footer.php on line 6

I tried different versions of PHP, but there is no effect. The notification system works, but everything on the project pages stops.

Is there a way I can fix it or this is something that will get fixed in the following versions?


RE: Some problems with the notification system - Brandin - 03-10-2019

Does this occur on page US pages or just your custom pages?


RE: Some problems with the notification system - vkirov - 03-10-2019

Only on some of my pages, but not on the US pages.


RE: Some problems with the notification system - Brandin - 03-10-2019

You more than likely need to replace your header/nav and footer calls on your custom pages. See users/account.php for example of the new header and footer calls.


RE: Some problems with the notification system - vkirov - 03-11-2019

This fixed the problem! Thanks!