Form Error on localhost

maxomenos 29 Jul, 2013
Hi,

I'm doing localhost testing and include the form in the web page I get the following error (attached image)

How to solve it?

thank you very much

Max
GreyHead 29 Jul, 2013
Hi Max,

The simplest solution is to turn off error reporting for PHP Notices.

If you want to fix the code then open /components/com_chronoforms/chronoforms.php
Find this code about line 11
/* ensure that this file is called by another file */
defined('_JEXEC') or die('Restricted access');
define('DS', DIRECTORY_SEPARATOR);
and replace it with this
/* ensure that this file is called by another file */
defined('_JEXEC') or die('Restricted access');
if ( !defined('DS') ) {
  define('DS', DIRECTORY_SEPARATOR);
}

Bob
This topic is locked and no more replies can be posted.