Comments (6)
@mwaeckerlin I don't see any error message in your output, only a few notices. I'm not sure where these are coming from but I only get these when trying to install Virtuemart, so I'm sure it's related to their installer.
I tried installing Virtuemart on our Joomlatools Vagrant box and that succeeded without issues:
joomla site:create test
wget https://dev.virtuemart.net/attachments/download/1144/com_virtuemart.3.4.2.9966_package_or_extract.zip -O /tmp/pkg_virtuemart.3.4.2.zip
joomla extension:installfile test /tmp/pkg_virtuemart.3.4.2.zip
ls -lah /var/www/test/components/ | grep com_virtuemart # lists two com_virtuemarts directories
I tried the same approach using extension:installfile
on your docker container, and Virtuemart is installed fine here. The installer does throw some warnings but installation seems to have succeeded:
nginx@php-fpm[d92a0feb90e2]:/$ wget https://dev.virtuemart.net/attachments/download/1144/com_virtuemart.3.4.2.9966_package_or_extract.zip -O /tmp/pkg_virtuemart.3.4.2.zip
Connecting to dev.virtuemart.net (5.9.32.249:443)
pkg_virtuemart.3.4.2 100% |**************************************************************************| 4794k 0:00:00 ETA
nginx@php-fpm[d92a0feb90e2]:/$ /composer/vendor/bin/joomla extension:installfile --www "${WEB_ROOT_PATH%/*}" "${WEB_ROOT_PATH##*/}" /tmp/pkg_virtuemart.3.4.2.zip
PHP Notice: Constant JROUTER_MODE_RAW already defined in /joomla/websites/libraries/import.php on line 60
Notice: Constant JROUTER_MODE_RAW already defined in /joomla/websites/libraries/import.php on line 60
PHP Notice: Constant JROUTER_MODE_SEF already defined in /joomla/websites/libraries/import.php on line 67
Notice: Constant JROUTER_MODE_SEF already defined in /joomla/websites/libraries/import.php on line 67
PHP Warning: array_merge(): Argument #2 is not an array in /joomla/websites/administrator/components/com_virtuemart/models/config.php on line 548
PHP Warning: array_unique() expects parameter 1 to be array, null given in /joomla/websites/administrator/components/com_virtuemart/models/config.php on line 549
PHP Warning: dl(): Dynamically loaded extensions aren't enabled in /joomla/websites/plugins/vmpayment/klarna/klarna/api/transport/xmlrpc-3.0.0.beta/lib/xmlrpc.inc on line 44
nginx@php-fpm[d92a0feb90e2]:/$ ls -lah /joomla/websites/components/ | grep com_virtuemart
drwxr-xr-x 8 nginx nginx 4.0K Oct 28 15:34 com_virtuemart
drwxr-xr-x 2 nginx nginx 4.0K Oct 28 15:34 com_virtuemart_allinone
Another little note, for extension:install
to work, you need to symlink the extension into your installation first. Your example commands don't seem to mention this?
I am unable to replicate this so closing this ticket.
from joomlatools-console.
Ok, at first sight, it seems that my fault was to extract virtuemart package and to install the components separately. When I install from the GUI, that's necessary, but here obviously not.
I'll test again with all other packages.
from joomlatools-console.
@stevenrombauts, now it works for virtuemart, but only for virtuemart, the installation of any other plugin fails.
E.g. a simple one: kickgdpr:
nginx@php-fpm[692192ace4d8]:/$ wget -O/tmp/kickgdpr-2.4.0.zip https://github.com/nielsnuebel/kickgdpr/archive/2.4.0.zip
Connecting to github.com (192.30.253.112:443)
Connecting to codeload.github.com (192.30.253.121:443)
kickgdpr-2.4.0.zip 100% |****************************| 37900 0:00:00 ETA
nginx@php-fpm[692192ace4d8]:/$ /composer/vendor/bin/joomla extension:installfile --www "${WEB_ROOT_PATH%/*}" "${WEB_ROOT_PATH##*/}" /tmp/kickgdpr-2.4.0.zip
PHP Notice: Undefined index: REQUEST_URI in /joomla/websites/includes/framework.php on line 34
Notice: Undefined index: REQUEST_URI in /joomla/websites/includes/framework.php on line 34
PHP Notice: Undefined index: REQUEST_URI in /joomla/websites/includes/framework.php on line 34
Notice: Undefined index: REQUEST_URI in /joomla/websites/includes/framework.php on line 34
nginx@php-fpm[692192ace4d8]:/$ ls -lah /joomla/websites/components/ | grep kick
nginx@php-fpm[692192ace4d8]:/$ find /joomla/websites -iname '*kick*'
nginx@php-fpm[692192ace4d8]:/$
Or download and install AWO-Coupon (free download) → nothing gets installed!
nginx@php-fpm[692192ace4d8]:/$ /composer/vendor/bin/joomla extension:installfile --www "${WEB_ROOT_PATH%/*}" "${WEB_ROOT_PATH##*/}" /tmp/plugins/com_awocoupon-2.0.26.zip
PHP Notice: Undefined index: REQUEST_URI in /joomla/websites/includes/framework.php on line 34
Notice: Undefined index: REQUEST_URI in /joomla/websites/includes/framework.php on line 34
PHP Notice: Undefined index: REQUEST_URI in /joomla/websites/includes/framework.php on line 34
Notice: Undefined index: REQUEST_URI in /joomla/websites/includes/framework.php on line 34
nginx@php-fpm[692192ace4d8]:/$ find /joomla/websites -iname '*awo*'
nginx@php-fpm[692192ace4d8]:/$
Then I also tried some commercial (paid) plugins, but none of them gets installed.
Even worse: Return status ($?
) is always 0
, so the script does not detect it's failure…
Why?
from joomlatools-console.
@mwaeckerlin I've tried KickGDPR again but that works without issue here. Here's my output on the Vagrant box:
$ joomla site:create joomla39
Your new Joomla site has been configured.
You can login using the following username and password combination: admin/admin.
$ wget --quiet https://github.com/nielsnuebel/kickgdpr/archive/2.4.0.zip -O /tmp/kickgdpr.zip
$ joomla extension:installfile joomla39 /tmp/kickgdpr.zip
$ ls -lah /var/www/joomla39/plugins/system | grep kickgdpr
9:drwxr-xr-x 9 501 dialout 288 Nov 10 14:42 kickgdpr/
The console does not really get involved much in the installation itself. We basically pass the path to package source to Joomla's JInstaller
and let it run from there. (code).
Some packages run custom installer scripts, and it's most likely something is going wrong in there. I suggest you try to debug those and see what might be going wrong that's specific to your working environment.
from joomlatools-console.
@stevenrombauts, what I am missing is any kind of trace, log, error message or similar that would help me find the problem. Even the return code is 0
. Is there nothing I could check?
from joomlatools-console.
@mwaeckerlin I agree, this is something we're missing. The trouble is that we don't have a good way to actually get good responses from Joomla; we're basically just handling it as a black box. We bootstrap Joomla, give it a package to install and then just let it run.
We do have the verbosity flag -vvv
which will try to pass some more information about symlinking and installation. Apart from that, we expect Joomla's installer code to output errors and exceptions but this is often not the case. Any suggestions on how to improve on this are most welcome!
from joomlatools-console.
Related Issues (20)
- The option `--use-webroot-dir` is ignored when creating a Joomla site (site:create) HOT 3
- box php:use 7.4.4 HOT 1
- Enable Joomla 4 to be installed
- Make the console ubiqutious HOT 3
- Support symfony/console 5.x HOT 2
- Support for default overrides config file
- Merge joomlatools-plugin into core
- Fix vhost:alias command
- Remove support for Kodekit Platform
- Remove Joomlatools Platform support
- Remove support for Joomlatools Vagrant
- joomlatools language install failing HOT 1
- Console v2
- Add site:export and database:dump commands
- Load extra commands from home directory
- Parse environment variables in the config.yaml file
- Add chown support to site:download and site:create
- Update symlinker dependencies
- Unescaped spaces causes errors with site:download command
- Support for Joomla 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joomlatools-console.