-
AuthorPosts
-
June 21, 2015 at 12:14 am #462262
I am receiving two errors, when I go to edit a LayerSlider or create a new one. The errors are (I’ve removed the path for security reasons):
Notice: Use of undefined constant ENT_HTML401 – assumed ‘ENT_HTML401’ in [DOCUMENT_ROOT]/wp-content/themes/enfold/config-layerslider/LayerSlider/classes/class.ls.posts.php on line 64
Notice: Use of undefined constant ENT_SUBSTITUTE – assumed ‘ENT_SUBSTITUTE’ in [DOCUMENT_ROOT]/wp-content/themes/enfold/config-layerslider/LayerSlider/classes/class.ls.posts.php on line 64
I’m using AMPP as a local server, running PHP 5.3. I’m using a child theme and have a couple other plugins installed: “Post Duplicator,” “Scalable Vector Graphics (SVG),” “Simple Custom Post Order,” and “WooCommerce.” That is all.
Everything else works perfectly.
Thank you,
TristanJune 22, 2015 at 11:04 am #462556Hi tristanslater!
It’s difficult to determine what going wrong if we can’t see the error for ourselves, did you try to disable plugins to see if that helps? Also please make sure that you are using the latest version of the theme and WordPress.
Best regards,
RikardJune 25, 2015 at 7:20 am #464428This is pretty disappointing service. You’re not even going to do a little digging?
It didn’t take me long to find that line 64 is: $ret[$key][‘title’] = htmlspecialchars(__($val->post_title), ENT_COMPAT | ENT_HTML401 | ENT_SUBSTITUTE);
After reading the php docs, turns out they say “5.4.0: the constants ENT_SUBSTITUTE, ENT_DISALLOWED, ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5 were added,” which explains why it is only finding the ENT_COMPAT constant.
Do you guys not even have it documented anywhere that your theme is not compatible with php 5.3?
June 26, 2015 at 9:48 am #464821Hey!
The layer slider is a third party plugin that is included in the theme but we don’t maintain or update it. You can contact the plugin author regarding that but since you already found the issue, please upgrade the PHP version to 5.4 or higher. We just don’t encounter many users who are still using older version of PHP. Most users are not aware of this configurations and usually use the default settings or rely on their hosting providers to set their server configurations so this kind of issue is not being reported often. If when the time comes that you put the site live, I’m sure your domain will run on a higher version of PHP unless you request it to run on lower versions.
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.