Page 1 of 1
Adding third party packages
Posted: Sat Jun 17, 2023 12:38 am
by btrade
I need to put video to youtube.
For this task I need to Install the libraries
This library don't install without library
After install this package, my functionals don't work whith select, checkboks, or radio
How can I fix it?
Re: icons and selects don't work
Posted: Sat Jun 17, 2023 11:24 am
by arbei
Those are PHP packages, they should not affect client side. You probably have PHP errors (possibly PHP version issues) so the outputted HTML is malformed and therefore the client side JavaScripts are affected. You should:
- Install PHP packages by Tools -> Composer packages, (no need to install "firebase/php-jwt" yourself as it is used by PHPMaker already)
- Press F12 in your browser and go to the Console panel check for client side JavaScript error.
- Enable debug and check the log files for server side erors, also see check HTTP response.
Re: icons and selects don't work after installing libraries
Posted: Sat Jun 17, 2023 5:49 pm
by btrade
I mean I need to upload a video to youtube. To do this, I need to install the package google/apiclient. I add packages via Tools -> Composer. When I start to generate the project, I get an error. The firebase/php- jwt package that is being used is incompatible with the google api. I have to install a later version. After installing these 2 packages, the functionality about which I started this topic stops working for me. If I remove those 2 packages everything works fine again.
Re: icons and selects don't work after installing libraries
Posted: Sat Jun 17, 2023 9:07 pm
by arbei
v2023 uses firebase/php-jwt: ^6.3.0
, but "google/apiclient" uses firebase/php-jwt: ~6.0
, so you simply add firebase/php-jwt: ~6.0
or firebase/php-jwt: 6.0.0
under Tools -> Composer Packages.
Re: icons and selects don't work after installing libraries
Posted: Sun Jun 18, 2023 12:55 am
by btrade
Re: icons and selects don't work after installing libraries (v2022)
Posted: Sun Jun 18, 2023 8:57 am
by arbei
v2022 used firebase/php-jwt: ^5.2.0
, you simply specify the version of google/apiclient to a compatible (older) one (e.g. v2.14.0).
Re: icons and selects don't work after installing libraries (v2022)
Posted: Fri Jul 14, 2023 11:16 pm
by btrade
I did as you say. But I have same problem.
Running composer update -n --ignore-platform-req php...
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires google/apiclient ^2.15.0 -> satisfiable by google/apiclient[v2.15.0].
- google/apiclient v2.15.0 requires firebase/php-jwt ~6.0 -> found firebase/php-jwt[v6.0.0, ..., v6.8.0] but it conflicts with your root composer.json require (^5.2.0).
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Re: icons and selects don't work after installing libraries (v2022)
Posted: Sat Jul 15, 2023 9:55 am
by arbei
Don't use google/apiclient ^2.15.0
.
arbei wrote:
v2022 used firebase/php-jwt: ^5.2.0
, you simply specify the version of google/apiclient to a compatible (older) one (e.g. v2.14.0).
Re: icons and selects don't work after installing libraries (v2022)
Posted: Sat Jul 15, 2023 9:34 pm
by btrade
I did it in tool>composer
But I have errors, when I generate my project.
Re: icons and selects don't work after installing libraries (v2022)
Posted: Sun Jul 16, 2023 9:37 am
by mobhar
What did you see from Tools -> Composer Packages? Which Packages are already listed in there, and what version for each Package?
Re: icons and selects don't work after installing libraries (v2022)
Posted: Sun Jul 16, 2023 11:12 am
by arbei
Note that in your case you should specify exactly "2.14.0" (without "^"
, not "^2.14.0"
). The caret version, ^1.2.3
permits versions from 1.2.3 all the way up to, but not including, the next major version, 2.0.0. If you want to learn more, read Semantic Versioning.
Re: icons and selects don't work after installing libraries (v2022)
Posted: Mon Jul 17, 2023 6:00 pm
by btrade
mobhar wrote:
What did you see from Tools -> Composer Packages? Which Packages are already listed in there, and what version for each Package?
Here I see only those packages that I myself add. I am changing the version. Packages that were already initially installed on the system, I do not see here.
Re: icons and selects don't work after installing libraries (v2022)
Posted: Tue Jul 18, 2023 8:26 am
by mobhar
btrade wrote:
I am changing the version.
mobhar wrote:
and what version for each Package?