This forum is for questions about upgrading an existing Drupal site. Don't forget to read the UPGRADE.txt file that comes with every Drupal download.

Can you send a variable containing html from module file to template

I'm migrating drupal 7 to drupal 8 and there is a custom module that contains a lot of custom html code in the .module file. I understand that modules in drupal 8 requires a .html.twig file that contains the html while the .module uses a hook to send variables to the .html.twig

Is there a way to send a variable containing HTML in the .module file to be rendered by the .html.twig

.module code :

$var = <p>hello world</p>

.html.twig code:

{{ var }} 

SSL Self signed certificate on local Error

Trying to update version from 8.9.4 to 8.9.19. Manually updated Drupal core by switching ~.files, Core, and Vendor. Now tryin to run Composer update and I am getting this error:

 curl error 60 while downloading https://packages.drupal.org/8/packages.json: SSL certificate problem: self signed certificate in certificate chain   

Any ideas to bypass this? Thank you

Installed Drupal 9 where it should not have worked

I'm wondering how I just did this, but I installed D9 on a server running Apache/2.4.6 (CentOS). I actually did it by accident while testing out a composer installation. I thought it might be a fluke so I removed it. and did it again. Both times it shows as a working Drupal 9 site.

Was this requirement changed?

Recommend-Project Install Doesn't Read index File

Running Drupal 9 from local install.

When I run Drupal 9 with the index file in the root directory the install runs fine (manually added from tarball) .

When I try to run Drupal 9 from the 'web' folder installed with composer (composer create-project drupal/recommended-project:9.2.6 drupal9.2.6)  in the root directory I'm getting the 400 Bad Request. I changed the 'httpd-vhosts' file (below) to include the path to the web folder and restarted Apache. But it continues to throw the error.

<Virtual Host *:80>

ServerName Drupal

Updating production site

Hi, I'm new to using Composer.

I have updated modules and core updates locally via Composer on our development server and not planning to run Composer on the production server (Azure). Can I please know what will be an alternative to deploy updates to production site and running database updates?

I'm planning to use Git to do the above process and run update.php on the production site. Are there any beginner level articles to learn about how Git can be used for this?

Migrating from Drupal 7 to 8 and upgrading to Drupal 9

Hi guys. I have a site running on Drupal 7 and I am upgrading to Drupal 9. I had to upgrade to Drupal 8 first, as some contributed modules do not support direct migration, like Simplenews. 

I managed to migrate from Drupal 7 to 8, but while upgrading to Drupal 9, I ended up forgetting to check the compatibility of some modules (Service Links and Login Toboggan). 

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal