PDA

View Full Version : Fatal error: Call to a member function set()


jeane paul
13 Mar 07, 06:20
Greetings,

after using autocookie mod, and had to put things on default again cz unfortunately something went wrong after using that mod;

now i got this message, and its my wrong to do it in a live forums;
Fatal error: Call to a member function set() on a non-object in /home/jbeane/public_html/paouen/includes/page_header.php on line 719

pls help me to solve this;

CyberAlien
13 Mar 07, 08:09
Attach your page_header.php

jeane paul
13 Mar 07, 08:22
Greetings,

here it is CA; hope you can help me :( been doing restore stuffs in my site, but i still get the same error;

i shouldn't have done that to my live forums T_T;

CyberAlien
13 Mar 07, 08:32
Its caused by calendar mod, not by autocookie mod. Probably you have accedently removed parts of code of that mod in other files.

jeane paul
13 Mar 07, 08:46
Its caused by calendar mod, not by autocookie mod. Probably you have accedently removed parts of code of that mod in other files.

Greetings,

how is that?, i dint edit any files ca; any clue?:(

CyberAlien
13 Mar 07, 08:51
Code you removed should be somewhere in script startup. It might be in index.php, common.php or includes/sessions.php. Can't tell you exactly where it is because I haven't used that mod.

jeane paul
13 Mar 07, 09:27
Greetings,

sorry ca, but do i have to look back on the mod that i did on index.php, common.php or in sessions.php since last month?

CyberAlien
13 Mar 07, 09:34
Find calendar mod that you have installed, look in installation instructions and compare it with code you have in php files.

jeane paul
13 Mar 07, 09:59
ok Ca, thanks

jeane paul
13 Mar 07, 10:03
Greetings,

seem to be hard in doing that :(

how about restoring the whole board? any idea on how to do that ca?

Edit: i include the mod that i install, it might help; :(

CyberAlien
13 Mar 07, 10:09
That mod doesn't modify any files. Whatever you have done to your forum wasn't caused by that mod.

jeane paul
13 Mar 07, 11:08
Greetings,

restoring the whole site from a backup copy, is a good idea?

CyberAlien
13 Mar 07, 11:14
Greetings,

restoring the whole site from a backup copy, is a good idea?
yep. but before doing it make backup of your current forum in case if there are problems with old backup

jeane paul
13 Mar 07, 11:17
Greetings,

ok ca, wish me luck; really, i was about to launch a new style that i modify from aphrodite today; but, unfortunately, i wasnt;

jeane paul
13 Mar 07, 11:47
just when i need, now am having an error while downloadng my backup in my host "503 login authentication failed" >.< d4m|\| it

jeane paul
14 Mar 07, 11:48
Greetings,

sadly, restoring the whole site dint work; i dont know why;

CA, if i delete the whole forum(my phpbb directory) and replace it with my local files of working forum(my last backup);

any suggestion CA? am really sad right now, my site is down for 3 days already;

CyberAlien
14 Mar 07, 11:52
CA, if i delete the whole forum(my phpbb directory) and replace it with my local files of working forum(my last backup);
Yes, do that.

jeane paul
14 Mar 07, 11:54
Greetings,

CA, wish me luck sir; T_T really, few days from now, be migrating to japan and i dont know what to do if i cant fix my site; that site is the only communication that ill left with my friends and my customers in my computer shop; T_T

jeane paul
14 Mar 07, 13:39
Greetings,

CA, my site is back; am testing it currently if there are errors left;

btw, i have something to ask; if i can use some styles i did, out from aphrodite;

there are some few modification i did on aphrodite; ideas came from evo;

thanks CA;

rsalafi
27 Feb 08, 11:03
I have the same problem after installing Email Digests Mod

Fatal error: Call to a member function set() on a non-object in /home/my-site/includes/page_header.php on line 514

Line 514 is line that says: $user->set();

Any idea to solve this problem?

//-- mod : calendar ------------------------------------------------------------
//-- add
global $user, $config, $calendar_api;
$user->set();
$calendar_api->set();
if ( !defined('IN_CALENDAR') && !defined('HAS_DIED') && (intval($config->data['calendar_header_cells']) || (intval($user->data['user_calendar_header_cells']) && !intval($config->data['calendar_header_cells_over']))) )
{
include($config->url('includes/class_calendar_handler'));

calendar_extend_template();
$calendar_header_box = new calendar_header_box('index');
$calendar_header_box->display();
$calendar_header_box->destroy();
unset($calendar_header_box);
calendar_extend_template();
}
$template->assign_vars(array(
'L_CALENDAR' => $user->lang('Calendar'),
'I_CALENDAR' => $user->img('menu_calendar'),
'U_CALENDAR' => $config->url('calendar', '', true),
));
//-- fin mod : calendar --------------------------------------------------------