Getting a parse error when updating a profile.
PHP error debug
Error: htmlentities() [function.htmlentities]: charset `"UTF-8"’ not supported, assuming iso-8859-1
Error type/ Nr.: Warning - 2
File: /var/www/web74/web/assets/snippets/webloginpe/webloginpe.class.php
Line: 947
Line 947 source: $extendedFieldValues[$field] = $modx->db->escape(stripslashes(htmlentities(trim($_POST[$field]), ENT_QUOTES,$charset)));
Hmmmm...
-
☆ A M B ☆
- 24,524 Posts
What version of PHP was that? It’s supposed to support UTF-8 since 4.3
http://www.php.net/htmlentities
PHP 5.x
That should not be a problem, right?
The trouble is in bracers. Must be UTF-8, not "UTF-8"
Here
$charset=’"’.$modx->config[’modx_charset’].’"’;
$extendedFieldValues[$field] = $modx->db->escape(stripslashes(htmlentities(trim($_POST[$field]), ENT_QUOTES,$charset)));
must be simply
$extendedFieldValues[$field] = $modx->db->escape(stripslashes(htmlentities(trim($_POST[$field]), ENT_QUOTES,$modx->config[’modx_charset’])));
DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. |
DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.
Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.
[PLUGIN] DirectResize - as Maxigallery but for single images ::
Download :: [url=
http://modxcms.com/forums/index.php/topic,21490]
or change this:
$charset=’"’.$modx->config[’modx_charset’].’"’;
to this:
$charset=$modx->config[’modx_charset’];