PHP error Notice from captcha module after upgrade
Posted: Sun Jun 27, 2010 2:30 pm
CMSMS 1.7.1. Captcha module 0.41
Hi I have a form with a Captcha and I get the following notice:
Notice: Undefined index: path in /is/htdocs/wp10469715_9Z186ZZC5H/www/cmsms/modules/Captcha/lib/classes/captchalibs/class.captchalib_hncaptcha.php on line 50
So I had a look in the source and tried some variations of line 49 an 50:
$parsed = parse_url($config['root_url']);
$path = $parsed['path'];
but if I change $config['root_url'] to $config['root_path'] the notice is gone just like the captcha-image!
Here is the part of my config.php on the shared hoster:
#-------------
#Path Settings
#-------------
#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://www.control-engineering.at';
#SSL URL. This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://www.control-engineering.at';
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/is/htdocs/wp10469715_9Z186ZZC5H/www/cmsms';
#Name of the admin directory
$config['admin_dir'] = 'admin';
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = '/is/htdocs/wp10469715_9Z186ZZC5H/www/cmsms/tmp/cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = '/is/htdocs/wp10469715_9Z186ZZC5H/www/cmsms/uploads';
#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';
What has changed that I become a notice now and how do I get rid of it?
I have checked with another CMSMS install, where CMSMS 1.7.1 is running with Captcha module 0.4
There I do not have this problem.
I hope I have given enough information.
Kind regards,
Jan
Hi I have a form with a Captcha and I get the following notice:
Notice: Undefined index: path in /is/htdocs/wp10469715_9Z186ZZC5H/www/cmsms/modules/Captcha/lib/classes/captchalibs/class.captchalib_hncaptcha.php on line 50
So I had a look in the source and tried some variations of line 49 an 50:
$parsed = parse_url($config['root_url']);
$path = $parsed['path'];
but if I change $config['root_url'] to $config['root_path'] the notice is gone just like the captcha-image!
Here is the part of my config.php on the shared hoster:
#-------------
#Path Settings
#-------------
#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://www.control-engineering.at';
#SSL URL. This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://www.control-engineering.at';
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/is/htdocs/wp10469715_9Z186ZZC5H/www/cmsms';
#Name of the admin directory
$config['admin_dir'] = 'admin';
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = '/is/htdocs/wp10469715_9Z186ZZC5H/www/cmsms/tmp/cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = '/is/htdocs/wp10469715_9Z186ZZC5H/www/cmsms/uploads';
#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';
What has changed that I become a notice now and how do I get rid of it?
I have checked with another CMSMS install, where CMSMS 1.7.1 is running with Captcha module 0.4
There I do not have this problem.
I hope I have given enough information.
Kind regards,
Jan