When installing Backpack PRO v5 I get a "failed to download backpack/pro" error from Composer - laravel-backpack

When installing Backpack for Laravel's PRO add-on, I have the token, I followed all the steps, but after composer require backpack/pro it errors:
Downloading backpack/pro (1.1.1)
Failed to download backpack/pro from dist: The "https://backpackforlaravel.com/satis/download/dist/backpack/pro/backpack-pro-xxx-zip-zzz.zip" file could not be downloaded (HTTP/2 402 )
And then:
Syncing backpack/pro (1.1.1) into cache
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+DESKTOP-BLABLA+2022-07-14+1559
to retrieve a token.
What did I do wrong? How can I install it?

That is a general Composer error - "file could not be downloaded". The error itself doesn't give too much information, but we can make an educated guess.
99% of the people who report this error have the same problem - they do not have access to that package version. They bought updates until 1.0.13 (for example), so they DO NOT have access to the latest version (1.1.1 in this example). What you can do, in that case, is lock the installation to the latest you have access to, for example
composer require backpack/pro:"1.0.13"
Alternatively, you can purchase more access on the Backpack website. Or contact the team if there's a mistake.
--
How do you find out what's the last version you have access to?
(1) Whenever the error above happens, Backpack will send you an email, with details and instructions. Check your email, it will also include the latest version you have access to.
(2) Your Tokens page will show more details. For each token you have, it will say when it stops giving you access to updates. If it doesn't say the last version directly, you can corroborate that last day with the changelog, to determine what's the last version that you have access to.
--
Why the ugly, general error? Because Composer doesn't allow vendors to customize the error, unfortunately. Backpack's server returns a better error message, but Composer doesn't show it.

Related

If I can use the components by installing syncfusion as a module in my angular project, then why do I need o download and use the Installer

I registered for syncfusion trial for 1 month free, It asks me to download install file, My question is if I can use the components by installing syncfusion as a module in my angular project, then why do I need to download and use the Installer.
If I just reference in my package.json and do npm i I am able to use it. In this case where do I put my license
You need the license so that they can keep an eye on you if you are making more than 1 million USD.
however you don't need to download the installer, just import registerLicense like so and then put your API key within the registerLicense('api key') and you're good to use the component without any popup on the application.
import { registerLicense } from '#syncfusion/ej2-base'
registerLicense('api key');
You can grab the API key from your syncfusion dashboard "Downloads and keys" -> "Get License key".
Yes, you can download our npm package. However, to use our package legally they needed to get license from us by visiting syncfusion.com and signing up for license. This is also mentioned in our licensing document in npm package. Please find its content from GitHub link
Link: https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/controls/grids/license
Documentation: https://ej2.syncfusion.com/angular/documentation/installation/
Online Demo: https://ej2.syncfusion.com/angular/demos/#/material/grid/overview
We don’t have any source level license validation, so you don’t have to do anything in your application for license validation. Our current license validation are fully based on support and new feature requests.
Please get back to us if you require any more assistance on this.

Unable to install gcloud SDK

When I try to install google cloud SDK, I was getting the following error:
ERROR:
(gcloud.components.update) Failed to fetch component listing from
server. Check your network settings and try again. This will install
all the core command line tools necessary for working with the Google
Cloud Platform. Failed to install.
After reinstalling python (v3.7.0), I added the path and also added CLOUDSDK_PYTHON environment variable to make sure. Now when I attempt the installation, the installation simply hangs:
If I attempt the installation trough terminal by executing install.bat, it also gets stuck after requesting to send diagnostics to google:
Welcome to the Google Cloud SDK!
Active code page: 65001
To help improve the quality of this product, we collect anonymized usage data
and anonymized stacktraces when crashes are encountered; additional information
is available at <https://cloud.google.com/sdk/usage-statistics>. This data is
handled in accordance with our privacy policy
<https://policies.google.com/privacy>. You may choose to opt in this
collection now (by choosing 'Y' at the below prompt), or at any time in the
future by running the following command:
gcloud config set disable_usage_reporting false
Do you want to help improve the Google Cloud SDK (y/N)? n
Nothing gets printed after that.
it seems that the "(gcloud.components.update) Failed to fetch component listing from server" error might be caused by some proxies or antivirus in your environment, I'd recommend you to try a clean installation in a vm or using another network.
Also, I was able to find soem similar errors for this on issue tracker and the team gave a soltion at comment10, also, as you can see on the issue tracker, sometimes this behavior is because the Python SDK is installed on default "Program Files" location, you could give it a try by changing the location of the python SDK

