Prb with database extension oracle: headers already sent

Author Message

Olivier Pierret

Tuesday 16 August 2005 9:35:12 am

Hello all,

I have a big issue with Database Extension for oracle: after following carefully the installation and migration procedure of Database Extension. I had been able to run ezpublish with oracle. However a small issue was triggering from time to time. But now this issue is always triggering and prevent me from running ez publish. Here it is:

When I try to log I am always redirected to the login page with the following warnings:

session_start(): Cannot send session cookie - headers already sent in C:\Program Files\Apache Group\Apache2\htdocs\ezpublish-3.6.0\lib\ezutils\classes\ezsession.php on line 250 
session_start(): Cannot send session cache limiter - headers already sent in C:\Program Files\Apache Group\Apache2\htdocs\ezpublish-3.6.0\lib\ezutils\classes\ezsession.php on line 250
Cannot modify header information - headers already sent in C:\Program Files\Apache Group\Apache2\htdocs\ezpublish-3.6.0\index.php on line 419
.
.
.

I skipped the whole list of errors which are all related to the fact that headers are already sent.

I suspect that sth is writing in response stream before the headers are all set.

This happend only when using database extension i.e.

 DatabaseImplementation=ezoracle

I am using php 4.3.9 with php_oci8.dll (Revision: 1.183.2.17) Database Extension version is 1.2 - oracle client is instant client or oracle client 9.2 - oracle database server is 9.2.

Hope someone will be able to help me

Thank you

Olivier Pierret

Olivier Pierret

Thursday 18 August 2005 8:20:43 am

Well nobody knows...
Except that I found the solution and post it FYI. I used apache 2.054 and I switched to apache 1.3.33. So my guess is there is something wrong within ezoracle - OCI8 layer (multithreading maybe ?) that prevents ez oracle connector (database extension) from working properly with Apache2.

If this is the case it would be definitely useful that ez systems writes this down in the FAQ of ezoracle.

Should I enter a bug for this ? eZ crew, any thoughts ?

Vadym Savchuk

Thursday 25 August 2005 4:05:37 am

Hello.
We know about this bug.
The next ezoracle release will include a fix for it.

Lex 007

Thursday 25 August 2005 6:35:00 am

Salut Olivier ;-)

Could you please give us a little review of the extension : install, performance, etc ...

Thanks

Olivier Pierret

Thursday 25 August 2005 9:30:24 am

I tested the patch from eZ Systems and it works: the errors have disappear with Apache 2 and I can connect to administration interface without problems.

My guess regarding the multithreading were wrong I think, eZ Systems knows better what it was.

I tested Oracle extension on several systems, here is the "biggest" one:

Version: 3.6.0 (3.6.0)
SVN revision: 11973

Biprocessors Xeon 3 GHz
Memory: 2GB
Apache/1.3.33 (Win32) PHP/4.3.9 mod_jk/1.2.14

PHP extensions standard, bcmath, calendar, ctype, com, ftp, mysql, odbc, overload, pcre, session, tokenizer, xml, wddx, zlib, apache, mbstring, oci8, Turck MMCache

Oracle: Oracle9i Release 9.2.0.4.0 - Production

How long it gets to load first admin page

Time accumulators:
 Accumulator	 Elapsed	 Percent	 Count	 Average
ini_load				
Load cache	0.0647 sec	2.4232%	12	0.0054 sec
oracle_total				
Oracle_queries	0.0080 sec	0.2995%	10	0.0008 sec
Oracle looping results	0.0044 sec	0.1651%	10	0.0004 sec
Template Total	0.2261 sec	8.5%	2	0.1130 sec
Template load	0.0309 sec	1.1569%	2	0.0154 sec
Template processing	0.1947 sec	7.2936%	2	0.0973 sec
override				
Cache load	0.0219 sec	0.8222%	2	0.0110 sec
Total script time:	2.6690 sec	

Oracle queries time is 0.0080
Mysql queries time was 1.100 (roughly)
The others figures are comparable.

I faced three issues during with this extension:
1) the bug here above
2) a small bug in the sequence updating script (I was able to fix it myself)
3) a bug related to the char encoding (I think) of MySQL and Oracle: I got Oracle TWO-TASK ERROR (ORA-03106) when exporting data from MySQL to Oracle.

For the rest everything's fine ...

well don't forget to put character in the workflow event description (if not you'll have a "cannot insert null" but that's a detail).

Hope this helps.

Frederik Holljen

Thursday 25 August 2005 10:10:42 am

The "null" problem is a bug. I've reported it here:
http://ez.no/bugs/view/7083

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:36:10
Script start
Timing: Jan 18 2025 11:36:10
Module start 'layout'
Timing: Jan 18 2025 11:36:10
Module start 'content'
Timing: Jan 18 2025 11:36:11
Module end 'content'
Timing: Jan 18 2025 11:36:11
Script end

Main resources:

Total runtime1.1209 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.1953152.6563
Module start 'layout' 0.00740.0031 740.851639.4922
Module start 'content' 0.01061.1087 780.3438628.2813
Module end 'content' 1.11920.0016 1,408.625016.0938
Script end 1.1208  1,424.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3199160.0002
Check MTime0.00150.1381160.0001
Mysql Total
Database connection0.00090.079710.0009
Mysqli_queries1.046693.3708700.0150
Looping result0.00080.0745680.0000
Template Total1.081696.520.5408
Template load0.00230.200820.0011
Template processing1.079396.287420.5396
Template load and register function0.00020.018410.0002
states
state_id_array0.00660.587810.0066
state_identifier_array0.00200.176520.0010
Override
Cache load0.00200.1786560.0000
Sytem overhead
Fetch class attribute can translate value0.00110.095940.0003
Fetch class attribute name0.00170.155780.0002
XML
Image XML parsing0.00120.109640.0003
class_abstraction
Instantiating content class attribute0.00000.001580.0000
General
dbfile0.00100.0853220.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs