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

Server 500 error #28

Open
philJohnson opened this issue May 14, 2014 · 3 comments
Open

Server 500 error #28

philJohnson opened this issue May 14, 2014 · 3 comments

Comments

@philJohnson
Copy link

I get a server 500 error when the plugin is activated

@kylereicks
Copy link
Owner

Very sorry to hear that the plugin isn't working as expected.

If this is a server timeout error (usually a 504, but sometimes it masquerades as the more general 500) and the error only appears on the front-end and not the WordPress back-end, the culprit might be an image heavy post. The first time a post/page is loaded after the plugin is activated, the plugin tries to create 2x images for all the images in a post. Sometimes this takes a while, and on image heavy posts the server may timeout once or twice. If this is the problem, a refresh of the timed-out page should get things moving again (you may need to refresh and wait more than once if there are a lot of images to work through). A plugin like Regenerate Thumbnails might also help buy taking care of the image generation from the admin.

If this is not a timeout issue or the error appears in the admin, then it is not something I have encountered before. If you can provide more information on the details of your installation I will do my best to duplicate the issue.

Thanks very much for the feedback.

@philJohnson
Copy link
Author

Thanks. I suspected that would be the case however I've run a regen already. I've loaded it in a local host with debugging. I get "Object of class WP_Post could not be converted to string in". I'm using "advanced custom fields" in my theme which could be the cause of the issue.

@kylereicks
Copy link
Owner

Sorry for letting this slip by me. Which file is listed in the error? If your are using ACF for images, I wonder if you might have the return value for your image field set to "Object", and sending the object to Picturefill.WP, which expects to be dealing with an HTML <img> and not an object of image information.

Again, sorry for not replying. I hope it's not causing too much frustration.

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

2 participants