Captcha 2.x.x

15 years 11 months ago #64525 by RichRawlings
Replied by RichRawlings on topic Re:Captcha 2.x.x
was php 4 now

I have upgraded to

PHP : 5.2.5

still using

MySQL : 5.0.45-log

Now getting this warning in publish plug and same warning frontend register page

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of array_unshift(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/content/x/x/x/xxxxxxx/html/candidates/administrator/components/com_comprofiler/library/cb/cb.session.php on line 41

Please Log in to join the conversation.

15 years 11 months ago #64527 by beat
Replied by beat on topic Re:Captcha 2.x.x
RichRawlings wrote:

was php 4 now

I have upgraded to

PHP : 5.2.5

still using

MySQL : 5.0.45-log

Now getting this warning in publish plug and same warning frontend register page

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of array_unshift(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/content/x/x/x/xxxxxxx/html/candidates/administrator/components/com_comprofiler/library/cb/cb.session.php on line 41


- ok the warning isn't impairing the function, you can fix it by removing the "&" on that line. Fixed now that for next version, thanks for reporting B)

- Can you see a MySQL table jos_comprofiler_sessions in phpMyAdmin ?

- Now that you are on PHP 5, redo a tools -> Check CB database: do you see anything in red ?

If you turn site debug on, and search in SQL queries at bottom of screen for accesses to that table, what are the queries listed ?

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

15 years 11 months ago #64529 by RichRawlings
Replied by RichRawlings on topic Re:Captcha 2.x.x
Thanks for the help!
Yes, I can jos_comprofiler_sessions in phpMyAdmin
Checked CB database, no red
29 queries logged
SELECT *
FROM jos_session
WHERE session_id = 'a044daac249bfaf40d5b3f10fd87f299'
DELETE
FROM jos_session
WHERE ( time < '1212544130' )
SELECT *
FROM jos_session
WHERE session_id = 'a044daac249bfaf40d5b3f10fd87f299'
UPDATE jos_session
SET `time`='1212545030',`userid`='0',`usertype`='',`username`='',`gid`='0',`guest`='1',`client_id`='0',`data`='__default|a:8:{s:22:\"session.client.browser\";s:208:\"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022)\";s:15:\"session.counter\";i:15;s:8:\"registry\";O:9:\"JRegistry\":3:{s:17:\"_defaultNameSpace\";s:7:\"session\";s:9:\"_registry\";a:1:{s:7:\"session\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:4:\"user\";O:5:\"JUser\":19:{s:2:\"id\";i:0;s:4:\"name\";N;s:8:\"username\";N;s:5:\"email\";N;s:8:\"password\";N;s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";N;s:5:\"block\";N;s:9:\"sendEmail\";i:0;s:3:\"gid\";i:0;s:12:\"registerDate\";N;s:13:\"lastvisitDate\";N;s:10:\"activation\";N;s:6:\"params\";N;s:3:\"aid\";i:0;s:5:\"guest\";i:1;s:7:\"_params\";O:10:\"JParameter\":7:{s:4:\"_raw\";s:0:\"\";s:4:\"_xml\";N;s:9:\"_elements\";a:0:{}s:12:\"_elementPath\";a:1:{i:0;s:83:\"/home/content/u/s/m/usmjp02/html/candidates/libraries/joomla/html/parameter/element\";}s:17:\"_defaultNameSpace\";s:8:\"_default\";s:9:\"_registry\";a:1:{s:8:\"_default\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:9:\"_errorMsg\";N;s:7:\"_errors\";a:0:{}}s:13:\"session.token\";s:32:\"ccd679fb96c5870aa7646e182b4f6141\";s:19:\"session.timer.start\";i:1212543763;s:18:\"session.timer.last\";i:1212544504;s:17:\"session.timer.now\";i:1212544528;}'
WHERE session_id='a044daac249bfaf40d5b3f10fd87f299'
SELECT *
FROM jos_components
WHERE parent = 0
SELECT folder AS type, element AS name, params
FROM jos_plugins
WHERE published >= 1
AND access <= 0
ORDER BY ordering
SELECT m.*, c.`option` AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.componentid = c.id
WHERE m.published = 1
ORDER BY m.sublevel, m.parent, m.ordering
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 1)
ORDER BY menuid DESC
LIMIT 0, 1
SELECT a.id, a.title, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.attribs, a.urls, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering
FROM jos_content AS a
INNER JOIN jos_content_frontpage AS f
ON f.content_id = a.id
LEFT JOIN jos_categories AS cc
ON cc.id = a.catid
LEFT JOIN jos_sections AS s
ON s.id = a.sectionid
LEFT JOIN jos_users AS u
ON u.id = a.created_by
LEFT JOIN jos_groups AS g
ON a.access = g.id
WHERE 1
AND a.access <= 0
AND a.state = 1
AND (( cc.published = 1
AND s.published = 1 ) OR ( a.catid = 0
AND a.sectionid = 0 ) )
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2008-06-04 02:03:50' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2008-06-04 02:03:50' )
ORDER BY f.ordering
LIMIT 0, 9
SELECT a.id, a.title, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.attribs, a.urls, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering
FROM jos_content AS a
INNER JOIN jos_content_frontpage AS f
ON f.content_id = a.id
LEFT JOIN jos_categories AS cc
ON cc.id = a.catid
LEFT JOIN jos_sections AS s
ON s.id = a.sectionid
LEFT JOIN jos_users AS u
ON u.id = a.created_by
LEFT JOIN jos_groups AS g
ON a.access = g.id
WHERE 1
AND a.access <= 0
AND a.state = 1
AND (( cc.published = 1
AND s.published = 1 ) OR ( a.catid = 0
AND a.sectionid = 0 ) )
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2008-06-04 02:03:50' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2008-06-04 02:03:50' )
ORDER BY f.ordering
SELECT id, title, module, position, content, showtitle, control, params
FROM jos_modules AS m
LEFT JOIN jos_modules_menu AS mm
ON mm.moduleid = m.id
WHERE m.published = 1
AND m.access <= 0
AND m.client_id = 0
AND ( mm.menuid = 1 OR mm.menuid = 0 )
ORDER BY position, ordering
SELECT id, title, CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', id, alias) ELSE id END AS slug
FROM jos_polls
WHERE id = 14
AND published = 1
SELECT id, text
FROM jos_poll_data
WHERE pollid = 14
AND text <> ""
ORDER BY id
SELECT guest, usertype, client_id
FROM jos_session
WHERE client_id = 0
SELECT *
FROM jos_banner
WHERE showBanner = 1
AND (imptotal = 0 OR impmade < imptotal)
AND catid = 14
ORDER BY sticky DESC, ordering
LIMIT 0, 4
UPDATE jos_banner
SET impmade = impmade + 1
WHERE bid = 3
UPDATE jos_banner
SET impmade = impmade + 1
WHERE bid = 4
UPDATE jos_banner
SET impmade = impmade + 1
WHERE bid = 5
UPDATE jos_banner
SET impmade = impmade + 1
WHERE bid = 6
SELECT *, RAND() AS ordering
FROM jos_banner
WHERE showBanner = 1
AND (imptotal = 0 OR impmade < imptotal)
AND cid = 1
AND catid = 33
ORDER BY sticky DESC, ordering
LIMIT 0, 1
UPDATE jos_banner
SET impmade = impmade + 1
WHERE bid = 8
SELECT a.*, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug
FROM jos_content AS a
LEFT JOIN jos_content_frontpage AS f
ON f.content_id = a.id
INNER JOIN jos_categories AS cc
ON cc.id = a.catid
INNER JOIN jos_sections AS s
ON s.id = a.sectionid
WHERE ( a.state = 1
AND s.id > 0 )
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2008-06-04 02:03:50' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2008-06-04 02:03:50' )
AND a.access <= 0
AND cc.access <= 0
AND s.access <= 0
AND s.published = 1
AND cc.published = 1
ORDER BY a.hits DESC
LIMIT 0, 5
SELECT a.*, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug
FROM jos_content AS a
INNER JOIN jos_categories AS cc
ON cc.id = a.catid
INNER JOIN jos_sections AS s
ON s.id = a.sectionid
WHERE a.state = 1
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2008-06-04 02:03:50' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2008-06-04 02:03:50' )
AND s.id > 0
AND a.access <= 0
AND cc.access <= 0
AND s.access <= 0
AND s.published = 1
AND cc.published = 1
ORDER BY a.created DESC
LIMIT 0, 5
SELECT id, folder, element, published, type, params, CONCAT_WS('/',folder,element) AS lookup, name

