Hi all,
I just installed MODX 2.2.13pl on a new CentOS with PHP 5.5.10 and MySQL 5.5.*. As I was setting up some packages I discovered that I could not install one that had snippets, Databackup. Since that is an extra I wrote I rebuilt it, thinking maybe the file was corrupt. And then tried to reinstall but it failed again with the same error. I did a web search and only saw one person with a similar error. I then tried to manually create some test snippets, then chunks and TVs.
And this is the error I got:
[2014-03-18 16:14:31] (ERROR @ core/xpdo/validation/xpdovalidator.class.php : 82) PHP warning: preg_match(): Compilation failed: invalid range in character class at offset 38
Very similar to the install log errors:
/*
* MODX Console Output
*
* @date 2014-03-18 15:47:05
*/
Attempting to install package with signature: databackup-1.1.7-pl
Package found...now preparing to install.
Grabbing package workspace...
Workspace environment initiated, now installing package...
PHP warning: preg_match(): Compilation failed: invalid range in character class at offset 38
PHP notice: Array to string conversion
snippet_err_createArray
Error saving vehicle object of class modSnippet; criteria: Array
(
[name] => backup
)
PHP warning: preg_match(): Compilation failed: invalid range in character class at offset 38
PHP notice: Array to string conversion
snippet_err_createArray
Error saving vehicle object of class modSnippet; criteria: Array
(
[name] => backupmany
)
Could not install related objects with locally owned keys for vehicle object of class modCategory; criteria: Array
(
[category] => Databackup
)
Successfully installed package databackup-1.1.7-pl
/* EOF */
Not sure if this is a bug in MODX or something I need to adjust in MySQL. Note I have mostly worked in windows and I am just getting familiar with setup in linux. Any help would be great! Thanks