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

Current Version: 2.0.2
Released: 2013-10-27
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked
User avatar

Topic author
wang5555
Translator
Posts: 55
Joined: 18. December 2008 01:39
phpBB.com User: wang5555
Location: Taiwan

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

Post 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.
Last edited by wang5555 on 18. May 2012 05:18, edited 2 times in total.
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to visit my forum!!
https://wang5555.dnsfor.me/phpBB3/
p.s. Shut down computer before 11 clock night!!!
User avatar

archivar
Portal Professional
Posts: 1959
Joined: 19. April 2009 21:34
phpBB.de User: archivar
phpBB.com User: archivar
Location: Deutschland

Re: Get some error and my portal page will garbled

Post 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?
V.G. archivar
sorry for my bad english
User avatar

Topic author
wang5555
Translator
Posts: 55
Joined: 18. December 2008 01:39
phpBB.com User: wang5555
Location: Taiwan

Re: Get some error and my portal page will garbled

Post 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.
Last edited by wang5555 on 17. May 2012 14:25, edited 2 times in total.
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to visit my forum!!
https://wang5555.dnsfor.me/phpBB3/
p.s. Shut down computer before 11 clock night!!!
User avatar

archivar
Portal Professional
Posts: 1959
Joined: 19. April 2009 21:34
phpBB.de User: archivar
phpBB.com User: archivar
Location: Deutschland

Re: Get some error and my portal page will garbled

Post 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:
V.G. archivar
sorry for my bad english
User avatar

Topic author
wang5555
Translator
Posts: 55
Joined: 18. December 2008 01:39
phpBB.com User: wang5555
Location: Taiwan

Re: Get some error and my portal page will garbled

Post 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.
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to visit my forum!!
https://wang5555.dnsfor.me/phpBB3/
p.s. Shut down computer before 11 clock night!!!
User avatar

archivar
Portal Professional
Posts: 1959
Joined: 19. April 2009 21:34
phpBB.de User: archivar
phpBB.com User: archivar
Location: Deutschland

Re: Get some error and my portal page will garbled

Post 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.
V.G. archivar
sorry for my bad english
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Get some error and my portal page will garbled

Post by Marc »

I'm currently taking a look at it.
User avatar

Topic author
wang5555
Translator
Posts: 55
Joined: 18. December 2008 01:39
phpBB.com User: wang5555
Location: Taiwan

Re: Get some error and my portal page will garbled

Post 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--
It is more blessed to give than to reveive, welcome to letter, thanks & good-bye!
Good luck ^_^
Welcome to visit my forum!!
https://wang5555.dnsfor.me/phpBB3/
p.s. Shut down computer before 11 clock night!!!
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

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

Post by Marc »

Thank you for your input.

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

ixl
Sponsor
Posts: 83
Joined: 26. October 2009 21:40
phpBB.de User: IXL
phpBB.com User: IXLUKCOM
Location: UK
Contact:

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

Post by ixl »

Can I ask, if this fix is included in the latest download please?

Thanks :)
I.X.L

Just because it worked for you, doesnt mean it's right. ;)

http://WWW.TEAMGAMERS.CO.UK
Locked

Return to “Board3 Portal 2.0.x - English Support”