Idea-php-symfony2-plugin: Symfony.phar fails to download

Created on 10 May 2019  路  20Comments  路  Source: Haehnchen/idea-php-symfony2-plugin

When creating a new symfony project, PhpStorm wants to download the symfony.phar file from their website. Unfortunately, it gives a 403 error. I suppose after that the basic symfony folder structure should be created in my PhpStorm project. Of course, this does not happen.

Error message:
> Downloading Symfony.phar

Failed to download 'http://symfony.com/installer':
Request failed with status code 403

http://symfony.com/installer redirects to https://symfony.com/installer to https://get.symfony.com/symfony.phar. I don't get a 403 error in my browser.

The plugin seems to try to fetch https://get.symfony.com/Symfony.phar (notice the capital 'S'). This gives, indeed, a 403 in my browser.

Any ideas?

Most helpful comment

The problem still persists

All 20 comments

same fault in ideaIntellij with plugin version v0.17.172

url changed via #1311

i also changed it now to the direct redirect target

Hello @Haehnchen, do you know when you're planning on releasing this? I'm still seeing this issue after updating the plugin to v0.18.174 in PHP Storm.

It was pushed right after the last version, so it should be in v0.18.175!

Unless I'm wrong if it was pushed after the last version tag then it wouldn't be in that version.
Just looking at the updated file at tag 0.18.174 and it's not there:
https://github.com/Haehnchen/idea-php-symfony2-plugin/blob/0.18.174/src/main/java/fr/adrienbrault/idea/symfony2plugin/installer/SymfonyInstallerUtil.java#L38
It's not a massive issue for me now just trying to be helpful.

Issue still exist. Ijsut install the sympfony plugin yesterday and tried to start a new project with no luck.

As I said, the fix was pushed right _after_ .174's release, so it should be in the next version .175.

My apologies, I misread your version number above.

Please when would the v0.18.175 be out on Jetbrains PhpStorm for us to use ?
We are stacked on a very serious project.
We appreciate your hard work.

I would like to try this plugin, but it failed to download Symfony.phar . Do you have a workarround? Is it possible to download Symfony.phar myself and save it to an location so the plugin does not need to download it?

its released

Issue still exists.

image

Still exists

Same here.

I was curious. So i figured out some kind of workaround.

I used a proxy in a docker container to redirect to the URL needed. Might not be the smartest way to handle this, but hey... it worked.

Here are the steps to reproduce it.

  1. Create docker container and publish port 8118. For example:
    docker run -ith privoxy --name privoxy -p 8118:8118 ubuntu /bin/bash

  2. Inside the container install and configure privoxy:
    apt-get update && apt-get upgrade -y && apt-get install -y privoxy
    sed -i -E 's/(^\s*listen-address.*)/# \1/' /etc/privoxy/config
    echo -e "listen-address 0.0.0.0:8118\n" >> /etc/privoxy/config

  3. Inside the container add a redirection to privoxy's user action file:
    echo '{+redirect{https://get.symfony.com/symfony.phar}}' >> /etc/privoxy/user.action
    echo 'symfony.com/installer' >> /etc/privoxy/user.action

  4. Inside the container start privoxy:
    service privoxy start

  5. In your IDE create a new project. Select 'Symfony' as project type, select a folder an do all the other stuff. Then click the "Create" button and look at the annoying hint.

Bildschirmfoto 2019-12-18 um 01 39 48

  1. This time select "Set up HTTP proxy settings", add the proxy you just created and you're done.

Bildschirmfoto 2019-12-18 um 01 44 43

  1. Don't forget to remove the proxy after you're finished with this. Remove from the IDE settings and drop the container.

Hope this helps somebody

The problem still persists

https://get.symfony.com/symfony.phar is no longer supported, according to the documentation we need to use those commands now :
wget https://get.symfony.com/cli/installer -O - | bash on Linux or
curl -sS https://get.symfony.com/cli/installer | bash on Mac.
Why not integrate a version of Symfony and update it during the first launch and maybe allow us to choose between an Embedded Symfony and the System Symfony ?

The problem still persists :(

I'm sure a lot already have found this solution but a good workaround is to create a new composer project instead of a symfony one.

You can choose any symfony package you want to start with, like symfony/skeleton or symfony/website-skeleton.

Solution found here, by Eugene M.

This is why we can't have nice things

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amici picture amici  路  5Comments

stephanvierkant picture stephanvierkant  路  3Comments

dewos picture dewos  路  5Comments

ostrolucky picture ostrolucky  路  4Comments

piegus picture piegus  路  3Comments