Board3 2.0.0 error debug mode

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

Topic author
metal master
Active Member
Posts: 11
Joined: 26. May 2011 17:00

Board3 2.0.0 error debug mode

Post by metal master »

Site: http://www.napolifans.it
Phpbb3 3.0.10

I installed board3, everything went well but when I post this link (http://www.napolifans.it/portal.php?announcement=10) gives me this error

Code: Select all

SQL ERROR [ mysql4 ]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4 [1064]

SQL

SELECT forum_id, mark_time FROM phpbb_forums_track WHERE user_id = 2 AND forum_id =

BACKTRACE

FILE: [ROOT]/includes/db/mysql.php
LINE: 175
CALL: dbal->sql_error()

FILE: [ROOT]/includes/functions.php
LINE: 1653
CALL: dbal_mysql->sql_query()

FILE: [ROOT]/portal/modules/portal_announcements.php
LINE: 285
CALL: get_complete_topic_tracking()

FILE: [ROOT]/portal.php
LINE: 103
CALL: portal_announcements_module->get_template_center()
What is this?
you can resolve this error?
Last edited by metal master on 9. March 2012 23:49, edited 1 time in total.

Topic author
metal master
Active Member
Posts: 11
Joined: 26. May 2011 17:00

Re: Board3 error debug mode

Post by metal master »

Same error with the simil link here: http://www.m-a-styles.de/portal.php?announcement=10
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: Board3 2.0.0 error debug mode

Post by Marc »

Why is there a announcement=10 in your link? If you click on "read all", it will append 0 and not 10.

Topic author
metal master
Active Member
Posts: 11
Joined: 26. May 2011 17:00

Re: Board3 2.0.0 error debug mode

Post by metal master »

The error was discovered through research on google search engine that when indexing the site gives me debug error on that link,

In Control Panel board3 I set it to 10 the number of announcements to display in the portal.
As soon as I click on the link of the first post (http://www.napolifans.it/portal.php?announcement=10) which should match the eleventh announcements, I get out of the error

The file is called the error is portal_announcements.php, line 285.
This is the code line 285:

Code: Select all

$topic_tracking_info = get_complete_topic_tracking($forum_id, $topic_id, $global_announce_list = false);
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: Board3 2.0.0 error debug mode

Post by Marc »

If you set the number of announcements to 10 then there will be no link that has announcements=10 appended. This might only happen if you set the number to 11 or more and then set it back to 10 or less, and google still has the incorrect link indexed.

Still I'll see what I can do in order to prevent that error.

edit: This should take care of it: https://github.com/board3/Board3-Portal ... f0a2efe8c0

Topic author
metal master
Active Member
Posts: 11
Joined: 26. May 2011 17:00

Re: Board3 2.0.0 error debug mode

Post by metal master »

I added the extra code in the file portal_announcements.php and now no longer gives error

Thank you very much ;)
Locked

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