3 ms·
add_shortcode is incredible. It's probably my favorite part of wordpress, and writing a plugin is so easy, just a single file zipped up or scp'd. Especially wit
by Something1234 6y ago
add_shortcode is incredible. It's probably my favorite part of wordpress, and writing a plugin is so easy, just a single file zipped up or scp'd. Especially with custom post types or adding a new table.
- viraptor 6y ago> just a single file zipped up or scp'd And now your page displays a white page. Error in the log is an exception with no stacktrace/location. This was my experience in production a few times. It's a fun system if it works, but without a testing pipeline and a staging environment it's a lottery with a possible mystery breakage on every update/change.
- organsnyder 6y ago> It's a fun system if it works, but without a testing pipeline and a staging environment it's a lottery with a possible mystery breakage on every update/change. That describes every platform, programming language, layer of the stack, etc. that I've ever worked with.
- Something1234 6y agoAt the end. All of our tooling sucks. Although I have to say generally the apache error log guides me to the right place.
- viraptor 6y agoThere's a whole possible scale of responses and of encouraged workflow though. Wordpress and a lot of php community does actually like the "drop in some code and it usually works" approach. This encourages continuing on that path. On the other side, the failure can be handled in many ways. "This module could not be loaded and will be ignored." is one. Ensuring some preparation / validation is needed before upload is another. Let's not go to extremes like "you're expected to have a staging environment for your personal blog because the framework cannot possibly help you".
- hluska 6y agoIf your log only shows an exception without any kind of stack trace or location, I’m sorry but Wordpress is not the problem.