Thanks for the suggestion.
I've run the updates the way I normally have done them. [put the system in Maintenance Mode, run Update, take system off of Maintenance Mode]
Is there something I can check to see if I need to do something differently or in addition?
Thanks again.
Never mind. I figured it out using the Advanced relationship settings.
No. I never did figure out where all the messages go.
I just adjusted and re-adjusted the parameters until it started working.
Sorry.
Thanks for that clarification.
The modules works much better now.
Thanks again.
When I did the steps in #10, I got this output:
Gathering patches from patch file.
In Patches.php line 516:
[TypeError]
cweagans\Composer\Patches::arrayMergeRecursiveDistinct(): Argument #1 ($arr
ay1) must be of type array, null given, called in /home/landremanadmin/publ
ic_html/landreman/vendor/cweagans/composer-patches/src/Patches.php on line
123
Exception trace:
at /home/landremanadmin/public_html/landreman/vendor/cweagans/composer-patches/src/Patches.php:516
cweagans\Composer\Patches->arrayMergeRecursiveDistinct() at /home/landremanadmin/public_html/landreman/vendor/cweagans/composer-patches/src/Patches.php:123
cweagans\Composer\Patches->checkPatches() at phar:///opt/cpanel/composer/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:206
Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///opt/cpanel/composer/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:129
Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///opt/cpanel/composer/bin/composer/src/Composer/Installer.php:280
Composer\Installer->run() at phar:///opt/cpanel/composer/bin/composer/src/Composer/Command/InstallCommand.php:147
Composer\Command\InstallCommand->execute() at phar:///opt/cpanel/composer/bin/composer/vendor/symfony/console/Command/Command.php:298
Symfony\Component\Console\Command\Command->run() at phar:///opt/cpanel/composer/bin/composer/vendor/symfony/console/Application.php:1040
Symfony\Component\Console\Application->doRunCommand() at phar:///opt/cpanel/composer/bin/composer/vendor/symfony/console/Application.php:301
Symfony\Component\Console\Application->doRun() at phar:///opt/cpanel/composer/bin/composer/src/Composer/Console/Application.php:382
Composer\Console\Application->doRun() at phar:///opt/cpanel/composer/bin/composer/vendor/symfony/console/Application.php:171
Symfony\Component\Console\Application->run() at phar:///opt/cpanel/composer/bin/composer/src/Composer/Console/Application.php:145
Composer\Console\Application->run() at phar:///opt/cpanel/composer/bin/composer/bin/composer:93
require() at /opt/cpanel/composer/bin/composer:29
install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [
...]
Is there something else I need to do?
Thanks.
It's good to learn what the proper way of doing things is. I appreciate your assistance.
Urban
I'm getting these same "Deprecated function: ..." messages on my Drupal 10.2.5 site.
I'm unclear. Is there something I can do temporarily until the next version is released?
Thanks!
I just wanted to thank you again for your patient assistance.
My custom module finally is working and doing what it's intended to do.
Developing it was certainly a good educational course on the concepts involved. And I even learned how to do display messages efficiently along the way.
Thanks again!
I cleared the cache and the module suddenly "work up" and is displaying the message.
Now that I know that the system and the module are talking with one another, I can now put in some code to have the module actually do something.
Thanks for your patience with all my questions.
Thanks for your note and suggestion.
Things still don't work.
Here's the environment for the Drupal 10.2.5 site.
Custom Module name: birthdaycurryear.module
I want to update instances of content type Person when they get added or modified.
I've greatly simplified the module to just see if it is ever called. I'll worry about what I want the module to do later.
The module, based on your recommendation, is:
<?php
/**
*
* Implements hook_ENTITY_TYPE_presave() for person entities.
*
*/
use Drupal\Core\Entity\EntityInterface;
function birthdaycurryear_node_presave(EntityInterface $entity) {
\Drupal::messenger()->addStatus('Got into birthdaycurryear_node_presave function');
}
As I mentioned before, I've tried various approaches to get a "I made it into the function" message to display or get into the log, but nothing has ever been displayed or stored, so I don't think the system ever calls and executes the function.
Is it the "Implements the hook_..." comment that triggers things or the function name?
I was assuming that it was the function name. Is that correct?
If I put a "I made it into the module" message into the code before the function is defined, that message gets displayed, so I know that the module got enabled and installed correctly.
What else can I try to diagnose what's going on?
Person is a content type.
I was thinking that might be a potential issue which is why I put the "echo ..." display in within the function so I can could confirm what it was looking for.
That doesn't [I don't think] explains why my "echo..." display is not popping up.
Do you have a suggested change to my syntax?
Thanks for all your help.
I still don't know what caused the original problem, but I added a cgi-bin directory and the error messages went away.
Thanks for the suggestion regarding this module.
I'll check it out.
I'm still unclear what was causing the mail messages not to be delivered, but I uninstalled the helper → module and then suddenly things started working.
The phrase our team used decades ago was "It's another mystery of data processing".
Regardless, the mail is going through, so all is good with the world.
So, I see in the module vendor/phpmailer/phpmailer/src/SMTP.php, the program is putting out messages, such as
if (!$message->isPersonal()) {
$this->logger->info('%sender-name (@sender-from) sent an email regarding %contact_form.', [
'%sender-name' => $sender_cloned->getAccountName(),
'@sender-from' => $sender_cloned->getEmail() ?? '',
'%contact_form' => $contact_form->label(),
]);
}
that appear on the list of messages from the STMP session that flashes quickly on the screen when you are in the Configuration/SMTP Authentication Support page and you click on Enable Debugging - at least it does that when things work.
Where is the log file that those messages get stored?
I don't see them in the admin/reports/recent log messages log.
I don't see them if I go to the Drupal database and look at the watchdog table.
I assume that they're written out somewhere. I just haven't been able to find that file to troubleshoot effectively.
Can you point me in the right direction?
Thank you for replying.
My issue is actually moot.
I removed the reference to the smtp module in my composer.json file and was able to re-load the module via composer, i.e.,
composer require 'drupal/smtp:^1.2'
For the record, though, here's the message I got when I tried to re-install it via the GUI administrative interface:
Thank you again.
Thanks for the note and your suggestions.
I'll check them out to see if they help solve this mystery.
I changed some of the configuration settings within the SMTP page and the error message stopped showing, but no messages are being delivered.
The recent log messages show that the messages are being sent.
Is there a log somewhere that would show why or what's stopping them from going through?
I changed some of the configuration settings for SMTP and the error message in the Status Report regarding SMTP is not showing anymore.
While that's good, people are still not receiving any of the test emails or emails sent from the Website Feedback form.
I'm still trying to find out where a log file is that might give me a clue as to what's not working.
I'm baffled as to what to try next.
If it makes any difference, the site is hosted on a GoDaddy.com Virtual Private Server.
I added the die(); line to the smtp.module file as some people have suggested to prevent the "that went by too fast" phenomenon and clicked on the debug checkmark.
Still I don't see any additional information when I enter an e-mail address in the "send a test e-mail" box and save the configuration.
The system seems to think it's sending emails based on the recent log messages:
Mail sent to ulandreman@gmail.com with subject Drupal SMTP test e-mail:
To: ulandreman@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: 8Bit X-Mailer: Drupal Return-Path: <info@landreman.com> Sender: info@landreman.com From: Landreman family <info@landreman.com> Subject: Drupal SMTP test e-mail If you receive this message it means your site is capable of using SMTP to send e-mail.
But nothing I've tried has gotten the
"SMTP module is enabled, turned on, but SmtpConnect() threw exception SMTP Error: Could not connect to SMTP host."
error message to go away in my Status Report.
ulandreman → created an issue.
I turned on the Debug option. I'm not sure where the debugging information will show up? Some log?
Do you know?
Regardless, thanks for the suggestion.
Yes, I've done custom formatting of dates for displaying them. That works fine.
I just don't know if that would work to sort the dates.
Thanks.
I'll definitely take a look at it.
Have you used it yourself? If so, how do you like it?
Urban
Thanks again,
I did see that statement, but couldn't find that location in the Views screen's Advanced section at first. I finally did, but realized that the additional functionality works only when the default value for the contextual filter comes from a QUERY rather than from 'Content ID from URL' which is how my View is set up.
So, I either need to learn how to have the system generate a URL in the form of a query or find a different solution.
Regardless, thanks for your assistance.
Thanks for the suggestion.
I saw that, too, and installed it.
I haven't been able to figure out how to use it yet, though. I came up with a less-than-ideal work around, so I still plan to try to find out if this module will actually do what I want. Have you used it yourself?
If so, how do you like it?
Hi, again,
Thanks for the suggestion.
That sounds like a nice enhancement.
Thanks again.
I may have stumbled on to how to make my search "smarter".
I realized that I had the operator for the exposed filter criteria for the name set to "is equal to". I discovered that there are many other options, including "contains".
That may solve my current issue.
I'm sure I'll have more issues before this site is "ready for prime time".
Thanks again for your generous offer to help.
Thanks for replying to my question.
I certainly can just do a search for the Author's name based on that field.
When I try that, though, I find that I have to do a perfect match, i.e., spell the author's name exactly how it is in the Author content type, for the system to find the author of interest.
With the Vocabulary method, the user can see all the possible authors and just needs to pick the one of interest.
Is there a way to do a "smarter" search to give the user a better chance of finding the author of interest?
Thanks again.
I'm not exactly sure what I did, but I seem to have gotten the system to behave as I want it to.
I'd feel better, of course, if I had an "Ah, that's what I need to do" moment, but having a working system is good.
Thanks again for all your assistance.
In the View of Authors as a Page, I have put the Author field as the Filter Criteria that's been exposed.
After the User makes the selection, the author's name and Term ID is displayed in the search box.
This may or may not be what you were thinking of, but I set up a Taxonomy Vocabulary of author names to allow for an exposed filter in the View so the user can select the author of interest.
That works fine.
However, what gets displayed after the person makes a selection is the author's name and the Term ID related to that author name.
I can't find where I can tell the system to just display the term and not the term ID.
What am I missing?
Thanks.
I'll check it out and I hope it'll take me to my next Drupal skill level.
I retraced my steps and somehow things worked the 2nd time.
So, I can check this issue off my "Things I have no idea how to solve" list.
Thank you for taking the time to reply.
I have built Views before, but only involving filtering one content type.
I will definitely look at tutorial and see if I can take it from there.
Thank you once again.
Thanks.
I thought about using a new module, but hoped that the default core Drupal system would work for my very basic needs.
Thanks again.
Thanks for the reply and question.
I happen to be sending messages to my gmail.com account for this test. That processes an HTML-based email just fine when I send one to it from my non-Drupal account.
It's like the Drupal contact form is preparing an HTML-based email, but somewhere it gets marked as text only when it sends it.
Well, I deleted and re-built the View multiple times and it finally decided to work.
I have no clue why it started working this last time since the only thing I did differently is I had the path be "Upcoming_events" rather than "Upcoming-events".
But, since it's working, I'm happy and can now move on to the next step in building out this site.
I'm not sure if it makes any difference, but I set up the View as a Table showing a subset of the fields in the Content Type Events.
Thanks for the suggestion to downgrade PHP to 8.1.
My site is working again.
That is a strange error message, however. It fooled me.
My plan is to update to Drupal 10 at some point.
Thanks so much.