Page 1 of 1

[Solved] Get some error and my portal page will garbled

Posted: 17. May 2012 13:44
by wang5555
Hi,

If I enabled "GLOBAL_ANNOUNCEMENTS" or "LATEST_NEWS" module, I get some error messages following.
And my portal page will garbled.

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 679: Undefined variable: global_announce_list
[phpBB Debug] PHP Notice: in file [ROOT]/portal/includes/functions.php on line 696: Undefined variable: global_announce_list
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4803: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4805: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4806: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4807: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3839)
p.s.

Now my forum (the PHP is v5.4.3) disabled "GLOBAL_ANNOUNCEMENTS" and "LATEST_NEWS" modules.
The another forum had the same issue.

Re: Get some error and my portal page will garbled

Posted: 17. May 2012 14:01
by archivar
Have they done that?:
Update B3P v.1.0.6 to B3P v.2.0.0b1
Delete files

Delete adm/style/acp_portal.html

Delete language/en/mods/additional_blocks.php

Delete language/en/mods/info_acp_additional_blocks.php

Delete language/en/mods/install_portal.php

Delete language/en/mods/lang_portal.php

Delete language/en/mods/lang_portal_acp.php

Delete portal/block/*.*

Delete styles/prosilver/template/portal/portal_center.html

Delete styles/prosilver/template/portal/portal_left.html

Delete styles/prosilver/template/portal/portal_right.html

Delete styles/prosilver/template/portal/block/*.*

Delete styles/prosilver/theme/images/portal/mini_cal_icon_left_arrow.png

Delete styles/prosilver/theme/images/portal/mini_cal_icon_right_arrow.png

Delete styles/prosilver/theme/images/portal/portal_login.png

Delete styles/prosilver/theme/images/portal/portal_minical.png

Delete styles/prosilver/theme/images/portal/portal_random.png

Delete styles/prosilver/theme/images/portal/portal_stats.png
UpdateB3P v.2.0.0b1 to B3P v.2.0.0
Delete files

Delete portal/includes/trim_message/*.*

Delete styles/prosilver/template/portal/modules/announcements.html

Delete styles/prosilver/template/portal/modules/announcements_compact.html
All cache emptied?

Re: Get some error and my portal page will garbled

Posted: 17. May 2012 14:17
by wang5555
archivar wrote:Have they done that?:
Update B3P v.1.0.6 to B3P v.2.0.0b1
Delete files
UpdateB3P v.2.0.0b1 to B3P v.2.0.0
Delete files
Thanks for your reply.
My forum updated B3P from v1.0.6 to v2.0.0
I am sure "Delete files" by refer "contrib/update_106_to_200/update.xml".
And completely purge the cache.

Re: Get some error and my portal page will garbled

Posted: 17. May 2012 14:22
by archivar
Do they also ask if they can translate Googl able in their language. ==> /knowledge/kb_show.php?id=60
Unfortunately I can not translate correctly. :oops:

Re: Get some error and my portal page will garbled

Posted: 17. May 2012 14:34
by wang5555
archivar wrote:Do they also ask if they can translate Googl able in their language. ==> /knowledge/kb_show.php?id=60
Unfortunately I can not translate correctly. :oops:
Thanks for your help.

I think this file "/portal/includes/functions.php" maybe had some bug.
So cause of this "Undefined variable: global_announce_list" error.

Re: Get some error and my portal page will garbled

Posted: 17. May 2012 15:15
by archivar
It may be, they have code-snippets in files of old add-ons portal and / or access from the old portal remove. Errors can not show always you the exact path.

Re: Get some error and my portal page will garbled

Posted: 17. May 2012 15:41
by Marc
I'm currently taking a look at it.

Re: Get some error and my portal page will garbled

Posted: 18. May 2012 05:17
by wang5555
Hi,
I already fix this bug.
Share my modified method:

--OPEN--
portal/includes/functions.php

--FIND--

Code: Select all

	$last_read = $topic_ids = $forum_ids = $tracking_info = $rev_forum_ids = array();
--REPLACE WITH--

Code: Select all

	$last_read = $topic_ids = $forum_ids = $tracking_info = $rev_forum_ids = $global_announce_list = array();
--SAVE & CLOSE--

Re: [Solved] Get some error and my portal page will garbled

Posted: 24. May 2012 20:43
by Marc
Thank you for your input.

This has been fixed in our repository:
https://github.com/board3/Board3-Portal ... f71bab3db4

Re: [Solved] Get some error and my portal page will garbled

Posted: 29. May 2012 12:32
by ixl
Can I ask, if this fix is included in the latest download please?

Thanks :)