Fix: Plugin failed to load, module could not be loaded (GetLastError 126)
Fix the Unreal Editor error 'Plugin CodeFizzEditorAgent failed to load because module CodeFizzEditorAgent could not be loaded' with GetLastError=126 and a missing UnrealEditor-WorldStreamingInsights.dll. A plugin build issue before 1.2.44, fixed by updating.
The Unreal Editor stops during startup with a dialog reading Plugin 'CodeFizzEditorAgent' failed to load because module 'CodeFizzEditorAgent' could not be loaded, and the log shows GetLastError=126. Your engine install is fine. Updating the plugin fixes it.
What you see
The error text in full, as it appears in the dialog and in the log:
Plugin 'CodeFizzEditorAgent' failed to load because module 'CodeFizzEditorAgent' could not be loaded. There may be an operating system error, the module may not be properly set up, or a plugin may be missing.
And in the log, a missing UnrealEditor-WorldStreamingInsights.dll with GetLastError=126, even though that file is sitting right there on disk.
Why it happens
Windows error 126 is the specified module could not be found, and it refers to a dependency of the DLL rather than the DLL named in the message. Plugin builds before 1.2.44 linked against a couple of Unreal's experimental Insights plugins that ship disabled by default. When the editor will not load those, the dependency chain breaks and you get error 126 pointing at a file that exists.
It showed up mainly on Unreal 5.8 projects opened with the launcher-installed engine. There is nothing to repair or reinstall from Epic.
The fix
Close the Unreal Editor first, because the plugin file is locked while it runs. Then update every install, or reinstall for the one engine:
Update the plugin everywhere it is installed:
bash
cfa update-all
Or reinstall the newest build for one engine:
bash
cfa install-plugin "C:/Program Files/Epic Games/UE_5.8"
Confirm what you now have:
bash
cfa plugin status
Note
1.2.44 stopped linking those experimental Insights plugins, so there is no longer any DLL for the editor to miss. Reopen your project after updating and the error is gone.
If it still fails
Check that the version actually changed. A locked file during the update leaves the old build in place and the same error comes back on the next launch.
Verify the installed build per engine:
bash
cfa plugin status
Tip
Still stuck? Email contact@codefizz.dev with the output of cfa plugin status and the lines around the error in your project log. See also all fixes.