❌

Reading view

[Help] PHPUnit in Drupal Multisite loading 'default' instead of specific site directory

Hey everyone, I'm running into a frustrating issue with a Drupal Multisite setup and could use some help.

I'm on a Linux server running Drupal 10.6.2 and Drush 12.5.3.0. My working directory is /var/www/uat.

Here is my /var/www/uat/phpunit.myWebsiteBBB.xml:

<?xml version="1.0" encoding="UTF-8"?> <phpunit bootstrap="/var/www/uat/bootstrap.myWebsiteBBB.php" colors="true"> <php> <env name="DTT_SITE_DIR" value="myWebsiteBBB"/> <env name="SIMPLETEST_BASE_URL" value="https://uat.myWebsiteBBB.com"/> <env name="SIMPLETEST_DB" value="mysql://lmuat:Bwurp9vS(CQSbd5F@localhost:3306/myWebsiteBBB"/> <env name="BROWSERTEST_OUTPUT_DIRECTORY" value="/var/www/uat/web/sites/simpletest/browser_output"/> <ini name="memory_limit" value="-1"/> <server name="HTTP_HOST" value="uat.myWebsiteBBB.com"/> <server name="SERVER_NAME" value="uat.myWebsiteBBB.com"/> <env name="DTT_BASE_URL" value="https://uat.myWebsiteBBB.com"/> <env name="DTT_API_URL" value="https://uat.myWebsiteBBB.com"/> </php> <testsuites> <testsuite name="MyWebsiteBBB Existing Site Tests"> <directory>/var/www/uat/web/modules/custom/lps_api/tests/src/ExistingSite</directory> </testsuite> </testsuites> </phpunit> 

And my /var/www/uat/phpunit.myPageAAA.xml:

<?xml version="1.0" encoding="UTF-8"?> <phpunit bootstrap="/var/www/uat/web/core/tests/bootstrap.php" colors="true"> <php> <env name="DTT_SITE_DIR" value="default"/> <env name="SIMPLETEST_BASE_URL" value="https://uat.myPageAAA.ca"/> <env name="SIMPLETEST_DB" value="mysql://lmuat:Bwurp9vS(CQSbd5F@localhost:3306/multisite"/> <env name="BROWSERTEST_OUTPUT_DIRECTORY" value="/var/www/uat/web/sites/simpletest/browser_output"/> <ini name="memory_limit" value="-1"/> <server name="HTTP_HOST" value="uat.myPageAAA.ca"/> <server name="SERVER_NAME" value="uat.myPageAAA.ca"/> <env name="DTT_BASE_URL" value="https://uat.myPageAAA.ca"/> <env name="DTT_API_URL" value="http://localhost"/> </php> <testsuites> <testsuite name="MyPageAAA Existing Site Tests"> <directory>/var/www/uat/web/modules/custom/lps_api/tests/src/ExistingSite</directory> </testsuite> </testsuites> </phpunit> 

The tests are located in: /var/www/uat/web/modules/custom/lps_api/tests/src/ExistingSite/

I added some lines to debug the environment in /var/www/uat/web/modules/custom/lps_api/tests/src/ExistingSite/ClinicImagesConsistencyTest.php:

