1
wishcraft
ADOdb 5.11 - Sessions & Header going early

I have been steadly altering XOOPS from (http://www.xoops.org) to use ADOdb 5.11 for the 2.x series of XOOPS. This is for extra database functions.

I am not using the ADODb Sessions however for some reason the session_id() when the standard XOOPS Session is set with handler and so on is causing for some reason the cookies to be not sent with standard ADODB not with the ADODB Session Management.

It is like the headers are being sent for some reason I have been circumventing it with ob_start() and ob_end_clean(); when the file is loaded but I am not sure where in the file it is outputing a character for the headers to be sent.

Could anyone offer any advice!!

If you are looking for the resource for the code i am working on it is here :: xoops2.5_adodb_pdo_0.22.zip (1.3Mb)

Just replace the database directory with XOOPS 2.4 or XOOPS 2.5

When I go to log in the following SQL happens:

0.001070 SET NAMES 'utf8'
0.000583 SET SQL_BIG_SELECTS 1
0.003259 
SELECT FROM config WHERE (conf_modid '0' AND conf_catid '1'ORDER BY conf_order ASC
0.001664 
SELECT FROM modules WHERE dirname 'webcams'
0.001295 SELECT sess_datasess_ip FROM session WHERE sess_id ''
0.001755 SELECT FROM modules WHERE dirname 'protector'
0.001889 SELECT COUNT(*) FROM banner
0.002101 
SELECT FROM config WHERE (conf_modid '0' AND conf_catid '3'ORDER BY conf_order ASC
0.002315 
SELECT DISTINCT gperm_itemid FROM group_permission WHERE gperm_name 'block_read' AND gperm_modid AND gperm_groupid IN (3)
0.017161 SELECT b.* FROM newblocks bblock_module_link m WHERE m.block_id=b.bid AND b.isactive=AND b.visible=AND m.module_id IN (0,-1) AND b.bid IN (1,2,3,4,5,6,7,8,9,10,11,12,13ORDER BY b.weightm.block_id
0.002350 
SELECT FROM modules WHERE (hasmain '1' AND isactive '1' AND weight '0'ORDER BY weight ASCmid ASC
0.001799 
SELECT FROM group_permission WHERE (gperm_name 'module_read' AND gperm_modid '1' AND gperm_groupid '3')


You can see with this line SELECT sess_data, sess_ip FROM session WHERE sess_id = '' the session id is missing, i am not sure why this is..

Could anyone help please?
Resized Image
http://www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

2
wishcraft
Re: ADOdb 5.11 - Sessions & Header going early

Please work with 0.23 of ADOdb for XOOPS from the SVN it is available on the following path as a tar ball - http://xoops.svn.sourceforge.net/viewvc/xoops/ThirdParty/adodb/releases/0.23/
Resized Image
http://www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

Login

Who's Online

432 user(s) are online (281 user(s) are browsing Support Forums)


Members: 0


Guests: 432


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits