When I enabled the module and tried to add new image style I get the following error with routing.
Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "image_style" for route "retina_images.image.style_preview" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 199 of core/lib/Drupal/Core/Routing/UrlGenerator.php).
There something wrong with image preview when adding new image style.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2683383-add-new-image-style-broken-after-enabling-the-module.patch | 1.04 KB | christiansanders |
Issue fork retina_images-2683383
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ohmdesbois commentedSame issue with Drupal 8.1.7
Uncaught PHP Exception Symfony\\Component\\Routing\\Exception\\InvalidParameterException: "Parameter "image_style" for route "retina_images.image.style_preview" must match "[^/]++" ("" given) to generate a corresponding URL." at /path_to_drupal/core/lib/Drupal/Core/Routing/UrlGenerator.php line 193,
Comment #3
kissfm commentedHi. I have this trouble too. So, what did you do? Thanks!
Comment #4
christiansanders commentedHi - I've attached a patch which will fix the issue around the routing name. Main issue was that there was a second period in the route name :)
Comment #5
christiansanders commentedComment #6
zaphoyd commentedNote that there are two issues here. One is the issue on the add image style page which was fixed by http://cgit.drupalcode.org/retina_images/commit/?id=20aa2a1f101e92dced5e... but hasn't made it to a release version. This fixes the issue in the title that prevents adding new image styles.
There is an additional problem that prevents the edit image style page from working because of the typo in the route name. The patch in #4 fixes the second issue for me (Drupal 8.4.4).
Comment #7
kbrinnerThanks @zaphoyd - once I applied those 2 patches I was able to create a new image style.
If you get the following error after clicking the 'create new style' button on the subsequent pager:
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "retina_images.image_style_preview" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 201 of /app/core/lib/Drupal/Core/Routing/RouteProvider.php).Just
drush cr- the routing has changed so the cache needs to be rebuilt to reflect the change.Drupal version 8.6.3
Retina version 8.x-1.0-beta1
Comment #8
nwom commentedWorks for me. Thanks!
Comment #9
frankfarm commentedThe patch in #4 resolved the problem for me as well.
Comment #13
astonvictor commentedthanks for the patch. fixed and merged
Comment #14
m.abdulqader commented