question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Control panel plugin seems to be broken

See original GitHub issue

Hi, Control panel plugin seems to be broken.

OS: Windows 10 x64 ver 2004

Error: Command failed: cmd /c chcp 65001>nul && powershell -NonInteractive -NoProfile -Command "Get-ControlPanelItem | ConvertTo-Json" Get-ControlPanelItem : Object reference not set to an instance of an object. At line:1 char:1 + Get-ControlPanelItem | ConvertTo-Json + ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-ControlPanelItem], NullReferenceException + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.GetControlPanelItemCommand

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tkohlmeiercommented, Sep 4, 2021

Hi,

looks like PowerShell 7 no longer includes the commannd Get-ControlPanelItem. It is described here: https://docs.microsoft.com/en-us/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7

I think the only solution is to install an older version of PowerShell.

0reactions
ahrooran-rcommented, Jun 8, 2021

Could you please run the command Get-ControlPanelItem in a powershell window? Do you get a list of control panel items or an error?

Hi. I also had the above issue and when I ran the command on powershell it didn’t work. I am getting this error in terminal: Get-ControlPanelItem: The term 'Get-ControlPanelItem' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Further commands also failed. What can I do now? Is it a problem with Powershell the version is 7.1.3

Thanks in advance

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugin admin interface broken in 4.5.1 - WordPress.org
In version 4.5.1 the dashboard doesn't load though – it keeps showing the loading ... seem to match those mentioned in the guide,...
Read more >
How To Fix Your WordPress Site After A Plugin Update Goes ...
Wanna know how to fix WordPress after a plugin update went wrong? Search no more.In this video, I'm going to give you a...
Read more >
WordPress Site Broken After an Update? Here's How to Fix It
If you can access your WordPress dashboard, deactivating all of your plugins is simple: Go to the Plugins tab; Click on the Plugin...
Read more >
5 Ways to Repair a Broken WordPress Installation
The best solution is to first delete the old files before uploading the new ones. 4. Repair Database Tables. If your problem doesn't...
Read more >
How to Fix "Sorry, You Are Not Allowed to Access This Page"
Learn how to troubleshoot and fix the "Sorry you are not allowed to access this page" message in WordPress. Here are eleven possible ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found