Typo3: Tried adding an extension then my website crashed and displays a HTTP ERROR 500

I took over a website for my client and I tried adding an extension to Typo3. When I did, the whole website crashed and displays a HTTP ERROR 500. I found this thread with a similar problem, followed the instructions and erased the key that was supposed to be removed typo3 site offline after extension upload but that didn't work.
I gained access to the cPanel since I couldn't access the backend login page. So now i'm able to access all of the root files and hopefully fix the problem. Does anyone know anything to fix it?
You should read the error log (for the PHP service or Apache, depending on how your hosting works). There you can see the actual error message which then can give you an indication what's actually wrong.
The most common reasons are:
Extension version is not compatible with the version of TYPO3 you used (and you ignored the warning when installing).
Extension is written in a way that it assumes you update the database schema, which may not happen automatically when you install the extension.
Extension calls on classes that must be loaded and does not provide class loading for the installation you use (e.g. some extensions only offer composer support and won't work if you install without composer).
Extension uses PHP modules that are not installed or is incompatible with the version of PHP that is used.
You should be able to recover this by using the TYPO3 install tool to manually update the database schema and perform checks that the extension works (TYPO3 8.7+ only). If that does not help we will need additional information:
Which TYPO3 version do you use?
Was it installed with composer?
What is the exact error message you get in PHP error logs?
If the extension you installed is public, a link to it would help determine why you get the error.
Hope this helps!

Prestashop PayPal module won't save settings

After I install the module and complete my API credentials I click the "save" button and I always get the following error:
Error !
You need to complete the PayPal identification Information in step 3
otherwise you won't be able to accept payment.
I already uninstalled and reinstalled the module.
PrestaShop version: 1.6.1.4
PayPal version: 3.10.6
Because of You install module that is unknown if it support PayPal's latest changes or not.
Seems like when You click save button it send CURL request to PayPal and tires to get necessary data. But response is not same as supposed to be.
If You're PHP dev: You've to debug that module,
otherwise: find someone to fix it.

Login with Facebook via Rails

As a relative newbie to Rails, I'm not sure how to approach this. I am looking to add a basic "Login with Facebook" feature to a practice site I am developing. I am stuck on two fronts:
Most Rails plugins dealing with Facebook seem out of date or poorly documented. I've encountered Facebooker (seems to have died off from what I see) and Mini_FB (more recent, but very little documentation). I tried to install Mini_FB, but I am still very unfamiliar about working with Gems. I ran gem install mini_fb, then bundle install, and finally added gem 'mini_fb' to my Gemfile, but my server complains of a no such file to load error. Are there any other steps necessary to allow your app to use a gem?
I am confused by how the "Login with Facebook" feature works from an overall birds-eye view. I understand that my App ID is passed into the login feature, and I ultimately get an access token (after resubmitting with my App Secret Key and an authorization code). But how does this integrate with some kind of user system on a Rails site? Since this access code doesn't last forever, do I need to renew it periodically? Is that done by simply waiting to catch an access token error from a Graph request and redoing the entire authorization procedure?
Have you tried OmniAuth?
It supports a whole host of external providers, including facebook.
There are also a number of railscasts on it's use.
The correct order of installing a gem on your application would be first adding it to your Gemfile.rb, then running bundle install on your console. That being said, OmniAuth is probably the best path for you