plugin development - Stuck on a 504 error

I've been developing a Wordpress plugin on my windows box using Visual Studio 2019 and Devsense PHP tools.I've

I've been developing a Wordpress plugin on my windows box using Visual Studio 2019 and Devsense PHP tools.

I've copied a clean Wordpress zip file contents into my VS project and I've got everything working nicely. Can debug and cleaned up all errors. I've added a custom post type, metabox and UI elements for it, jquery-ui-fresh, custom javascript to attach a date picker to some elements in the metabox, custom css and the some code to query the post types and display on all pages.

Works perfectly so I zipped up the plugin folder (include the folder itself as the top level item in the zip) and deployed to a live Wordpress site. After activating the plugin it hangs and I eventually get a 504 when visiting the site. All admin panels work fine... I can add new posts of my custom type without an issue.

I've found many pages which go through troubleshooting options and all any of them really say is "disable plugins" to try to determine what component is causing the issue. I know which plugin is causing the issue so this isn't particularly useful.

Is there some kind of best practice I'm potentially not following, some code I'm supposed to put at the top of the file?

I've tried using the "Query Monitor" plugin but nothing is listed in its list of events

I'm totally lost.

Here's the code

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745117845a4612236.html

相关推荐

  • plugin development - Stuck on a 504 error

    I've been developing a Wordpress plugin on my windows box using Visual Studio 2019 and Devsense PHP tools.I've

    6小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信