I have recently used MODx and it is perfect. I am now rolling this out to two of my personal sites and am having trouble now that the site is installed.
I keep receiving this error on all pages at the bottom:
"Warning: htmlentities() expects at most 3 parameters, 4 given in /assets/plugins/managermanager/functions/utilities.inc.php on line 80"
Can anyone make any suggestions to a solution.
PS. I am using PHP5 and MODx 1.0.3
You have a version of PHP < 5.2.3
Go to line 80 of that file and remove the last parameter:
return htmlentities($str, ENT_QUOTES, $modx->config['modx_charset']);
I don’t quite understand what all of that meant, but it worked.
Thanks for the help.
That fourth parameter was added with PHP version 5.2.3. The version of PHP you are using is from before that, so it doesn’t allow that extra parameter.
This is actually a major bug IMO. PHP 5.2.3-only code should not be distributed in the default Evo distribution, for any reason. Everything distributed in the MODx Evo package needs to support PHP 4.3+ without modification.
I’ll add a check in next version.
plugin - customise your ModX manager interface
- web development, Sheffield, UK