Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When installing this module while custom_search is enabled, I don't get the permissions or the default yaml forms. All works well when installing without custom search.
Here is the output:
$ drush en yamlform -y
The following extensions will be enabled: yamlform
Do you really want to continue? (y/n): y
PHP Fatal error: Call to a member function get() on null in .../dev/modules/custom_search/custom_search.module on line 22
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to a member function get() on null in
.../dev/modules/custom_search/custom_search.module,
line 22
$ drush pm-uninstall yamlform
The following extensions will be uninstalled: yamlform
Do you really want to continue? (y/n): y
yamlform was successfully uninstalled. [ok]
$ drush pm-uninstall custom_search
The following extensions will be uninstalled: custom_search
Do you really want to continue? (y/n): y
custom_search was successfully uninstalled. [ok]
$ drush en yamlform -y
The following extensions will be enabled: yamlform
Do you really want to continue? (y/n): y
yamlform was enabled successfully. [ok]
yamlform defines the following permissions: access yamlform overview, administer yamlform submission, administer yamlform
$
And btw, This module is an amazing idea. I love it.
Comment | File | Size | Author |
---|---|---|---|
#2 | Screen Shot 2016-01-29 at 8.06.05 AM.png | 61.09 KB | jrockowitz |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz commentedI was able to duplicate the issue using https://simplytest.me/ (custom_search 8.x-1.0-beta2 & yamlform 8.0.3-dev).
As noted the error is `Fatal error: Call to a member function get() on a non-object in /home/dmajw/www/sites/default/modules/custom_search/custom_search.module on line 22`
I am pretty sure the issue is in the custom search module.
Below is the code with the issue commented in ALLCAPS. Here is a link to the code in the custom_search.module repository. http://cgit.drupalcode.org/custom_search/tree/custom_search.module#n22
Attached is PHPStorm calling out the error with a red squiggly underline.
Comment #3
jrockowitz CreditAttribution: jrockowitz commentedComment #4
jrockowitz CreditAttribution: jrockowitz commentedI am going to move this ticket the custom_search.module's issue queue.
Comment #5
jdanthinne CreditAttribution: jdanthinne as a volunteer and commentedDuplicate of #2656756: bug when creating new content type.
Comment #6
alayham CreditAttribution: alayham as a volunteer commented