simple-location icon indicating copy to clipboard operation
simple-location copied to clipboard

500 internal server error

Open interludic opened this issue 4 years ago • 12 comments

After removing the plugin the following url works /wp-json/wp/v2/posts?per_page=99&page=1

otherwise... Caught exception: Server error: GET https://domain.com/wp-json/wp/v2/posts?per_page=99&page=1 resulted in a 500 Internal Server Error response:\n

\n \n \n \t

interludic avatar Jul 08 '20 04:07 interludic

That is strange... nothing in the errors logs?

dshanske avatar Jul 08 '20 11:07 dshanske

@interludic I ran the same entry on two different sites and did not get a 500 error. Need more information to diagnose.

dshanske avatar Jul 08 '20 12:07 dshanske

Thanks,

When i try to edit a post i get the follow error. image

The error is gone and the page loads fine when i deactivate plugin.

interludic avatar Oct 08 '20 01:10 interludic

It's a mystery...can you activate it, and check the server logs for something? Because the screenshot is a JS error, but I only do JS in the Post Editor

dshanske avatar Oct 08 '20 02:10 dshanske

Is this happening in the Block Editor or the Classic one?

dshanske avatar Oct 08 '20 02:10 dshanske

Yes editing a post with the block editor.

Is this the first report of this nature?

On Thu, 8 Oct 2020, 1:02 pm David Shanske, [email protected] wrote:

Is this happening in the Block Editor or the Classic one?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dshanske/simple-location/issues/180#issuecomment-705285845, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQIXXKR57GTX6CHOXCVGATSJUMTNANCNFSM4OUE74XA .

interludic avatar Oct 08 '20 07:10 interludic

I can't reproduce it on my site. I tried several times. And no one else has reported something similar. So, unable to fix lacking more info. Did you configure the plugin?

dshanske avatar Oct 10 '20 05:10 dshanske

All of those fields are created in all versions back to the beginning.

dshanske avatar Oct 24 '20 15:10 dshanske

wow that was fast reply, i just realised that its still doing it in 3.8.2

so i just need to fix it...

interludic avatar Oct 24 '20 15:10 interludic

This route: /wp-json/sloc_geo/1.0/geocode/?latitude=-37.8811647&longitude=145.0074495&altitude=15&weather=1&map_zoom=&height=200&width=200

returns: { "code": "rest_forbidden", "message": "Sorry, you are not allowed to do that.", "data": { "status": 401 } }

interludic avatar Oct 24 '20 15:10 interludic

It would if you go there directly. You'd need to be verified as a user to the API. When the request is made by the javascript code, it is authenticated.

dshanske avatar Oct 24 '20 15:10 dshanske

When you get the critical error message, what does the email it says it will send say? promises

dshanske avatar Oct 24 '20 15:10 dshanske