Removing of Piwik application removes root domain directory

Created:

2016-11-16 13:15:50 UTC

Modified:

2017-04-24 11:41:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Removing of Piwik application removes root domain directory

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.5 for Windows

Symptoms

Removing of Piwik application removes root domain directory even if it is not empty.

Cause

Internal issue with id #APSI-186 ; the fix is considered to be included in one of the next application updates.

Workaround

For existing applications:

  1. Login to Plesk database using article 213928465 .

  2. Find package id using the following query:

    select cacheId from smb_apspackages where vendor like '%piwik%';
  3. Open file %plesk_dir%\\var\\apspackages\\<package_id>\\cache\\scripts\\configure (on Windows) /usr/local/psa/var/apspackages/<package_id>/cache/scripts/configure (on Linux) in text editor.

  4. Remove or comment the following line:

    delete_directory($psa_modify_hash["@@ROOT_DIR@@"]);

    By default this line will have number 121.
    After that removing of Piwik installation will not lead to removing of application root directory.
    Note: For several Piwik installations it is needed to edit configuration file for each of installation.

For new applications:

  1. Download patched application .

  2. Install application from Plesk > Tools & Settings > Application Vault > My Apps > Add App

  3. Select uploaded application and click Make Available button.
    Patched application will be available in application catalog with name Piwik_patched (2.11.1-64) .

Note: Switch on automatic updates of application to make sure that all updates will be installed as soon as the issue will be fixed.

Have more questions? Submit a request
Please sign in to leave a comment.