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.
I'm attempting to deploy a Drupal site for the first time and I'm struggling a bit with file permissions. The article https://www.drupal.org/node/244924 seems to provide great advice on how to set up your permissions. In particular running these two blocks seem exactly like the advice I've been searching for.
Hello,
I have been looking after a Drupal 8.7 site that runs in a shared hosting environment. I have no access to a command shell! When doing "minor version" upgrades of Core, I download the tar-archive to my test/stageing system, then re-install contributed modules, check settings.php and .htaccess, run drush updb, etc., etc... When everything tests o.k., I upload everything (except eg. the sites-directory tree etc.). Then run .../update.php on the shared host, followed by clearing all caches.
I have a custom module, and have a controller inherited from Drupal\Core\Controller\ControllerBase.
This is for authenticated/logged-in user.
I want to set a message, and redirect user to some other page.
But, the problem is that message is not being displayed.
Below is the code:
drupal_set_message('You have exceeded max downloads per hour');
$return_response = new \Symfony\Component\HttpFoundation\RedirectResponse('node/'.$nid);
return $return_response;
Redirection is going perfectly fine, but message is not getting displayed.
I created a template in which I am using a UI kit from Creative Tim. Now I am trying to turn this template into a Drupal theme, but I am having trouble with getting all the JS to work. I am getting the following errors in my console: https://imgur.com/7XFfOcC
Below is a structure of the CSS and JS files from my template, and then how I am including them in my theme.