FROM jos_comprofiler_plugin

WHERE published = 1
AND access <= 0
AND type = 'user'

ORDER BY ordering
SELECT COUNT( id ) AS count_users
FROM jos_users
SELECT COUNT( id ) AS count_items
FROM jos_content
WHERE state = "1"
SELECT COUNT( id ) AS count_links
FROM jos_weblinks
WHERE published = "1"
SELECT SUM( hits ) AS count_hits
FROM jos_content
WHERE state = "1"
SELECT a.*, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug
FROM jos_content AS a
INNER JOIN jos_categories AS cc
ON cc.id = a.catid
INNER JOIN jos_sections AS s
ON s.id = a.sectionid
WHERE a.state = 1
AND a.access <= 0
AND cc.access <= 0
AND s.access <= 0
AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2008-06-04 02:03:50' )
AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2008-06-04 02:03:50' )
AND cc.id = 3
AND cc.section = s.id
AND cc.published = 1
AND s.published = 1
ORDER BY a.orderin

Please Log in to join the conversation.

15 years 11 months ago #64530 by RichRawlings
Replied by RichRawlings on topic Re:Captcha 2.x.x
In cb.session.php found array_unshift ($check, &$_SESSION);
changed to array_unshift ($check, $_SESSION);

All is working. :)

Again, thanks for all the help!

Please Log in to join the conversation.

15 years 11 months ago #64569 by beat
Replied by beat on topic Re:Captcha 2.x.x
RichRawlings,

Thanks for your help finding that problem.

We have updated Captcha announcement with a reply here:

www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,53/id,64566/#64566

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

15 years 11 months ago #65016 by miguelpinheiro
Replied by miguelpinheiro on topic Re:Captcha 2.x.x
Hi there!
I still have the session write error message after changing the 41 line in the code.

It is strange because in my local machine I do not get that error but with the exactly same code and database running in the server I get that error.
And it is something to do with the captcha because when I disable the plugin I do not get the error.

Miguel

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.220 seconds