Got error in combination with ACF Pro
-
Everything works fine with all plugin’s off, but when I activate the plugin ACF Pro and try to run a scan, I get a couple of PHP errors:
AH01071: Got error ‘PHP message: PHP Warning: Illegal string offset ‘type’ in wp-content/plugins/media-cleaner/scan.php on line 129\nPHP message: PHP Warning: Illegal string offset ‘type’ in wp-content/plugins/media-cleaner/scan.php on line 129\nPHP message: PHP Fatal error: Uncaught Error: Cannot use object of type WP_Post as array in wp-content/plugins/media-cleaner/scan.php:129\nStack trace:\n#0 wp-includes/class-wp-hook.php(286): MeowApps_WPMC_Scan->scan_postmeta_acf(’40’)\n#1 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n#2 wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#3 wp-content/plugins/media-cleaner/core.php(300): do_action(‘wpmc_scan_postm…’, ’40’)\n#4 wp-includes/class-wp-hook.php(286): Meow_WPMC_Core->wp_ajax_wpmc_prepare_do(”)\n#5 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)\n#6 wp-includes/plugin.php(453): WP_Hook…\n’, referer: /wp-admin/upload.php?page=media-cleaner
WP 4.9.6
ACF PRO 5.6.10
Media Cleaner 4.8.0I assume I need to have ACF activated to make sure I don’t trow away images that are attached to ACF fields?
- The topic ‘Got error in combination with ACF Pro’ is closed to new replies.