Are there any plans to support Drupal 10+? Right now the max is set to Drupal 9.

We use this module in our site, and we planning update to Drupal 10, but this module is not compatible with Drupal 10

CommentFileSizeAuthor
#2 3367239-2.patch1.33 KBtmaiochi

Issue fork tcpdf-3385155

Command icon 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

tmaiochi created an issue. See original summary.

tmaiochi’s picture

Status: Active » Needs review
StatusFileSize
new1.33 KB

I made a patch for use the module in Drupal 10, please review!

markwittens’s picture

Can confirm this patch works, resolves issues reported by the Upgrade status module and PDF's still get generated as expected.

ayush9598 made their first commit to this issue’s fork.

mabuweb’s picture

I have recently updated to Drupal 10, but I can't get the TCPDF module to work.
I've tried to apply the 3367239-2.patch in D9 before updating to D10, but composer failed anyway on the update saying the module is not D10 compatible.

I also tried to install the module after after the update to D10:
composer require 'drupal/tcpdf:^2.0' --ignore-platform-reqs --with-all-dependencies
but it returns:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- drupal/tcpdf[2.0.0, ..., 2.0.3] require drupal/core ^8 || ^9 -> found drupal/core[8.0.0, ..., 8.9.20, 9.0.0, ..., 9.5.11] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires drupal/tcpdf ^2.0 -> satisfiable by drupal/tcpdf[2.0.0, 2.0.1, 2.0.2, 2.0.3].

Is there any other way to install it in Drupal 10?
Are you planning to publish in the near future a Drupal 10 release of the TCPDF module?

Thank you very much for your help!

sap60’s picture

Hello
I want to migrate to Drupal 10 and I am in the same situation as mabuweb.
I use this module a lot.
Are you planning to release a new Drupal 10 version of the TCPDF module in the near future?

Thank you very much for your help!

Ganapathy’s picture

I have recently tried to update Drupal 10 and I am in the same situation.

Are you able to release a new Drupal 10 version of the TCPDF module?

Thank you!

budalokko’s picture

Status: Needs review » Reviewed & tested by the community

Patch looks correct and works !! My setup is quite simple, but setting to RTBC as specific issues could be fixed in separate issues.

I could test and working fine:

- Using the "callback" functionality in header via DrupalInitialize
- Using the "html" functionality in footer via DrupalInitialize

@mabuweb The following is needed for using and testing in a d10 site and through the upgrade:

- Add the issue fork as an additional repository, and instruct composer to use it for this specific module. Notice the "exclude" key added in first repository, and the entire new repository added for drupal/tcpdf

"repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8",
            "exclude": ["drupal/tcpdf"]
        },
        {
            "type": "package",
            "package": {
                "name": "drupal/tcpdf",
                "type": "drupal-module",
                "version": "dev-3385155-drupal-10-support",
                "source": {
                    "type": "git",
                    "url": "https://git.drupalcode.org/issue/tcpdf-3385155",
                    "reference": "3385155-drupal-10-support"
                }
            }
        }
    ],

- Require this specific version you added:

composer require drupal/tcpdf dev-3385155-drupal-10-support

Once the module maintainers merge this and a new version is available, those changes could be removed.

Ganapathy’s picture

#2 Patch looks correct and its works !!

  • tobiasb committed cd0a4064 on gitlab-config
    Issue #3385155: Drupal 10 support
    
tobiasb’s picture

Category: Feature request » Task
Status: Reviewed & tested by the community » Fixed

Thx. Commited.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.