Page 1 of 1
Error when running install.php
Posted: 4. May 2008 10:37
by hewitt
Hi,
I just want to upgrade my portal from 1.22 to the 1.0rc1. Although I can get to the install page, however when I select Yes to update to 1.0rc1, it give me this message:
PInUp Error
You must be logged in as an admin.
Go to login
Even tried to enter my id in the end of the link (&sid=12345.....) it just loop back and giving the same error. Please help?
Do you have any idea? is this a bug?
Re: Error when running install.php
Posted: 4. May 2008 10:54
by Kevin
Please try this:
Kevin wrote:- If you receive a error while trying to install the portal, that you have to be logged in as founder / Admin, please search in root/install_portal/install.php for:
Code: Select all
if( $user->data['is_registered'] && $auth->acl_get('a_board') )
{
and
Code: Select all
} else {
include($phpbb_root_path . 'install_portal/style/layout_header.'.$phpEx);
echo '<h1>' . $user->lang['INSTALLER_ERROR'] . '</h1>';
echo '<p>' . $user->lang['INSTALLER_NEEDS_ADMIN'] . '</p>';
include($phpbb_root_path . 'install_portal/style/layout_footer.'.$phpEx);
}
and delete the code
Please let me know if it helped.
Re: Error when running install.php
Posted: 4. May 2008 14:02
by hewitt
Thanks Kevin,
Yes, it worked! I can run the update successfully.
However, now I get another error. I cannot get the portal display. it give me this message:
General Error
Language file portal.php couldn't be opened.
Any idea?
Thanks
Re: Error when running install.php
Posted: 4. May 2008 14:04
by Ice
If you are using a non-english language and there is not a portal language file for you yet you have to place the language/en/mods/portal_* files into language/<your language>/mods/portal_*. And if you're feeling really nice, translate the portal.
Re: Error when running install.php
Posted: 4. May 2008 14:13
by hewitt
I copied those files as you said, but it doesn't work. still the same error.
Although I've other languages folder there, but I am not use it at the moment. And yes, when I can get this one running and when I have time. I will translate and give you those files.
Re: Error when running install.php
Posted: 4. May 2008 15:11
by hewitt
Ice wrote:If you are using a non-english language and there is not a portal language file for you yet you have to place the language/en/mods/portal_* files into language/<your language>/mods/portal_*. And if you're feeling really nice, translate the portal.
I think the problem is it still request the portal.php files from language/en/ and language/en/acp/ folders, which are from the old MOD. When I replace these files, there is no error but the portal did not look right. So, it must be somewhere still using/requesting the old files. Do you have any idea?
Re: Error when running install.php
Posted: 4. May 2008 20:48
by Kevin
Have you done the changes from the instructions in the contrib/update_phpbb3portal_122.xml file?
You can see in this instruction what have to be removed from the old portal.
Re: Error when running install.php
Posted: 5. May 2008 04:47
by hewitt
Yes, I followed the instructions in the contrib/update_phpbb3portal_122.xml file.
Re: Error when running install.php
Posted: 5. May 2008 04:56
by hewitt
Oh silly me, my apologies, I followed all the instruction and copied all the files but forgot to copy the portal.php to the root. it is still using the old portal.php file. so once I copied and overwrote it .it now run correctly. Sorry to mess thing up and thank you all for your support.
cheers.