Drupal is up and running but how do I ...?

Block filtered by text field on page

I have pages whose titles are people (soldiers) and a a field on the page is Rank. I would like to create a block whose filter is current page > rank. So If Fred Smith is a Captain I would like a block to list other captains.

I have done this in the past with rank within the url but wondered if their IS a way of getting a block to look at the page it is on and filter by a field within the page content please?

Files path with token+file(field)paths modules

Context:
In am building a site with a lot of media files (images+videos).

Following modules are installed:
Media, Token, File(Field)Path

I would like files to be stored in this kind of hierarchy:
my_media_files / year / month / my_file_xyz.jpg

Notice: "year"  and "month" are NOT the "native" creation date of the media. They are taxonomy terms of shooting year and month. They are selected  in my media Entity Reference fields.

D7 Views (7.x-3.29). Custom tables with contextual filters

I have a set of custom tables exposed to views via hook_views_data. I have created a view based on one of these tables and have set up the necessary relationships in the "Advanced" section of the Views UI. This all works - Views displays the data correctly. I would like to add a contextual filter based on one of my custom fields. When I try this none of my custom fields are listed. All I see is Global : Null.

What am I doing wrong or is what I want to do not possible?

Aliases are not working on mobile devices

I have a website mahajana net based on the Drupal 7.98 engine. Unfortunately, file aliases do not work on mobile devices. Everything is fine on computers. For instance, the PDF opens correctly on a laptop, but on a iPhone, the PDF tries to load, but ultimately does not load.
If I provide the original URL to the file, it's ok, on both mobile devices and computers.
However, I care about the aliases working correctly everywhere, because the original URL is long.
How can I make aliases working on mobile?

Site Breaks without a file being Touched.

My question I don't believe requires core version any other details for that matter for an answer, but I could be wrong.

How does a Drupal site on a server living and breathing with modules requiring no security updates just randomly break?

I've gone through logs and it identifies an undefined 'index' file and 'variable'. If no files were changed how does a defined 'index' file and 'variable' become undefined? On 10/7 out of the blue these stated showing up in the logs

Hack comes to mind...?

Host changed something on their on server...?

Composer dependencies require a PHP version ">= 8.1.0", but I have 8.2

I recently updated my Drupal site using Composer (version 2.4.4) from Drupal 9.5.10 to 9.5.11 along with the modules Admin Toolbar and Paragraphs.
Everything was working fine before I did this update.

After I did the update when I tried to log in as Admin, I got the error message:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0".

When I enter php -v, I get 8.2.11

Pages

Subscribe with RSS Subscribe to RSS - Post installation