-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only receiving the error "Error processing dependencies. You cannot call a method on a null-valued expression." #79
Comments
Since you are are getting an error from PlexBackup.ps1, there is no question whether it exists in the current directory. The error comes from this block:
I would try running it with the |
That gets me the following.
So I guess something is wrong with ScriptVersion? |
What do you get if you enter this in PowerShell prompt:
|
PS C:\PlexBackup-master> $PSVersionTable.PSVersion Major Minor Patch PreReleaseLabel BuildLabel 7 3 6 Sorry, I'm not sure how to get that to format correctly. |
Ah. It looks like they changed it in PowerShell 7. In PowerShell 5, I get
So, for now, I would try running it from an earlier version of PowerShell because I have not tested it in PowerShell 7 (I think PowerShell 7 has its own environment, but it does not remove older versions). I will try to port it to PowerShell 7, but can't promise when. Let me know if it fixes the issue. |
That's solved it. Thanks so much for your help and for the script! |
I am only receiving the message "Error processing dependencies. You cannot call a method on a null-valued expression."
I've installed the latest NuGet, ScriptVersion, ConfigFile, StreamLogging, and Single Instance.
I'm using Powershell 7.3.6 running as Administrator.
Plex Media Server is version 1.32.6.7371-b6a09ad81 and is verified to be running.
After navigating to the folder containing PlexBackup (C:Windows\System32\PlexBackup), I run the command ".\PlexBackup.ps1"
I've tried using no config file, a config file with fully default values, and an edited config file.
I've run ".\PlexBackup.ps1 - Test".
I've used "Get-ChildItem" to verify that "PlexBackup.ps1" exists in the current directory.
I've tried downloading PlexBackup to another directory (directly to C:\PlexBackup) and running it there.
No matter what I only get the above message and no log files or other messages are created.
Can you offer any advice?
The text was updated successfully, but these errors were encountered: