The website encountered an unexpected error. Try again later.

Error: Call to undefined function Drupal\greeting_cards\Controller\file_create_url() in Drupal\greeting_cards\Controller\GreetingCardLayOut->mapNodeWithHtml() (line 200 of modules/contrib/greeting_cards/src/Controller/GreetingCardLayOut.php).

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

abhishek_gupta1 created an issue. See original summary.

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

sourabhjain’s picture

Assigned: Unassigned » sourabhjain

sourabhjain’s picture

Assigned: sourabhjain » Unassigned
Status: Active » Needs review

I have resolved the error. Please review the MR.

raveen_thakur51’s picture

@Yes, In Drupal 8 and later versions, the file_create_url() function has been replaced with the UrlHelper::fileUrl() method.
The MR changes looks fine. Can be merged. Thank You

raveen_thakur51’s picture

Status: Needs review » Reviewed & tested by the community

chancenyasulu’s picture

Status: Reviewed & tested by the community » Fixed
chancenyasulu’s picture

Status: Fixed » Closed (fixed)