My Twitter account was suspended today for a T&Cs violation. So far, no explanation as to what was violated has been given. Nevertheless, this suspension has caused a failure with the wpdiscuz plugin.
My site gives a 500 Error, both the front end and the admin, but it works successfully if I remove this plugin from the plugins folder.
It appears that being unable to contact the Twitter developer API caused the fatal error. No logs are written to the PHP log file, making diagnostics harder.
I have no way to turn off the twitter SSO integration because I cannot get to the admin dashboard.
I'm going to ask the developers about the issue. Please wait a bit. I'll update the topic soon.
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
We have to ask you to create a dev/staging copy of your website in some sub-domain and send admin details to info[at]gvectors.com email address. We were not able to represent the issue on our test websites.
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
@asti I do not give access to my website. As a developer myself given this stacktrace I would easily solve the problem. The least I could do, despite not being the best solution is catch the exception so that it doesn't break. Of course, that does not solve the core problem, but I have given the scenario which caused the issue.
How do I turn off Twitter SSO via modifying the database settings?
@asti In addition, I would recommend that the developers use defensive coding practices (if/else). Better yet, validate the input model to ensure that the data being processed is at the standard required by the component.
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.
@asti It looks good so far. It did not crash the website and loaded on the UI.
I have seen the defensive coding and sanitization (I haven't looked deep enough into your sanization, but the devs need to ensure that types and values are valid, not just trimming, etc).
Well done. Thanks!
TIP:
Check out the design patterns inlcuding behavioral design patterns. They will help, but don't go gung ho because it will make the code too complicated.
It is not for me to manage your team, but ensure the team knows the pattern and not just one member. HINT: Training sessions friday afternoons.
The changes will be included in the next version of the wpDiscuz plugin.
In case you want to say thank you! 🙂 We'd really appreciate if you leave a good review on the plugin page. This is the best way to say thank you to this project and the support team.