Page 1 of 1

SQL Error

PostPosted: Mon Jan 08, 2007 9:21 pm
Author: Blue-Blood
Your phpBB Version: 2.0.22
phpBB Type: phpbb / IMPortal
MODs: No
Your knowledge: Basic Knowledge
Board URL: [url]http://[/url]

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




Description and Message

PHPBB 2.0.22
IM Portal 1.20

I just installed IM portal, I have checked and rechecked all the changes made from the install.txt
also imported the SQL Tables 4 time and still get the same error every time


// // IM Portal http://www.integramod.com // define('BLOCKS_TABLE', $table_prefix.'blocks'); define('BLOCK_POSITION_TABLE', $table_prefix.'block_position'); define ('LAYOUT_TABLE',$table_prefix.'layout'); define ('PORTAL_CONFIG_TABLE',$table_prefix.'portal_config'); define ('BLOCK_VARIABLE_TABLE',$table_prefix.'block_variable');
Warning: Cannot modify header information - headers already sent by (output started at C:Program Filesxampphtdocsqf4uincludesconstants.php:191) in C:Program Filesxampphtdocsqf4uincludessessions.php on line 366

Warning: Cannot modify header information - headers already sent by (output started at C:Program Filesxampphtdocsqf4uincludesconstants.php:191) in C:Program Filesxampphtdocsqf4uincludessessions.php on line 367
phpBB : Critical Error

Could not query portal config table

DEBUG MODE

SQL Error : 1146 Table 'jfg1197_qf4u.portal_config_table' doesn't exist

SELECT * FROM PORTAL_CONFIG_TABLE

Line : 47
File : functions_portal.php

Re: SQL Error

PostPosted: Tue Jan 09, 2007 12:07 am
Author: Helter
Headers already sent generally means you have a corrupted file, either missing the php open tag <php>

You will also get that error if there is ANY "open" code outside of those tags. Dont even leave an empty line after the close tag

Re: SQL Error

PostPosted: Tue Jan 09, 2007 3:49 am
Author: Whisky
I don't understand this:
why does it display those lines from the constant.php:
Code: Select all
define('BLOCKS_TABLE', $table_prefix.'blocks'); define('BLOCK_POSITION_TABLE', $table_prefix.'block_position'); define ('LAYOUT_TABLE',$table_prefix.'layout'); define ('PORTAL_CONFIG_TABLE',$table_prefix.'portal_config'); define ('BLOCK_VARIABLE_TABLE',$table_prefix.'block_variable');

???
They do not seem to be in error and it does even not display them in the same order they appear in th php file <img>
We can see from the debug lines that the constant PORTAL_CONFIG_TABLE hasn't been correctly initialized but why?

I guess you board is not yet online, if it is could you provide us with a link?

Re: SQL Error

PostPosted: Tue Jan 09, 2007 2:45 pm
Author: Blue-Blood
Thanks, this was my problem.

"HelterSkelter";p="19267" wrote:Headers already sent generally means you have a corrupted file, either missing the php open tag <php>

You will also get that error if there is ANY "open" code outside of those tags. Dont even leave an empty line after the close tag