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.
when i click on a link which should display a setting view in drupal. I have an error message: The website has encountered an unexpected error. Please try again later.
My local environment is Windows with Apache 2.4, PHP 7.3 and MySQL 5.7. I was in need of deploying it to UAT for testing purposes. The UAT environment is Ubuntu with Nginx, PHP 7.3 (FPM) and MySQL 5.7.
In the snippet below, I'm trying to get all of the donations content type for the current page so I can iterate over some information on each of them. However, when I use var_dump on the array containing all of these donations that I want, it shows an array with 57 donations, when I only have 3.
Presumably, it is no coincidence that the first 54 donations look like this:
When the user registers, he chooses for himself whether to register as a 'company' or as a 'professional' by assigning himself a role.
Each role can only create one type of content (e.g. Company role can create ctype Company/Professional role can create ctype Professional).
How to create a message at login that, only if the user has not yet created one, warns and directs him according to the role to the content he can create?