can't open LibreOffice 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/…/program/libswlo.dylib.

This only affects my Text Documents, not spreadsheets. I have LibreOffice 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.