11
antifmradio
Re: Notifications.php Blank Page for just me

sorry to reply so many times but i found the file
but problem is... the edits i need to make according to the original reply

well.... the file is already set in the correct manor

Here is a copy of my code from lines 148 - 152

echo "
        </body>
      </html>
    "
;
    echo 
$GLOBALS['xoopsLogger']->render'' );

12
antifmradio
Re: Notifications.php Blank Page for just me

ok to further test tings
i left all files as they were.

i went into the system as my wife and edited MY account
i made myself into a WEBMASTER instead of ADMIN
again i still see the same problem

13
antifmradio
Re: Notifications.php Blank Page for just me

anyone?

14
ghia
Re: Notifications.php Blank Page for just me
  • 2009/4/4 0:56

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Are you or your wife member of other user groups besides ADMIN?
Have you defined the notification mode and notification method in the same way as your wife (see user profile /modules/profile/edituser.php?uid=yourid)?

15
antifmradio
Re: Notifications.php Blank Page for just me

dont think thats the cause
literally i was using the site at say
6pm
and at 630 i just got a blank white page

i made no edits to any files.

members of other groups,
no, just one group

16
Catzwolf
Re: Notifications.php Blank Page for just me
  • 2009/4/4 5:33

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


The issue could be a rouge module, maybe possibly around that time you created some notifications to that module?

Anyway, lets get you sorted.

First, turn on PHP debugging and see if there is any errors when you try to access the notifications page.

Catz

17
antifmradio
Re: Notifications.php Blank Page for just me

Thanks again catz
but thats what i posted on the previous page
i posted the error from debug report,

here it is but keep in mind
i didnt turn on, turn off, or even type anything into the website between the hours of
6pm and 9pm on that day
6pm i went into the site, checked my PMs
and that was it besides deleting them.

then i log out and get ready for my radio show,
the show starts at 9pm so i logged back in,
at that point i went to notifications and i got the blank screen
again.. i still didnt change anything

Here is the info with Debug on

looks the same as posted on previous page

Fatal errorCall to a member function getVar() on a non-object in /home/virtual/antifm/public_html/modules/extcal/include/notification.inc.php on line 18
All errors 
(0queries (78blocks (0extra (0timers (3
)

as you can see "ALL errors" shows (0)
the only thing it tell me is something about line 18 in an extcal file

i even turned this module off
and still got a blank page
So i turned it back on

18
trabis
Re: Notifications.php Blank Page for just me
  • 2009/4/4 18:07

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Try edit extcal/include/notification.inc.php and replace with this:
<?php

if (!defined("XOOPS_ROOT_PATH")) {
    die(
"XOOPS root path not defined");
}

function 
extcal_notify_iteminfo($category$item_id)
{
    if (
$category == 'global' || $category == 'cat') {
        
$item['name'] = '';
        
$item['url'] = '';
        return 
$item;
    }

    if (
$category == 'event') {
        
$eventHandler xoops_getmodulehandler('event''extcal');
        
$event $eventHandler->getEvent($item_id0true);

        if (
is_object($event)) {
            
$item['name'] = $event->getVar('event_title');
            
$item['url'] = XOOPS_URL '/modules/extcal/event.php?event='.$event->getVar('event_id');
            return 
$item;
        }
        
        return 
null;

    }
}
?>

19
antifmradio
Re: Notifications.php Blank Page for just me

Quote:

trabis wrote:
Try edit extcal/include/notification.inc.php and replace with this:
<?php

if (!defined("XOOPS_ROOT_PATH")) {
    die(
"XOOPS root path not defined");
}

function 
extcal_notify_iteminfo($category$item_id)
{
    if (
$category == 'global' || $category == 'cat') {
        
$item['name'] = '';
        
$item['url'] = '';
        return 
$item;
    }

    if (
$category == 'event') {
        
$eventHandler xoops_getmodulehandler('event''extcal');
        
$event $eventHandler->getEvent($item_id0true);

        if (
is_object($event)) {
            
$item['name'] = $event->getVar('event_title');
            
$item['url'] = XOOPS_URL '/modules/extcal/event.php?event='.$event->getVar('event_id');
            return 
$item;
        }
        
        return 
null;

    }
}
?>


Good lord Trabis
its working!!!!!
now the question still remains........ while it was working fine at 6pm and i logged out
what happened beween then and 9pm when i logged back in to stop it from working?

Ok wow.. and let me correct myself for a second before i let murphys law right into my livingroom

Its working right now.. for now HAHAHA

i also went to templates_c and deleted all file from there before clicking on the notifications link

Ill send a message to other users to see if now they have any issues going to the page before i think its just me that CAN see it while others can not

now that would be a switch wouldnt it lol

20
trabis
Re: Notifications.php Blank Page for just me
  • 2009/4/4 19:47

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Let me explain:


1 - User1 subscribe notifications for an extcal event
2 - Extcal event is removed by user2(but the notifications are not updated as they should)
3 - User1 access his notifications page and get blank page because notification exists but not the event item.

So the module developer should fix module so it deletes notifications when deleting an event.

What I did was just preventing the blank page. Don't take it has a good fix.

The notifications for non existent items are still present in your database notifications table. Although they will not be a problem for your users anymore, they are occupying space and wasting resources.

Login

Who's Online

246 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 246


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits