?
Referenced as Pull Request for: # 11075
avatar ZhukDmitry
ZhukDmitry
25 Mar 2016

Steps to reproduce the issue

Create two package versions, for example
PKGv1 - contains only plugin
PKGv2 - contains plugin and component with its database table and table updates

1 - Install PKGv1
2 - Install PKGv2

Expected result

I expect that package PKGv2 will upgrade v1 and new component will be installed

Actual result

In real time upgrade installation tries to execute SQL scripts in \admin\sql\updates folder, and there is no correctly component installation, you've got the error about "table does not exist"

System information (as much as possible)

Last check was:
Database Version 5.5.46-0ubuntu0.14.04.2
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 5.6.19
Web Server Apache
WebServer to PHP Interface fpm-fcgi
Joomla! Version Joomla! 3.5.0 Stable [ Unicorn ] 21-March-2016 22:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

Additional comments

But if you initially install PKGv2 (with component), it is installed correctly, and processed updates correctly, for example PKGv3 (with component's table changes)
I just want to say, that if in initial installation of package there were not all extensions with it's database tables you can't install upgrade package with new extensions with tables

avatar ZhukDmitry ZhukDmitry - open - 25 Mar 2016
avatar brianteeman brianteeman - close - 25 Mar 2016
avatar brianteeman
brianteeman - comment - 25 Mar 2016

Without seeing the code it is impossible to say but it sounds like an issue in your code and not the core of Joomla so I am closing this here.

You will be better asking this question on the mailing list specifically or extension development https://groups.google.com/forum/#!forum/joomla-dev-general

avatar brianteeman brianteeman - change - 25 Mar 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-03-25 10:24:48
Closed_By brianteeman
avatar brianteeman brianteeman - close - 25 Mar 2016
avatar ZhukDmitry
ZhukDmitry - comment - 25 Mar 2016

What code?
It is just packages, without any installation code. Extensions and manifest file.

avatar brianteeman
brianteeman - comment - 25 Mar 2016

Please use the mailing list as I suggested

On 25 March 2016 at 10:28, ZhukDmitry notifications@github.com wrote:

What code?
It is just packages, without any installation code. Extensions and
manifest file.


You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
#9585 (comment)

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar mbabker mbabker - reopen - 27 Mar 2016
avatar mbabker
mbabker - comment - 27 Mar 2016

This is a bug.

JInstallerAdapterPackage::copyBaseFiles() triggers a new JInstaller instance for each extension in the package based on whatever route the package installation is using (which would only be install or update since discover_install is unsupported for packages). In none of the adapters does the route get switched from update to install if the update path is triggered and the extension is not installed.

avatar mbabker mbabker - change - 27 Mar 2016
Status Closed New
Closed_Date 2016-03-25 10:24:46
Closed_By brianteeman
avatar mbabker mbabker - reopen - 27 Mar 2016
avatar brianteeman brianteeman - change - 28 Mar 2016
Category Installation
avatar brianteeman brianteeman - change - 30 Mar 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 10 May 2016
Status New Confirmed
avatar waveywhite
waveywhite - comment - 11 Jul 2016

I've having a similar problem. Is this due to this problem or a new bug?

  1. Installed a package with a single component but lots of modules & plugins. Updates to this work fine.
  2. Added a new component to the package and installed.
  3. The new component's code was installed but the database schema wasn't applied
  4. Uninstall just the new component
  5. Install the new component separately and it installs fine, along with the database schema.
    This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9585.
avatar mbabker
mbabker - comment - 11 Jul 2016

It hasn't changed since my comment from March.

avatar waveywhite
waveywhite - comment - 12 Jul 2016

We use packages for rolling out changes to some major websites, it's definitely a plus for Joomla when managing large sites. If someone were to fix this problem it would be much appreciated.

avatar mbabker
mbabker - comment - 12 Jul 2016

This is completely untested on my part but logically #11075 should do the trick.

avatar brianteeman brianteeman - close - 12 Jul 2016
avatar brianteeman brianteeman - close - 12 Jul 2016
avatar brianteeman brianteeman - change - 12 Jul 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-07-12 12:42:15
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 12 Jul 2016

Closing as we have a PR for testing


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9585.

avatar waveywhite
waveywhite - comment - 12 Jul 2016

Many thanks @mbabker and @brianteeman

Add a Comment

Login with GitHub to post a comment