Error when accessing user control panel

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Suggested Hosts
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
alawishes
Registered User
Posts: 14
Joined: Fri Oct 21, 2011 5:04 am

Error when accessing user control panel

Post 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
User avatar
nuckfan15
Registered User
Posts: 1849
Joined: Fri Jul 09, 2004 4:46 am
Location: Vancouver, BC
Name: Travis

Re: Error when accessing user control panel

Post by nuckfan15 »

What update method did you use? (How did you update your board?)
Travis aka Nuckfan15 - No Private Support
Make use of the Support Request Template when seeking support.
StefanL
Registered User
Posts: 2265
Joined: Wed Jul 23, 2003 10:10 pm

Re: Error when accessing user control panel

Post by StefanL »

The function:

Code: Select all

function get_passworded_forums() 
is in includes/session.php. Check so this file is on the server.
When I suggest that you should alter your files, BACKUP them BEFORE.
alawishes
Registered User
Posts: 14
Joined: Fri Oct 21, 2011 5:04 am

Re: Error when accessing user control panel

Post 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.
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Error when accessing user control panel

Post 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.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
StefanL
Registered User
Posts: 2265
Joined: Wed Jul 23, 2003 10:10 pm

Re: Error when accessing user control panel

Post 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.
When I suggest that you should alter your files, BACKUP them BEFORE.
alawishes
Registered User
Posts: 14
Joined: Fri Oct 21, 2011 5:04 am

Re: Error when accessing user control panel

Post 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
Locked

Return to “[3.0.x] Support Forum”