Tips and Tricks HQ Support Portal › Forums › WP eMember › Error with eMember and Divi theme after switch to php7.2
- This topic has 4 replies, 2 voices, and was last updated 5 years, 11 months ago by c2l.
-
AuthorPosts
-
December 6, 2018 at 1:02 am #15226c2lSpectator
I am testing php 7.2 on my server before going live with my site since php 5 will be obsolete in 2 months. I use Divi Theme and, after disabling all plugins one-by-one determined I am getting this error only when eMember is activated:
Warning: Use of undefined constant ET_SHORTCODES_DIR – assumed ‘ET_SHORTCODES_DIR’ (this will throw an Error in a future version of PHP) in /home/connect2/www/www/members/wp-content/themes/Divi/epanel/custom_functions.php on line 1566
I need both eMember AND Divi – what can I do?
December 6, 2018 at 2:44 am #78877wzpModeratorWarning: Use of undefined constant ET_SHORTCODES_DIR – assumed ‘ET_SHORTCODES_DIR’ (this will throw an Error in a future version of PHP) in /home/connect2/www/www/members/wp-content/themes/Divi/epanel/custom_functions.php on line 1566
Hint: the error is in a Divi theme file; not an eMember file. Please contact Elegant Themes support.
December 6, 2018 at 3:43 am #78878c2lSpectatorYes, I realize that but something in eMember is causing it so I hoped you might have some idea. In my experience when plugins conflict with one another both developers often tell me to take my problem to the other and sometimes no one wants to help. Hopefully when Divi answers they don’t just tell me to go to you.
December 6, 2018 at 4:29 am #78879wzpModeratorWarning: Use of undefined constant ET_SHORTCODES_DIR – assumed ‘ET_SHORTCODES_DIR’ (this will throw an Error in a future version of PHP) in /home/connect2/www/www/members/wp-content/themes/Divi/epanel/custom_functions.php on line 1566
Yes, I realize that but something in eMember is causing it so I hoped you might have some idea.
Yeah… undefined constant ET_SHORTCODES_DIR the “ET” stands for “Elegant Themes.” Why should eMember have anything to do with one of their constants not being defined? PHP is simply clamping down on the use of undeclared variables and constants; which is indicative of undisciplined programming practices.
Please perform a forum search for “Divi” and you will discover it has a history of comparability issues; mostly caused by its insistence on not conforming to basic WordPress guidelines, pertaining to plugin and theme role separation. This article further states our position regarding proper theme integration.
https://www.tipsandtricks-hq.com/wordpress-system-integration-101-3100
December 6, 2018 at 4:48 am #78880c2lSpectatorThat’s helpful, thank you, and gives me something to take back to Divi. I bought that theme before WordPress came out with better themes thinking that, as a premium theme, they would integrate properly and have knowledgeable developers. Their support has gotten slower lately and I fear their compatibility with Gutenberg may not live up to their promises.
-
AuthorPosts
- You must be logged in to reply to this topic.