Page 1 of 1

error obtain_portal_config() in portal.php

Posted: 18. May 2010 18:08
by vizant
Your Portal Version: 1.0.5RC3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Beginner

What have you done before the problem was there?
I try to move portal.php from /forums to /

What have you already tryed to solve the problem?


Description and Message
I installed board 3 was fine than i install Galerry that was ok to , after i want to see portal like first page i make like is in knowledge base but get just error

Fatal error: Call to undefined function obtain_portal_config() in /xxxxx/local/home/xxxx/xxxxxxxx.org/portal.php on line 24

i had truoble to find LINE in forums/includes/functions.php

Open /forums/includes/functions.php
Find
Code: Select all
'U_PORTAL' => append_sid("{$phpbb_root_path}portal.$phpEx"),

Replace with
Code: Select all
'U_PORTAL' => append_sid("../portal.$phpEx"),
i find something like that and change that maybe there is problem

Can i get any help?

What have to be in root folder .htacces file is just

DirectoryIndex portal.php index.php index.html index.htm or something more

Re: error obtain_portal_config() in portal.php

Posted: 18. May 2010 18:38
by Marc
No, I think the problem is that your portal/includes/functions.php seems to be corrupted. Re-upload the file from the package.

Re: error obtain_portal_config() in portal.php

Posted: 18. May 2010 19:00
by vizant
But in guide is

Open /forums/includes/functions.php

but u want to change

Open /portal/includes/functions.php

anyway i try to find in portal /include/functions.php and forums/include/functions.php and there is no code line like that.
Than i try in your
Board3portal install files and in Upgrade paket phpBB 3.0.7 and i can't find code line

Code: Select all

'U_PORTAL'            => append_sid("{$phpbb_root_path}portal.$phpEx"),

functions.php in includes?


Ok here in Forums/Includes/functions.php
is line

Code: Select all

'U_PORTAL'				=> (isset($portal_config['portal_enable']) && $portal_config['portal_enable'] == true) ? append_sid("{$phpbb_root_path}portal.$phpEx") : '',
If is that line do i have to change Full line just that last part your guide is not clear if is only part of the line?

Re: error obtain_portal_config() in portal.php

Posted: 18. May 2010 21:19
by Marc
The function that the error message says is missing, is insidet portal/includes/functions.php.

And if your forum root is inside the forums folder, then I'm referring to forums/portal/includes/functions.php

That file is being included by the portal in forums/includes/functions.php.

Check if you have the first edit of includes/functions.php.