Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Getting a "The website encountered an unexpected error. Please try again later." message after submit a contact form.
When I look at the Reports > Recent log message, I have got this message :
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "smtp.logger.channel". in Drupal\Component\DependencyInjection\Container->get() (line 157 of /var/www/mywebsite/core/lib/Drupal/Component/DependencyInjection/Container.php).
Hi All, I'm new with Drupal, want to install drustack distro, but don't know how. Should I firstly install Drupal core and then copy drustack files to the core of web-site replacing some files like composer.json? Thanks for attention.
I would like to disable links on the first Multistep form under certain conditions.
I had the idea to do this with javascript, but that's not very clean.
is there any methods to do it automatically ??
is anybody can help me?
I'm trying to get the image uri of a piece of content as soon as it is saved. I'm using hook_ENTITY_TYPE_insert().
However, since it hasn't been fully processed yet, I can't get the eventual image uri. I get the temporary location of the file in the filefield_paths directory. Not it's final destination.
So my question is, can i get this uri from an insert function? There's no post save, so I'm not sure the best way to go about this.
I am very new to module development, I have a "hosted" drupal 8 site that I am allowed to give them modules to install and they verified that the proper php components were installed for sqlsvr (sql server communication). I have an external SQL Server that I would like to display data within a module. I am including the database connection in the module because they will not let me change the settings.php for the site.
How do I display the data from the database on a page/block/whatever in the site and is this code even correct?