can't open LibreOffice 4.0.4.2 text document -"loading component library failed" error

I can’t open any of my text documents because I am getting this error message: “Component cannot be loaded, possibly broken or incomplete installation.” "loading component library failed: file://Applications/LibreOffice.app/Contents/MacOS/…/program/libswlo.dylib.

This only affects my Text Documents, not spreadsheets. I have LibreOffice 4.0.4.2 with Mac OS 10.9.5 on a MacBook Pro.

I’ve looked through the forums and cannot tell whether it’s better to upgrade to LibreOffice 5 or if there’s an easier fix.