Fatal error: Uncaught Error: Call to undefined function yaml_parse_file()

Created on 16 March 2023, almost 2 years ago
Updated 17 March 2023, almost 2 years ago

Problem/Motivation

Hi,
I very much would like to have the yaml configuration file of my entity/node type. But enabling the module, I got WSOD.

Steps to reproduce

Install module.
Error

PHP Fatal error:  Uncaught Error: Call to undefined function yaml_parse_file() in sites/all/modules/y/y.module:317

Greetings,

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands Summit

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

Comments & Activities

  • Issue created by @Summit
  • πŸ‡ΊπŸ‡ΈUnited States geru

    The Y module does not reinvent the YAML wheel. You have to install the PHP YAML module.

    Information on this module is at: https://www.php.net/manual/en/book.yaml.php

    What it doesn't tell you, though, is that the Ubuntu ppa ppa:ondrej/php includes the PHP YAML module, so in Ubuntu, using this ppa installing the PHP YAML module may be as easy as:

    sudo apt install php-yaml

    though, if you use an older PHP version, you may need to do something like:

    sudo apt install php7.4-yaml

    Information on installing PHP modules for Drupal 7 / YAD7 server is at: https://yad7.org/content/setting-drupal-7-web-server-lemp-stack

  • πŸ‡³πŸ‡±Netherlands Summit

    Hi, Thanks, I will test this later on.
    May be this module is in need of some documentation and installation instructions?
    Greetings and great weekend!

  • Assigned to geru
  • Status changed to Closed: works as designed almost 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States geru

    The dependency of this module on the PHP / PECL YAML module has been noted and the documentation has been updated.

Production build 0.71.5 2024