Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Add Featured Image To Anything When define('WP_DEBUG', true); #134

Closed
nickmcelligott opened this issue Jul 1, 2013 · 1 comment
Closed

Comments

@nickmcelligott
Copy link

Hi,

I've been developing this theme locally, using wordpress 3.5.2 with AFC plugins.

The problem arrises when I try to set a featured image to posts, pages or any of my custom post types that I've created. When I click "Set Featured Image" it opens up my media library, however there is nothing present there (despite "Media" showing plenty of photos). If I try to upload a file form this screen, it tells me "An error occurred in the upload. Please try again later." although when I go to my media library I can see the media I've just uploaded and it says its attached to the post (although it is not viewable in the post view, or in the site).

I've removed all my edits from functions.php and disabled all plugins, and the issue persists.

If I change themes to twentytwelve it works perfectly.

As soon as I change define('WP_DEBUG', true); (in my wp-config.php) to define('WP_DEBUG', false); the feature image functions work perfectly with the bootstrapwp theme, so something is amiss here!

So if you have an issue with using set feature image on any post type with this theme try setting define('WP_DEBUG', false); in your wp-config.php file.

I hope this helps someone.

Thanks for a great theme Rachel,

Cheers,

Nick.

@rollsappletree
Copy link

Please, can you post the content of your web server error log when the error occur?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants