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.
Trying to get drupal 8 site working on local lamp server on lubuntu but clean urls failing. Site is currently running on local wamp server without issue.
Lamp stack:
Apache 2.4.18
Mysql 5.7.15
PHP 5.6
Have performed the following steps:
Enabled mod_rewrite:
sudo a2enmod rewrite
Added the following lines to /etc/apache2/sites-available/000-default.conf
I am not sure what I am missing but I hope its something simple - from stepping through the code with a debugger trying to figure out the internals - it seems to be something about a mis-configured homepage setting.
Anywho, I spun up a local dev VM using vagrant/shell - installed Drupal and Drush, configure a few modules, bootstrap theme, everything worked great.
Then, I dumped the DB to a SQL file, destroyed VM, spun it back up, restored the DB and the error I get when accessing site:
In Drupal 8, I am writing a custom form that is required to have inline form error messages as well as the status window that appears at the top of the page when there is an error. Within my buildForm method, I need to fetch the error messages that appear in the status window and the form_state variable at this point of the cycle does not have any error messages.
I made a custom themed D8 site which is working great. I've made some custom content types so the people at my company can post jobs and internships.
These types have their own node twig files to make them custom where I add the fields in my custom layouts.
I made several contact forms with their own fields and email to send it to. My content editors can choose which form to add to the job page. The form is a referenced field to Contact Form and I output it as a Rendered Identity. --> My twig file can output it as {{ content.field_contact_formulier }}
I created a simple custom module where I created a Class Form using a custom template form.
If I don't use my custom template (I comment my _theme hook from my .module), when I submit my form, class methods handlers validate and submit are called. But When I use my custom form template, If I submit my form, validate and submit class methods handlers aren't called, I don't understand why :/
This is my code, I begin with my templates/form--myformtest-form.html.twig template :