Call to undefined function paragraphs_sets_paragraphs_set_load() in paragraphs_set_load()

Created on 7 November 2023, 8 months ago
Updated 27 January 2024, 5 months ago

Call to undefined function paragraphs_sets_paragraphs_set_load() in paragraphs_set_load()

When i create a paragraphs set, I am getting this error --> Call to undefined function paragraphs_sets_paragraphs_set_load() in paragraphs_set_load(). I checked and paragraphs_sets_paragraphs_set_load function does not exists

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium suraj nirmal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @suraj nirmal
  • Status changed to Fixed 8 months ago
  • πŸ‡©πŸ‡ͺGermany stBorchert

    Please update to version 3.0.1 or the latest development version. This error has been fixed a while ago (commit 4a79bb).

  • Status changed to Needs work 7 months ago
  • πŸ‡ΊπŸ‡¦Ukraine myLies

    I'm currently using 3.0.1 version and still can face the same issue while paragraph set contribution

  • Status changed to Needs review 7 months ago
  • πŸ‡ΊπŸ‡¦Ukraine myLies

    PR provided

  • πŸ‡©πŸ‡ͺGermany stBorchert

    Thanks for the fix. It would be very interesting to know, where paragraphs_set_load() is called from ...

    • myLies β†’ authored 256ff170 on 3.0.x
      Issue #3399841 by myLies, suraj nirmal: Call to undefined function...
  • Status changed to Fixed 7 months ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Fixed 5 months ago
  • πŸ‡©πŸ‡°Denmark Uv516 Denmark

    The bug is not completely fixed in version 3.0.1.
    The call "paragraphs_sets_paragraphs_set_load" must be corrected everywhere and thus also in line 589:

    /**
     * Helper function to load a paragraphs set.
     *
     * @param string $name
     *   Name (ID) of paragraphs set.
     *
     * @return \Drupal\paragraphs_sets\Entity\ParagraphsSet
     *   The loaded set or NULL if no set with the given name exists.
     */
    function paragraphs_sets_load_paragraphs_set($name) {
      return ParagraphsSet::load($name);
    }
    
    // @codingStandardsIgnoreStart
    /**
     * Helper function to load a paragraphs set.
     *
     * @param string $name
     *   Name (ID) of paragraphs set.
     *
     * @return \Drupal\paragraphs_sets\Entity\ParagraphsSet
     *   The loaded set or NULL if no set with the given name exists.
     * @deprecated in version 3.0.0 and will be removed in future versions.
     */
    function paragraphs_set_load($name) { /* Line 588 */
    -  return paragraphs_sets_paragraphs_set_load($name);
    +  return paragraphs_sets_load_paragraphs_set($name);
    }
  • πŸ‡©πŸ‡ͺGermany stBorchert

    This has been fixed after creating the release for 3.0.1 so the fix isn't included in this release.
    It is fixed in the latest development version: https://git.drupalcode.org/project/paragraphs_sets/-/blob/3.0.x/paragrap...

Production build 0.69.0 2024