public function testClinicImagesMatchJson(): void { // --- HOME SAFE DIAGNOSTICS --- $site_path = \Drupal::getContainer()->getParameter('site.path'); $db_name = \Drupal\Core\Database\Database::getConnection()->getConnectionOptions()['database']; $dtt_url = getenv('DTT_BASE_URL'); fwrite(STDERR, "\n--- SCAN RESULTS ---\n"); fwrite(STDERR, "1. Environment URL (DTT_BASE_URL): " . ($dtt_url ?: 'VACÍO') . "\n"); fwrite(STDERR, "2. Folder you chose to upload : " . $site_path . "\n"); fwrite(STDERR, "3. Final database : " . $db_name . "\n"); fwrite(STDERR, "------------------------------\n"); // --- END OF SAFE DIAGNOSIS --- 

In /var/www/uat/web/sites/sites.php:

<?php $sites['upcore.branchmanager.myWebsiteBBB.com'] = 'myWebsiteBBB'; $sites['dev.branchmanager.myWebsiteBBB.com'] = 'myWebsiteBBB'; $sites['myWebsiteBBB.com'] = 'myWebsiteBBB'; $sites['uat.myWebsiteBBB.com'] = 'myWebsiteBBB'; 

I have two sites: uat.myPageAAA and uat.myWebsiteBBB. Inside /var/www/uat/web/sites, I have the following folders: myWebsiteBBB and default.

So, what's the problem? When I execute: ./vendor/bin/phpunit -c phpunit.myWebsiteBBB.xml

This is the output I get:

--- SCAN RESULTS --- 1. Environment URL (DTT_BASE_URL): https://uat.myWebsiteBBB.com 2. Folder you chose to upload: sites/default 3. Final database: multisite 

Basically, when I run the tests for myWebsiteBBB, it does not load the myWebsiteBBB site data. Instead, it falls back to the default directory. Because of this, everything goes wrong when I execute my test script: /var/www/uat/run_multisite_tests.sh

#!/bin/bash # Ensure we run everything from the directory where this script is located SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "$SCRIPT_DIR" # Define base log directory LOG_BASE_DIR="$SCRIPT_DIR/logs" # Create the logs directory if it doesn't exist mkdir -p "$LOG_BASE_DIR" # Define static log files for this execution MYPAGEAAA_LOG="$LOG_BASE_DIR/uat_myPageAAA.log" MYWEBSITEBBB_LOG="$LOG_BASE_DIR/uat_myWebsiteBBB.log" echo "===================================================" echo "πŸš€ Starting tests for MyPageAAA..." echo "πŸ“„ Logging output to: logs/uat_myPageAAA.log" echo "===================================================" # Run PHPUnit and pipe the output to 'tee' to overwrite the log file ./vendor/bin/phpunit -c phpunit.myPageAAA.xml | tee "$MYPAGEAAA_LOG" MYPAGEAAA_RESULT=${PIPESTATUS[0]} echo "" echo "===================================================" echo "πŸš€ Starting tests for MyWebsiteBBB..." echo "πŸ“„ Logging output to: logs/uat_myWebsiteBBB.log" echo "===================================================" ./vendor/bin/phpunit -c phpunit.myWebsiteBBB.xml | tee "$MYWEBSITEBBB_LOG" MYWEBSITEBBB_RESULT=${PIPESTATUS[0]} echo "" echo "=================== SUMMARY =======================" if [ $MYPAGEAAA_RESULT -eq 0 ]; then echo "βœ… MyPageAAA: SUCCESS" else echo "❌ MyPageAAA: FAILED (Check logs/uat_myPageAAA.log)" fi if [ $MYWEBSITEBBB_RESULT -eq 0 ]; then echo "βœ… MyWebsiteBBB: SUCCESS" else echo "❌ MyWebsiteBBB: FAILED (Check logs/uat_myWebsiteBBB.log)" fi echo "===================================================" # If any test failed, return an error code for continuous integration systems if [ $MYPAGEAAA_RESULT -ne 0 ] || [ $MYWEBSITEBBB_RESULT -ne 0 ]; then exit 1 fi exit 0 

Has anyone run into this before? Why is PHPUnit ignoring my myWebsiteBBB environment variables and forcing the default site directory? Any pointers would be greatly appreciated!

submitted by /u/ScriptNone
[link] [comments]
  •  

Core Infrastructure Maintenance in BLR1 and SGP1

Feb 25, 18:00 UTC
Completed - The scheduled maintenance has been completed.

Feb 25, 15:00 UTC
In progress - Scheduled maintenance is currently in progress. We will provide updates as necessary.

Feb 23, 16:05 UTC
Scheduled - Start: 2026-02-25 15:00 UTC
End: 2026-02-25 18:00 UTC

Hello,

During the above window, our Engineering team will be performing maintenance on core control plane infrastructure in BLR1 and SGP1. Please note that the existing infrastructure will continue running without issue.

We do not anticipate any impact; however, there is a small possibility that control panel functionality specifically CRUD (Create, Read, Update, Delete) operations may be affected during the maintenance window. All running workloads are expected to continue operating normally without interruption.

Our team will be actively monitoring the environment throughout the maintenance, and any unexpected events will be promptly communicated through our status page.

If you have any questions or concerns regarding this maintenance, please feel free to open a support ticket from within your account. We’re here to help.

Thank you,
Team DigitalOcean

  •  

How do I override individuel Nodes with Canvas?

Could somebody help me and take a look at this question please?
I want to use a Canvas Content Template as default for a Content Type (e.g. "Projects"), BUT be able to override individual nodes.

Example:

  • Template has Title + Subtitle + Image
  • For one specific Project node, remove subtitle (or completely different layout)

What I've tried:

  1. Content Type β†’ Manage Display β†’ "Allow each content item to have its layout customized" is not a visible option
  2. Canvas enabled for View Mode
  3. Edit Node β†’ looking for "Layout" tab / Canvas override checkbox β†’ nothing visible

Questions:

  1. Where exactly does the "Override default template for this node only" checkbox from Issue #3567225 appear?
  2. Do I need to create Content Template first (/canvas/content-templates)?
  3. Missing permission or feature not in Canvas 1.0?
  4. Is there a Workaround like Custom Block per node or other solution?
submitted by /u/probefahrer
[link] [comments]
  •  

Core Infrastructure Maintenance in SYD1

Feb 24, 17:00 UTC
Completed - The scheduled maintenance has been completed.

Feb 24, 15:00 UTC
In progress - Scheduled maintenance is currently in progress. We will provide updates as necessary.

Feb 22, 15:12 UTC
Scheduled - Start: 2026-02-24 15:00 UTC
End: 2026-02-24 17:00 UTC

During the above window, our Engineering team will be performing maintenance on core control plane infrastructure in SYD1. Please note that the existing infrastructure will continue running without issue.

We do not anticipate any impact; however, there is a small possibility that control panel functionality specifically CRUD (Create, Read, Update, Delete) operations may be affected during the maintenance window. All running workloads are expected to continue operating normally without interruption.

Our team will be actively monitoring the environment throughout the maintenance, and any unexpected events will be promptly communicated through our status page.

If you have any questions or concerns regarding this maintenance, please feel free to open a support ticket from within your account. We’re here to help.

  •  

Network Maintenance - SFO1

Feb 24, 21:28 UTC
Completed - The scheduled maintenance has been completed.

Feb 24, 09:00 UTC
In progress - Scheduled maintenance is currently in progress. We will provide updates as necessary.

Feb 22, 09:36 UTC
Scheduled - Start: 2026-02-24 09:00 UTC
End: 2026-02-24 22:00 UTC

During the above window, our Networking team will be making changes to the core networking infrastructure to improve performance and scalability in the SFO1 region.

Expected Impact:

These upgrades are designed and tested to be seamless and we do not expect any impact to customer traffic due to this maintenance. If an unexpected issue arises, network traffic for the SFO1 region might be affected for a short period of time. We will endeavor to keep any such impact to a minimum.

If you have any questions related to this maintenance, please send us a ticket from your cloud support page.
https://cloudsupport.digitalocean.com/s/createticket

  •  

Time to tackle Drupal's deployment complexity once and for all?

Forgive this Drupal noob for being blunt, but maybe something good can come out from this seemingly naive question.

Drupal and the newly launched Drupal CMS are powerful and reasonably easy to setup, but they are rather complex to deploy from testing (edit: from a dedicated development environment) to production. They have always been that way, as if suffering from a chronic blind spot, that over time was taken for granted.

Drupal funding comes largely from companies providing (expensive) Drupal hosting services, which include testing (edit: various) environments and migration. In general we are all grateful to these companies. But the harder it is to host Drupal, the more customers these companies have. They may not be discouraging development towards ease of deployment, but they don't seem to incentivize it either. Forking on the other hand would be highly impractical due to a large and complex code base.

If the premise is correct, then I suggest someone within the Drupal community to propose an official goal and funding target, to finance the development of a comprehensive one-click automated deployment functionality with rollback, in both Drupal core and Drupal CMS. Something similar to the Drupal CMS local backup and restore functionality, but remote and more comprehensive.

Edit 1: typo

Edit 2: as noted by some comments, the module "workspaces" (included in core since Drupal 11) can migrate contents between multiple environments within a single instance

Edit 3: the requested cross-instance deployment feature is not provided by other CMS so it's probably unreasonable to request it specifically for Drupal

Edit 4: the official Drupal guide includes a chapter on manual code and content migration at https://www.drupal.org/docs/user_guide/en/install-dev-making.html

submitted by /u/uomo-col-megafono
[link] [comments]
  •  

Control Panel Visibility

Feb 19, 18:42 UTC
Resolved - The issue impacting the visibility of Cloud Panel has been confirmed to be resolved. Between approximately 16:08 PM & 17:56 PM UTC, users may have noticed unusual behavior when accessing the console, performing resizing operations, or experiencing issues with the Cloud Panel visibility.

Our team has taken necessary corrective measures to restore the service, and we can confirm that it is now functioning as expected. We sincerely apologize for the inconvenience caused and truly appreciate your understanding throughout this process.

However, if you continue to experience any issues, please do not hesitate to raise a support ticket for further investigation. We’ll be happy to assist you.

Feb 19, 18:05 UTC
Monitoring - Our team has implemented a fix to address the issue affecting the visibility of the Cloud Panel. We are actively monitoring the situation to ensure overall stability.

Users should no longer encounter abnormalities when accessing the console, resizing the Droplet, misalignments within the Cloud Panel, etc. We will provide a further update once the issue is fully confirmed to be resolved.

Feb 19, 17:34 UTC
Investigating - Our team is currently investigating an issue impacting the visibility of the Control Panel. Users may notice unexpected behavior, such as being prompted for login credentials when accessing the console, being unable to select radio buttons for any plans during resize, columns appearing squished, etc.

We apologize for the inconvenience and will share further updates as soon as more information becomes available.

  •  

drupal cms error

drupal cms error

hello,

im a newbie and i have installed drupal cms, but every time im working on the site , after few changes it get stuck , and the website on localhost is not possibel to acces annymore.

Already happend 4 time.

anybody know what is wrong?

i will put printscreen from the error here.

Thx in advance!

https://preview.redd.it/s1p8noxg8gkg1.png?width=786&format=png&auto=webp&s=3ba68a2f801789faf538c8e036f8b435fcf9c34b

submitted by /u/freelancer1978
[link] [comments]
  •  

The new content metrics module discussed yesterday

The new content metrics module discussed yesterday

Contributors, editors and other content maintainers of long-running Drupal sites should be able to easily see how their content has evolved over time. While analytics modules illustrate the consumption of our site content over time, we needed a tool to illustrate the creation of it.

To enable that, I've just published a new module called Content Metrics. It provides charts illustrating content activity, such as articles created per month over the past 12 months. It also has additional related charts (content type counts, and comments over time), and I'll add others soon.

My goal was to keep it very simple to start with, without loads of dependencies and without promising too much. It also needed to be helpful out-the-box, without requiring admins to spend ages setting it up.

Aren't there enough good modules like this already?

Before making this, I did a bunch of investigating of the current contrib modules, and I only decided to make this after confirming that there just isn't a simple, useful, well-maintained module that provided this sort of information in a a visual format (charts).

You're probably well aware of the many analytics modules: Statistics β€’ Statistics Counter β€’ Statistics Advanced β€’ Statistics rolling period β€’ Entity Metrics β€’ Google Analytics β€’ Page Analytics β€’ AI Google Analytics β€’ Visitors (Web Analytics) β€’ Analytics

However they track site visitor data; they don't report on internal info.

There are also several modules that do report internal site info: Yet another statistics module β€’ Statistics Pro β€’ Metrics β€’ Drupal Metrics β€’ Prometheus Metrics β€’ Users Metrics β€’ Redirect Metrics β€’ Cache Metrics β€’ Server and Db metrics

However each of them had one or more of the following downsides: It didn't show helpful info about content over time, or it didn't show the data in charts, or it wasn't actively maintained, or it just took way too much time to set up. Most of them are great modules, but they're not what my team needs.

So if this is useful to your team or your clients, please give it a try and let me know how you'd like me to improve it; additional charts, exposed filters, different chart styles, etc.

submitted by /u/Droces
[link] [comments]
  •  

Plums

My icebox plum trap easily captured William Carlos Williams. It took much less work than the infinite looping network of diverging paths I had to build in that yellow wood to ensnare Robert Frost.
  •  

Drupal Views Exposed Filters causing SEO Issues

How do you deal with Views Exposed Filters and ajax links that cause SEO errors in tools like Semrush?

Or Search Console yelling at you for Views Exposed Filters with param links like /blog?combine=&tid=469&viewsreference%5Bcompressed%5D=eJxdkEEOgyAQRe8yaxdtutLLkLGMOOmABkcbY7x7IVpJuyDw570PCRtYVIRmA4xu9hQUmjCLVN that cause 404s or the dreaded pagination causing Alternate page with proper canonical tag on links like /blog?8f6666e1_page=27&921a62f2_page=9&aa16511d_page=17&page=12?

I have good experience with Drupal and Views but don't see any options to clean these issues up. Im about to output json and use some js script to provide better filtering options. I'd hate to have to hack views to get proper filters because it would feel too much like webflow + finsweet.

Any pros out there have a solution for this or did I Drupal myself into a corner?

submitted by /u/ExcitingSpell4918
[link] [comments]
  •  

Node auto post on X, Facebook, Instagram, Linkedin ?

If someone has experienced on auto post on social network ? I see there is a social_post module but its stop updating since 2024, I want to create node with image field in Drupal1o, then auto post the image with content on X, Facebook, Linkedin, and maybe Instagram, please suggest if you know about this , Thank you.

submitted by /u/wayle9
[link] [comments]
  •  

DrupalCon Chicago 2026 - Drupal In A Day materials?

I'm new to Drupal and unable to attend the upcoming DrupalCon, but I'd love to get the presentation materials for the Drupal In A Day presentation after it's over. Is that something that's done after the convention is over?

I mean, I recognize that the point is a hands-on experience, and to be fair, I have stumbled my way through setting up a couple of sites, but I'd love to have the official materials to fix my process so that I'm doing it "right" according to actual experts.
Either way, if those materials will be available, how can I get them or request them?

submitted by /u/RyuMaou
[link] [comments]
  •  

Is there a good "internal metrics" module like this?

Is there a good "internal metrics" module like this?

Hi everyone. I've just had a discussion with my colleages (I work at the Uni. of Cambridge), and they'd love to have metrics of how content (and other entites) have changed over time; how content, comments, users, etc. have changed over the past days, weeks months, etc.

The idea is for the "editors" of a popular website - who have created a lot of content over a long period of time - to get an idea of how their content has changed over time, along with other helpful things like comments, user signups, etc.

I know there are a lot of typical analytics modules, but are there any good modules that calculates these sorts of things? And do they have nice charts like the attached pic?

*The attached pic is a mockup I just made to discuss this with my team, and to clarify what I'm wanting.

If no module exists like this, would it be helpful if I built it and put it on D.o?

submitted by /u/Droces
[link] [comments]
  •  

Core Infrastructure Maintenance NYC3

Feb 20, 23:00 UTC
Completed - The scheduled maintenance has been completed.

Feb 19, 19:00 UTC
In progress - Scheduled maintenance is currently in progress. We will provide updates as necessary.

Feb 18, 10:16 UTC
Scheduled - Start: 2026-02-19 19:00 UTC
End: 2026-02-20 23:00 UTC

During the above window, our Engineering team will be performing maintenance on core control plane infrastructure in NYC3. Please note that the existing infrastructure will continue running without issue.

Expected Impact:

We do not anticipate any impact; however, there is a small possibility that control panel functionality specifically CRUD (Create, Read, Update, Delete) operations may be affected during the maintenance window. All running workloads are expected to continue operating normally without interruption.

Our team will be actively monitoring the environment throughout the maintenance, and any unexpected events will be promptly communicated through our status page.

If you have any questions or concerns regarding this maintenance, please feel free to open a support ticket from https://cloudsupport.digitalocean.com/s/createticket. We’re here to help.

  •  

Keeping two distinct environments in sync

I'm helping to maintain a website for a non profit - Drupal, obviously, Drupal 11.

They have two environments on a hosted site, staging and prod, but they don't have much process in place.

A general question is how to keep two environments in sync, and verify that they're in sync. A complicating issue is that staging at this point lags way behind prod, they've tended to just make changes directly on prod.

I've been trying to diff the database, but this is pretty unwieldy. A further issue is that, even when people make changes on staging first, they don't always do precisely the same thing on prod.

I'd like to lock down both envs so that all changes route through me. That might prove difficult politically though. But the initial idea is to bring staging up to date with prod and then verify that. I'm not clear on the best way to do that though.

submitted by /u/Severe-Distance6867
[link] [comments]
  •  

Instagram feed from different accounts as a block.

hey I was wondering if there exits a module which can display an instagram feed from an account as a block, to be shown on the site (Drupal 11). I know these Moduls exists, my main problem ist, that they only can be linked with one account and I would like to display different instagram feeds from different accounts depending on the sites the block appears.

does somebody know if a Modul like that exist ?

submitted by /u/JamesMxJones
[link] [comments]
  •  
❌