HTTP Error 500
-
When attempting to sign-in via Steam I receive a HTTP 500 error.
I have no idea what the problem is and this is my main issue.
Any help would be appreciated.
-
Hello,
When does the HTTP 500 error occurs?
– After opening Popup?
– After entering Steam login+pass and press login in the popup?-
This reply was modified 8 years ago by
Konrad Chmielewski.
Same Probleme here. The error occurs after entering press login on the steamcommunity site; then i get the message that my site cant handle the refer with 500 ERROR.
Hello,
Are you using pretty permalinks (/category/blog-post/ for example)?
Have you flushed your permalink structure by going to settings > permalinks & clicking save?
Can you please copy paste the login with Steam link (including the “?referer=…” at the end) please?
Additionally, can you please check your php.error.log and give me the error line PHP is returning please?
Thanks for the report,
Regards.
I got the same problem. After clicking the LogIn-Button on Steam it comes with an error.
I use a base url slug because there is another plugin running on /login.
Also my redirection-link-boxes in the settings of your plugin clear themself after saving new settings.I already tried to reinstall the plugin but still the same problem ??
Hello!
Thanks for the report,
Do you have access to your PHP Error log? I need to understand what’s the specification of your setup in order to help you.
Regards.
-
This reply was modified 7 years, 9 months ago by
Konrad Chmielewski.
Hi, thanks for your quick answer ??
Here’s the error from my error_log file
[Thu May 18 01:23:57.703622 2017] [fcgid:warn] [pid 21130] [client 92.74.54.192:8063] mod_fcgid: stderr: PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /var/www/vhosts/ilmenau-esport.de/httpdocs/wp-content/plugins/wp-steam-auth/inc/functions.php on line 14
Php-Version is 5.5.38
-
This reply was modified 7 years, 9 months ago by
donrwetter.
Hey!
Thanks for the error log, it’s much appreciated to track down a bug.
The problem seems to be related to the “upload steam avatar” option. Can you try to disable it, save settings, try the login button and see if a new error pop in the error.log?
Thank you!
Hey,
since I disabled the avatar-option there is no more 500-error.
So far so good – after clicking the Login-Button on the Steam-Page I get redirected to my Page BUT not logged in. (I enabled registration for everyone after that but still the same problem). There is no new entry in my error_log.Maybe I misunderstood something: My Login- and Sync-Slugs redirect to steam, my logout-slug to a white page although I checked the box for using referer instead. (As I already mentioned the Urls typed in in “Post-Logout-Redirect” and “Post-Login-Redirect” get cleared by saving settings so i had to check this box.)
My next step will be disabling all other plugins to find out if there are any interference.
Edit: There is no Steam-Section on my user profile
Edit2: After disabling all plugins step by step there are still the same problemsRegards
-
This reply was modified 7 years, 9 months ago by
donrwetter.
-
This reply was modified 7 years, 9 months ago by
donrwetter.
Hello,
Okay so the first HTTP 500 problem was due to:
– either cURL function not being able to grab the distant avatar
– either the server has not the proper rights to upload/write in the uploads folderNow your problem with login/sync/logout.
– It is normal to have no steam section in your user profile, as you never get logged in. So there’s no data to show.
It’s hard to determine exactly what problem is going on, since you even disabled all your plugins but it still doesn’t work.
As there is already a problem with cURL or folder permissions for upload, I would say it has something to do with your server/Wordpress install. The simple fact that the “Post Login URL” & “Post Logout Redirect” get cleared on saving proves there’s something wrong going on under the hood.
I’ll try to investigate, and re-run each part of the code see if I can find something. But I can’t guarantee anything for the moment. Sorry ??
____________________________________________________________________________
EDIT: Okay the Post Login/Logout Redirect URL clearing is a bug. I’ll soon push a hotfix
I would suggest you to try an another setup:
– Keep Steam avatar upload disabled
– Enable the PopUp option
– Check “Use Referer” for the Post Logout Url
– Make sure your Login button has the IDwpsapButtonPopup
in order to make the popup work.Example:
<a href="https://example.com/login/" id="wpsapButtonPopup">Login</a>
Let me know what is the result.
-
This reply was modified 7 years, 9 months ago by
Konrad Chmielewski.
Hi,
thanks for your answer and your engagement.
The 500 error wasn’t due to a right problem – I also checked it and uploads via php are enabled.
I also checked my error Log. There is just a new ssl-error which I mind is not connected with the problem I have with your plugin.
I followed all steps you suggested and there is still the same problem – After clicking Login in the Steam-PopUp I get redirected to my last visited page on my Website and thats it. There is no new User added in WP nor I’m logged in.
Now i have 2 theories:
1) Could it be that “https://” in the Steam-API is the problem and I should only provide my URL without “https://” to them?
2) Should I clear my database from entries of your Plugin and reinstall it?The first point I’ll check soon and then I’ll edit my post.
And again: Thank you for your patience ??
_____
EDIT: Changing the API-Settings in Steam did not solve the problem.EDIT2: If I’m logged in via WP and click the logout-button of your plugin I get redirected to a white page(/steamapp/logout). So the problem is probably after clicking the login-button until the end of the process.
-
This reply was modified 7 years, 9 months ago by
donrwetter.
-
This reply was modified 7 years, 9 months ago by
donrwetter.
Hello Don!
As I told you, I was running tests on each parts of the code to see where it could come from. In the end I decided to rework it completely to add more controllers, tests, conditions and make the code more robust. It will lead to a better and easier debugging, and (hopefully) less bug like yours in general.
I can’t give you a deadline on the update release, but a fair estimation would be around 2-3 days.
Thank you for your time, I’ll keep you updated here.
Regards.
-
This reply was modified 7 years, 9 months ago by
Konrad Chmielewski.
Good morning,
Wow – 2-3 days is very quick and surprised me after reading the first part of this sentence.
Thank you for your diligence! It is not natural for plugin developers to be that fast.
Regards
Hi,
since you didn’t updated or answered I just want to make sure you don’t forget this thread.:)
Regards
-
This reply was modified 8 years ago by
- The topic ‘HTTP Error 500’ is closed to new replies.