Can't install Low Variables
Hi there. I've uploaded Low Variables but when I try to enable the extension and module I get the error message below. I'm using EE v2.1.0 and have installed several other add-ons ok.
Thanks for your help,
Clifford
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: config
Filename: low_variables/ext.low_variables.php
Line Number: 12
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: config
Filename: low_variables/ext.low_variables.php
Line Number: 13
A Database Error Occurred
Error Number: 1048
Column 'version' cannot be null
INSERT INTO 'ee_extensions' ('class', 'method', 'hook', 'settings', 'priority', 'version', 'enabled') VALUES ('Low_variables_ext', 'sessions_end', 'sessions_end', 'a:8:{s:11:\"license_key\";s:0:\"\";s:6:\"prefix\";s:0:\"\";s:13:\"with_prefixed\";s:4:\"show\";s:10:\"can_manage\";a:1:{i:0;i:1;}s:15:\"ignore_prefixes\";s:1:\"y\";s:5:\"group\";s:1:\"y\";s:16:\"register_globals\";s:1:\"n\";s:13:\"enabled_types\";a:1:{i:0;s:12:\"low_textarea\";}}', 2, NULL, 'y')
Replies
Low 17 Aug 2010 11:19
Hey clifford,
Looks like the config.php file is not being included. Can you confirm the presence of config.php in the /system/expressionengine/third_party/low_variables/ folder? And can you check if it's not empty?
clifford.singer 17 Aug 2010 11:30
Thanks for the quick response. It is there - contents pasted below. I've also attached a screengrab of ftp installation.
config.php:
/**
* Low Variables config file
*
* @package low-variables-ee_addon
* @version 1.2.5
* @author Lodewijk Schutte ~ Low
* @link http://loweblog.com/software/low-vari...
*/
$config['name'] = 'Low Variables';
$config['version'] = '1.2.5';
$config['nsm_addon_updater']['versions_xml'] = 'http://loweblog.com/software/low-vari...;
clifford.singer 17 Aug 2010 11:31
oops - here's grab
Low 17 Aug 2010 11:36
Okay, I know what's going wrong, but not why. For now, here's a quick fix. It's going to be changed in the upcoming version anyway:
Change line #12 and #13 of ext.low_variables.php to:
Then try to re-install.
clifford.singer 17 Aug 2010 11:40
Great - that did the trick. Thanks for your help. Will look out for the update.
Low 17 Aug 2010 11:43
Great. Let me know if there are other issues.