On my WordPress install, which is 3.8 and has all plugins updated, it is using Magic Fields 2 and Hypercache amongst other plugins. I can't insert images into posts because when I upload, it gives me an error:
An error occurred in the upload. Please try again later.
The Media Library window from a post's "Insert Media" appears blank although I know there are images there and can view them by going there in the sidebar. When I try to insert images with a Magic Field, when I click "insert into post", the window is blank and it doesn't insert the image.
In wp-config.php, I've set debugging to true:
define('WP_DEBUG', true);
And I'm getting these errors with ALL plugins disabled and the problem not resolved:
Warning: include(/myPath/wordpress/wp-content/advanced-cache.php) [function.include]: failed to open stream: No such file or directory in /myPath/wordpress/wp-settings.php on line 65
Warning: include() [function.include]: Failed opening '/myPath/wordpress/wp-content/advanced-cache.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php5.3.6/lib/php') in /myPath/wordpress/wp-settings.php on line 65
I've checked the wp-content folder and am not seeing an advanced-cache.php - is the issue here that it SHOULD exist? Any suggestions?
UPDATE 4/27/2014
So as per Milo's suggestion, I went and set wp_cache to false:
define('WP_CACHE', false);
And I can insert images into regular posts again. I can't, however, insert images with the media type magic field still - same issue. When I click "set image" and choose an image to "insert into post", the window turns blank and the image never goes into the field if I refresh the page.
The only errors I'm seeing with wp_debug still true is:
Notice: get_plugin_data was called with an argument that is deprecated since version 3.0! The Site Wide Only: true plugin header is deprecated. Use Network: true instead. in /myPath/wordpress/wp-includes/functions.php on line 3006
I only see this errors on the Plugins page. And then I'm also getting a console error on the page where I'm trying to change those Magic Fields:
TypeError: a.ref is undefined
Pointing to wp-includes/js/tinymce/tiny_mce.js
So, suspecting maybe I had a script error in my theme files, I commented out all my js. Console error is now gone.
But I still can't insert an image with Magic Fields - this has happened to me before when upgrading to 3.8 - and I just can't remember what the cause of it was after going through deprecated code. Open to more suggestions.
advanced-cache.php
is written by the cache plugin. WordPress is trying to load it because you have theWP_CACHE
constant set in yourwp-config.php
file.