Add-on Install & Upgrade

Add-on Install & Upgrade 1.4.3

No permission to download
When using this mod to install VaultWiki Lite (or VaultWiki), it uploads files to the wrong location. In particular, it uploads an index.html file from one of the lower level directories into the XenForo root directory, which in many setups results in that file being served instead of the XenForo site. This leads many users to the incorrect initial assumption that installing VaultWiki (which was actually never installed at this point, just uploaded wrong) has crashed their sites, and has directly led to at least 1 scalding review of the add-on.

You can download VaultWiki Lite from the Resources area to test things out, but the directory structure looks like this:

- CHANGELOG
- LICENSE
- README
- the XML file (which doesn't actually install anything except some admin routes and a link to the real installer)
- do_not_upload/
- upload/
---- library/
------ vw/
---- vault/
------ core/
------ resources/
---- yui_loader.php

Also, VaultWiki developers have stated that the addon XML file and the install script must be separated because of limitations in the current Install/Upgrade system provided by XenForo. In order to avoid timeouts on most client machines, the install process must be able to support both paged and batched install routines (1 refresh for each step, extra refreshes for steps with multiple batches), as well as mid-process modals if user input is required by a step.
 
Any help for that?

Code:
Error
Could not create temporary install directory. Please verify permissions are correct to write to the install/addons directory.
 
I have pretty weird problem. I see updates available in the add-on list itself, but not on the menu sidebar in the ACP. Any idea? It shows [0] all the time regardless if there are updates or not.
Thanks.
 
@Chris D

Where is the directory created? I recently switched from suPHP and therefore 777 the data and relevant internal_data directories, but this is giving me a unable to create directory error when truing to upgrade an add-on...
 
Chris - I had a bunch of Waindigo add-ons randomly shift from ok into needing an upgrading yesterday, despite them not having a new version. I upgraded them all, stupidly, without looking. Well today they're all back again. Just thought I'd let you know in case it was something you were tracking.

Also, this add-on: https://xenforo.com/community/resources/new-user-conversation.3644/

Never stops telling me it needs updating no matter how many times I dismiss it.
 
Yeah that happens when developers update the version number in the RM without updating the version number in the download.

You can ignore an update though so do that to shut it up.
 
Yeah that happens when developers update the version number in the RM without updating the version number in the download.

You can ignore an update though so do that to shut it up.
Yeah, I figured on the Waindigo front. The weird thing about the Andy add-on is that no matter how many times I ignore it, it always comes back. I have some of his other add-ons and they work fine. Just not that one.
 
For some reason, this isn't working on my live site with my latest addon update...

The files don't seem to copy over correctly. The XML file does appear to be being imported correctly though.

Any ideas?

Liam
 
Last edited:
Oh.

It appears all of my addon updates have been going into a secondary library directory, inside the existing library directory.

I only just noticed...

Whoops.

@Chris D any ideas? This is my general structure:

download_zip.zip
----UPLOAD
--------library
------------LiamW
----------------<addon files>
----addon XML

These have been going into <xf root>/library/library/LiamW/<addon files> for some reason.
 
I will more than likely change it, but that's the best practice for now.

It's worth noting, however, that "upload" in lower case is usually more consistent with XenForo, official XenForo add-ons and most third party developers.
 
It's worth noting, however, that "upload" in lower case is usually more consistent with XenForo, official XenForo add-ons and most third party developers.

It's hard to break an established habit, but I'll bare that in mind.

Liam
 
I have a similar issue that library and js are uploaded inside library and js.
I tracked that down to AddOnInstaller_ControllerAdmin_AddOn #259
PHP:
elseif ($key == 'js' || $key == 'library' || $key == 'styles')
{
    $addOnModel->recursiveCopy($dir . '/..', './' . $key);
}

Removing the '/..' from the dir fixed the issue.
PHP:
elseif ($key == 'js' || $key == 'library' || $key == 'styles')
{
    $addOnModel->recursiveCopy($dir, './' . $key);
}

I don't know why you needed to add that, so I don't know if that will make another issues, but hope it will help in some way.
 
Back
Top Bottom