I've updated to 3.0.1 on a 9.2.x site and it breaks my site with this error message:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "file_url_generator". Did you mean this: "url_generator"? in Drupal\Component\DependencyInjection\Container->get() (line 156 of /web/core/lib/Drupal/Component/DependencyInjection/Container.php).
The file_url_generator service was added in 9.3.x: #2940031: Functions file_create_url() and file_url_transform_relative() are deprecated
I suggest raising the requirements to 9.3.x - if you want to keep supporting older versions, you have to switch back to the now deprecated calls
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | marketing.local:history:image-gallery 2022-03-16 13-45-16.png | 77.96 KB | c13l0 |
Issue fork photoswipe-3266485
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
chrisckI can confirm this issue is present. I had to downgrade to 3.0.0 to keep photoswipe working with Drupal 9.2.x.
Comment #3
c13l0 commentedI also confirm that photoswipe is no longer working on sites 9.2.x and below
Comment #4
anybodyIndeed, 3.0.0 is the last version compatible with Drupal < 9.3 (latest stable).
Please use 3.0.0 for older versions or upgrade core to 9.3 to use > 3.0.1
Comment #6
anybodySorry, just saw the core version requirement ^9.3 was missing! Thank you for raising this. Then it's a bug of course!
Going to fix that!
Comment #8
anybodyGoing to create a new release. Sorry.
Comment #9
anybodyThis is a regression from #3122763: Replaced deprecated method for drush_log and drush_delete_dir().
Comment #10
anybodyShould be fixed now. Use
Comment #11
agoradesign commentedwhy is the commit the version 3.1.1 is tagged on, not visible in the commit log here? https://git.drupalcode.org/project/photoswipe/-/commits/3.x
Comment #12
anybody@agoradesign: We needed 2 branches:
3.x for ^9.3 (future)
3.0.x for legacy.
Commits were thereby sadly a bit messed up due to the required reverts.
Comment #13
agoradesign commentedI know, but I'm trying to understand, why this commit here is not showing up in the log any branch? https://git.drupalcode.org/project/photoswipe/-/commit/c9f1fc265dd2a35cf...
Shouldn't that be the last one of 3.x?