SU causes fatal errors for themes with visual editor
-
Hi!
I am using latest versions for today:
WP 4.5.3
SU 4.9.9
and theme Kallyas 4.1.4 by Hogash.com.The theme uses visual PageBuilder in the front-end based on wp_editor().
When I install and activate SU plugin in this theme, it causes Fatal Error:
PHP Fatal error: Call to undefined function is_plugin_active() in /var/www/admin/www/pavlova.cc/wp-content/plugins/shortcodes-ultimate/inc/core/tools.php on line 252
Check code there
if (!is_plugin_active( $paths[$addon] ) ) return false;
That fatal error is caused by is_plugin_active() function that is available only in admin area, but not in WP front-end.
The same problem was discussed about a year ago, but with no reply from SU developers: https://www.ads-software.com/support/topic/fatal-error-when-wp_editor-used-in-front-end-solution-included?replies=1
Please-please-please, add a fix: either check for function_exists() or exclude scope with is_admin.
This is really important to make SU plugin compatible with other themes with visual composer that relies on wp_editor() in front-end. Obviously, theme developer can’t change their approach, so it is easier to change one line in SU plugin to make it work in all these themes.
Thank you!
- The topic ‘SU causes fatal errors for themes with visual editor’ is closed to new replies.