Error with custom modules on a multisite install

Hey Y’all,

When I have a multisite instance with a plugin that creates a couple of BB modules, I get this output:


Notice: Use of undefined constant TEMPLATEPATH - assumed 'TEMPLATEPATH' in /var/www/wordpress/wp-includes/theme.php on line 131

Notice: Use of undefined constant STYLESHEETPATH - assumed 'STYLESHEETPATH' in /var/www/wordpress/wp-includes/theme.php on line 131

Notice: Undefined index: module_advanced in /var/www/wordpress/wp-content/plugins/bb-plugin/classes/class-fl-builder-model.php on line 1419

Notice: Use of undefined constant TEMPLATEPATH - assumed 'TEMPLATEPATH' in /var/www/wordpress/wp-includes/theme.php on line 131

Notice: Use of undefined constant STYLESHEETPATH - assumed 'STYLESHEETPATH' in /var/www/wordpress/wp-includes/theme.php on line 131

Notice: Undefined index: module_advanced in /var/www/wordpress/wp-content/plugins/bb-plugin/classes/class-fl-builder-model.php on line 1419

The custom plugin works appropriately in a non-multisite setup.

[Content Hidden]

Figured it out! Using the plugins_loaded hook breaks things.

Hey Mark! Glad you got this figured out. :slight_smile:

Let us know if you have any more questions/troubles!