Fixing MobileChief for 3.5
-
When I tried MobileChief on sites running WP 3.5 and higher (not listed as tested by the plugin authors), much of the functionality was missing. After digging a bit, I found several errors being generated about missing functions (Call to undefined function …) in the various error_log files in the plugin directories. For my use this included the standard WP functions plugin_dir_url, add_action and add_filter.
Adding the following to include the WP environment near the top of mobilechief-mobile-site-creator.php seems to have greatly improved things for me.
for ( $i = 0; $i < $depth = 10; $i++ ) {
$wp_root_path = str_repeat( ‘../’, $i );
if ( file_exists(“{$wp_root_path}wp-load.php” ) ) {
require_once(“{$wp_root_path}wp-load.php”);
}
}Posting in the hopes that this might help someone else trying to use this plugin on WP 3.5+. Let me know if you find a better solution.
https://www.ads-software.com/extend/plugins/mobilechief-mobile-site-creator/
- The topic ‘Fixing MobileChief for 3.5’ is closed to new replies.