Page 1 of 1

[SOLVED] portal.php not displaying by default

Posted: 10. September 2008 18:52
by wonderous
Your Portal Version: 1.0.0RC3
Your phpBB Type: Premodded phpBB
MODs installed: Yes
Your knowledge: Basic Knowledge

What have you done before the problem was there?
Installed 1.0.0RC3, refreshed templates, themes, imagesets, purged the cache. Everything displays correctly.

What have you already tryed to solve the problem?
I dont know what to do

Description and Message
After installing I refreshed templates, themes, imagesets, purged the cache. Everything displays correctly.
But when I tried to log in through the portal, and click on 'Return to the previous page', I get an error:

General Error
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: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: includes/functions.php
LINE: 1225
CALL: dbal_mysql->sql_query()

FILE: portal/block/announcements.php
LINE: 134
CALL: get_complete_topic_tracking()

FILE: portal.php
LINE: 107
CALL: include('portal/block/announcements.php')


The error happens only when I log in through the portal. I can log in successfully in the phpbb3 board.

Re: Cannot log in through the portal

Posted: 10. September 2008 19:04
by Ice
If you then go back to the portal page while logged in do you get this error?

Re: Cannot log in through the portal

Posted: 10. September 2008 19:07
by wonderous
Yes I get exactly the same error :evil:

Re: Cannot log in through the portal

Posted: 10. September 2008 19:09
by wonderous
All registered users that log in can access the forums, but not the portal.
I logged in with a registered user and got
General Error
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]

An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
And when i return to the forum index i am logged out.

Re: Cannot log in through the portal

Posted: 10. September 2008 19:13
by Ice
Hmm if you open /portal/blocks/announcements.php could you look for the line that starts "* @version $Id: announcements.php" and copy the whole line out for me? I was sure I fixed this before but if not I'll check again.

Re: Cannot log in through the portal

Posted: 10. September 2008 19:15
by wonderous

Code: Select all

* @version $Id: announcements.php 293 2008-08-11 15:25:45Z icedcold $

Re: Cannot log in through the portal

Posted: 10. September 2008 19:19
by Ice
You seem to be using old files, are you sure you are using 1.0.0RC3 ?

Re: Cannot log in through the portal

Posted: 10. September 2008 19:26
by wonderous
You're right I was using an old file.. dont know why it wasn't updated, because I downloaded the newest package from this forum and copied from root everything and pasted into my forum directory.. it should have been updated but it wasn't, anyway it's working now let me test more to see if there are more problems. Thanks so much.

Re: portal.php not displaying by default (last post)

Posted: 11. September 2008 13:46
by wonderous
when i type http://www.XXXX.com/forum
the forum index.php displays and not the portal although
DirectoryIndex portal.php index.php index.html index.htm
has been added to my .htaccess?