最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

theme customizer - My Wordpress Plugin code breaks customize.php viewpoint

programmeradmin0浏览0评论

I've been making a few tweaks to my plugin to try and get it back up and running with an upgraded API/backend.

Sadly with my latest changes which commented out a few lines, I broke the backend view to customize the widget. I wondered if anyone has seen this before?

My code is on Gitlab if looking at the code helps. It's quite lengthy and not 100% sure where it's breaking at the moment, so not sure which snippet to add.

Current view: .png

I've been making a few tweaks to my plugin to try and get it back up and running with an upgraded API/backend.

Sadly with my latest changes which commented out a few lines, I broke the backend view to customize the widget. I wondered if anyone has seen this before?

My code is on Gitlab if looking at the code helps. It's quite lengthy and not 100% sure where it's breaking at the moment, so not sure which snippet to add.

Current view: https://i.sstatic/Jxrbv.png

Share Improve this question asked Oct 25, 2019 at 19:16 Eddie StubbingtonEddie Stubbington 112 bronze badges 1
  • The first step would be to start debugging your code, line by line if needed, to figure out where its breaking. Once you have that info it should help point you to an answer on how to fix it. Unfortunately, I think your question as is will be too vague for anyone to give you a good answer. – RiddleMeThis Commented Oct 25, 2019 at 19:26
Add a comment  | 

1 Answer 1

Reset to default 1

Turns out that right-clicking and viewing the source on the web-page displayed the call-stack.

For some reason part of my backend widget code that was commented out was still active, therefore it was trying to complete a request that had missing code. Removing this code resolved the error.

发布评论

评论列表(0)

  1. 暂无评论