Page 1 of 1

Error when accessing user control panel

Posted: Tue May 08, 2012 12:03 am
by alawishes
Support Request Template
What version of phpBB are you using? phpBB 3.0.10
What is your board's URL? http://aussiefinchforum.net/
Who do you host your board with? tmd Hosting
How did you install your board? Someone else installed my board for me
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? Yes
Do you have any MODs installed? Yes
What version of phpBB3 did you update from? phpBB 3.0.7
What MODs do you have installed? ACP Add User MOD
Add Disclaimer
Advanced Block Mod
Advertisement Management
Prime Links
mChat
phpbb Calendar
What styles do you currently have installed? Prosilver
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 5
What is your level of experience? New to PHP and phpBB
What username can be used to view this issue? No answer given
What password can be used to view this issue? No answer given
When did your problem begin? After upgrade to 3.0.10
Please describe your problem. Just had our forum updated to 3.0.10.
Getting this error when accessing the user control panel

Fatal error: Call to undefined method user::get_passworded_forums() in /home/aussiefi/public_html/includes/functions_display.php on line 1013

Unfortunately the person who did the upgrade is another timezone and is probably asleep now.

I was hoping to resolve this myself.

I searched here and found an answer that said if you donot have mods just upload the file again.
I have MODS installed so i was unsure what to do next.

Thanks
Generated by SRT Generator

Re: Error when accessing user control panel

Posted: Tue May 08, 2012 12:42 am
by nuckfan15
What update method did you use? (How did you update your board?)

Re: Error when accessing user control panel

Posted: Tue May 08, 2012 12:47 am
by StefanL
The function:

Code: Select all

function get_passworded_forums() 
is in includes/session.php. Check so this file is on the server.

Re: Error when accessing user control panel

Posted: Tue May 08, 2012 12:58 am
by alawishes
Nuckfan15 - I had the board updated by someone else, so i am not sure what method they used. They are uncontactable at the moment. Sorry I cannot help there.

StefanL - i checked on the server in Includes and the session.php file is there.

Re: Error when accessing user control panel

Posted: Tue May 08, 2012 2:08 am
by Oyabun1
Open /includes/functions_display.php

Find

Code: Select all

// Obtain active topic
Immediately after that should be

Code: Select all

	// We need to exclude passworded forums here so we do not leak the topic title
	$forum_ary_topic = array_unique(array_merge($forum_ary, $user->get_passworded_forums()));
	$forum_sql_topic = (!empty($forum_ary_topic)) ? 'AND ' . $db->sql_in_set('forum_id', $forum_ary_topic, true) : '';
If it's not there it would appear that whomever did the update didn't correctly merge the code changes. You would need to ask them how they handled any reported conflicts when updating.

Re: Error when accessing user control panel

Posted: Tue May 08, 2012 2:15 am
by StefanL
It's probably your MOD: s that makes this. If your sessions.php is there and contain the function get_passworded_forums(), the sessions.php is not called in the correct manner. I could suggest you several things, like start with a clean install and add MOD after MOD, but I advice that you wait until you get hold of the person that have updated your forum. You may save a lot of time there.

Re: Error when accessing user control panel

Posted: Tue May 08, 2012 3:53 am
by alawishes
Thanks to all who replied.

Stefan you were correct. it was because my mods were from older versions and was conflicting.

My upgrade man has awoken and resolved for me

Thanks again