You are here

Can't install or update extensions in 7.4.2

8 posts / 0 new
Last post
Anton_D
Offline
Last seen: 2 months 4 days ago
Translator
Joined: 2018-01-20 12:43
Can't install or update extensions in 7.4.2

If I try to install new or update an old extension, after a while I just see the following message: "an error occurred during file opening".

I would post some logs only if I knew where to find them.

ANTICHRISTUS REX
ANTICHRISTUS REX's picture
Offline
Last seen: 2 hours 43 min ago
Translator
Joined: 2019-07-19 07:09
Testing...

LO 7.4.x generated a lot of complaints nowadays. I'm (personally) encountering some weird issues while setting it up, even with a new installation…
The easiest way is to make tests within a fresh LibreOffice/platform.

PS. I've finally decided to reinstall mine from zero, while trying to find the mouse's rat's hiding place!

Three decades AD. Romans fight Christianity.
Three centuries AD. Romans Adopt Christianity.

-Neo Buddha-

Anton_D
Offline
Last seen: 2 months 4 days ago
Translator
Joined: 2018-01-20 12:43
I already tested the latest

I already tested the latest versions to find a regression window. The installation works in the 7.3.6, but is broken with each version after this: 7.4.0, 7.4.1, 7.4.2. They are still downloadable. What else can I do to find the source of the bug?

Right now, I test a new version of extension by just extracting it from the file and overwrite the content of an old version somewhere deep in the usr folder of LO.

ANTICHRISTUS REX
ANTICHRISTUS REX's picture
Offline
Last seen: 2 hours 43 min ago
Translator
Joined: 2019-07-19 07:09
Fresh installation working well

Three decades AD. Romans fight Christianity.
Three centuries AD. Romans Adopt Christianity.

-Neo Buddha-

Anton_D
Offline
Last seen: 2 months 4 days ago
Translator
Joined: 2018-01-20 12:43
Fresh Installation

Tested once again with the 7.4.2 fresh installation. The option, you are mentioned, was already deactivated. But I still get the error and can't install or update my extension. Any other suggestions?

Anton_D
Offline
Last seen: 2 months 4 days ago
Translator
Joined: 2018-01-20 12:43
Too long paths.

I probably found out the reason for this bug. Just made a fresh installation in the root of the drive, not into the "PortableApps" folder. Then moved the "CommonFiles" folders, so I would have a Java instance. Then everything works fine: extension installation and update.

jojothehobo
Offline
Last seen: 1 year 2 months ago
Joined: 2013-02-13 19:49
Adding extensions in LO 7.4..

Hi Anton.
When you state "made a fresh installation in the root of the drive, not into the "PortableApps" folder." are you talking about LibreOffice. the entire PortableApps folder or something else? It isn't clear to me. Ditto for moving "Common Files", are these just LO or something else?
Finally, I have programs called jPortable Launcher and JPortable Browser Switch included in my portable Apps folder. Are they not sufficient for a Java Instance?
Thanks.
Jojo

Anton_D
Offline
Last seen: 2 months 4 days ago
Translator
Joined: 2018-01-20 12:43
Sorry for a late replay. I

Sorry for a late replay. I try to answer your questions.

Usually, one installs LibreOffice in the "LibreOfficePortable" folder, which itself is in the "PortableApps" folder of the drive. Java would be installed in the "CommonFiles\Java\" sub-folder in the same "PortableApps" folder. It would be looks like this:

C:\
├─ PortableApps\
│ ├─ CommonFiles\
│ │ ├─ Java\
│ ├─ LibreOfficePortable\

Because LibreOffice Portable has some problems with long paths (looks like a well known issue), in our case just in case of extension installation or update, we have to make the path shorter. So I move "LibreOfficePortable" folder in the root of the drive. That should be enough for update.

C:\
├─ LibreOfficePortable\
├─ PortableApps\
│ ├─ CommonFiles\
│ │ ├─ Java\

After the update, you can quit the program and move the folder back.

For the usage of the LanguageTool extension, one needs Java. In this case, or if this extension gives you the same errors during the installation, you could also at least move the "Java" folder with "CommonFiles" folder to the root of the drive. The rest of the "CommonFiles" folder could remain in the "PortableApps" folder. In this case, the picture looks like this:

C:\
├─ CommonFiles\
│ ├─ Java\
├─ LibreOfficePortable\
├─ PortableApps\

Your another question: jPortable Launcher is just a launcher for some Java application; and JPortable Browser Switch just "enables or disables the browser plugin bundled with jPortable." Both of them require the actual runtime, in our case jPortable, to actually run the Java code. Side note: The latest (Browser Switch) is probably not so useful anymore, because modern browsers dropped support for Java years ago, and we even rarely saw some Java programs running in the browser (like applets) even earlier.

LibreOffice also needs Java runtime, sometimes for its own feature or for Java-writen extension like LanguageTool. So it needs jPortable installed; the other two applications mentioned by you isn't required for LibreOffice and LanguageTool.

Log in or register to post comments