Can't create content or validate captcha

Phoca Guestbook - creating guestbooks in Joomla! CMS
susi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Oct 2009, 12:42

Re: Can't create content or validate captcha

Post by susi »

I found out the problem.
The captcha-code was written in the session-variable, but the sessions data isn't writte in the db all the time.

if I remove the "exit;" statement in the file
\components\com_phocaguestbook\views\phocaguestbooki\tmpl\default.php
it works better.

My question, is there a way to save the session-data explicit in the db?

at this file:
\components\com_phocaguestbook\views\phocaguestbooki\view.html.php

Code: Select all

function display($tpl = null)
	{		
		ob_get_clean();
		$image_data =& $this->get('Data');
		$session =& JFactory::getSession();
		$session->set('phocaguestbooksession', $image_data['outcome']);
//Save image code to session to check with post data

// here save the $session in the db ?
		
$this->assignRef( 'image',	$image_data['image'] );
		parent::display($tpl);
susi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Oct 2009, 12:42

Re: Can't create content or validate captcha

Post by susi »

I see you (Jan) answered all new posts. Only at this is no comment :(

Is there a bad side effect , when I delete the "Exit;"-line ?
Can you give me a tip, where in Joomla the Data of the global varaible $_SESSION are write back to the db?
I would be very grateful for a tip!
Thanks!



PS:And thanks for the many other terrific Joomla-expansions! :twisted:
susi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Oct 2009, 12:42

Re: Can't create content or validate captcha

Post by susi »

Hi RMDsign,

thanks for your tip!
I have tried it! But the JHTML-Methode for the captcha doesn't work one my site with core-sef=ON. :cry:

Nevertheless many thanks! :|
Micha
Phoca Member
Phoca Member
Posts: 26
Joined: 17 Oct 2008, 02:43
Location: Netherlands

Re: Can't create content or validate captcha

Post by Micha »

Has to do with sh404sef. Check this component @ tab components phocaguestbook and set it to Nocach of make no sef url. Please play with this setting. Also do a drop off the sef url's in sh404sef.

Micha
Post Reply