Are there plans to upgrade to D8?

CommentFileSizeAuthor
#12 emailreminder.zip1.7 KBsamstamport
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

samstamport created an issue. See original summary.

dwillcox’s picture

Yeah, well. I know this needs to get done. And there are a few remaining outstanding issues in the D7 version that I'd like to get merged before that.

My problem: My old development environment (based on a very old Quickstart setup using a pretty old Linux in a VM) got too cranky, and I've yet to get a working replacement environment going (LAMP, Netbeans/Eclipse, debugger, drush). There seem to be a bajillion sites out there saying "Oh it's easy, just do thisthis never quite corresponds to the current release of something.

And while being pretty good at software development, I don't generally do web development, so I don't know all of the knobs and levers needed to get that working.

I try for a while, then have to put it aside for more pressing life things or my day job.

If I ever manage to find a straightforward recipe for setting up a Drupal development and debug environment under VMWare on a mac, I may be able to get this restarted.

dwillcox’s picture

Assigned: Unassigned » dwillcox
samstamport’s picture

I feel your pain.

I'm using Windows 10. I actually thought all my problems with running Drupal locally were because of this. It's good to know that Linux has similar issues. I was under the impression that Drupal running locally on Linux was without any issues.

I'm running my current D7 site locally with Bitnami and migrating to D8 locally with UwAmp. So far they work OK as long as I don't try to run both at the same time. I had to get paid help from ostraining.com to get Bitnami working. I actually wanted to used Vagrant/DrupalVM, but the guy that supports it currently has no time to solve problems with it.

Best of luck to you!

dwillcox’s picture

I don't think it's so much your host machine as what's in your VM. Setting up an Ubuntu installation in a VM on my Mac is a piece of cake. Even the Apache/Mysql/PHP installation is straightforward. What I've found lacking is something to walk me through setting up a development environment (Eclipse, Xdebug, primarily) with the current Ubuntu and PHP7. I'm thinking that downgrading to PHP5.6 may help.

But then, I'm not trying to do heavy web site building, just Drupal module development.

samstamport’s picture

Can you give me an update on updating this module to D8?

dwillcox’s picture

samstamport -

It just shouldn't be so hard. I've been trying for several days now to set up a development environment in an Ubuntu VM. There seem to be several semi-successful attempts to recreate the QuickStart setup for newer Ubuntu and Drupal releases, but I haven't managed to make any of them work. QuickStart is way too old to be useful.

I'm working on it.

There are a few tickets I want to patch up on the D7 version before I tackle D8. I hope the D8 migration isn't too hard. I've read that there are scripts to help deal with that, but I fear that DateReminder may depend on too many D7 specifics.

At this point, though, I can't guess how long this will take. Sorry. I don't like this either.

samstamport’s picture

I'm going to check into how to write a module for D8 in a few days. I'll get back with you once I determine whether it's something I want to pursue. If I decided that I want to do this maybe we could collaborate.

dwillcox’s picture

I certainly wouldn't object. Like I say, the blocker has been getting a development environment set up. The old QuickStart load was great, but way too old.

I think I'm getting closer now. I've been using the "DrupalPro14" scripts, and have been figuring out how to work around the glitches. It helps to make clones periodically so I can back up to a previous step when something breaks.

Slow going, though.

samstamport’s picture

I've gotten sidetracked with "extracurricular" activities the last few weeks, but am working through videos to learn how to build a D8 module. Have you made any progress?

dwillcox’s picture

Yeah, sidetracked. There's this thing called a "job," and then a death in the family, and then a conference to go to....

I feel like I'm oh so close to getting a development environment set up, but then another gotcha. That old QuickStart image was just *so* handy. It's frustrating that that was never replaced by something functioning.

samstamport’s picture

FileSize
1.7 KB

OK. I started writing my module. I've attached it.

I'm taking development in baby steps. What works right now is when you run cron the module is also run and displays a hello message. I'm working on the email part of it now and am stuck with hook_mail. I don't know how to properly set up the array & parameters. Also, the mail function is apparently never being executed.

I'd appreciate your help.

dwillcox’s picture

Sheesh! It just shouldn't be so hard. But I've finally managed to get an Ubuntu 14 development environment working. Netbeans, xdebug, all of that stuff.

Now I just need to set up some test nodes and I can try exercising code again. Finally!!!

I first want to get a couple of long-overdue D7 issues resolved, then I'll be able take on D8, which will be a new experience for me. I haven't used it at all.

Sorry, I don't know enough about D8 to know what you're trying to do with your example, but it's pretty minimal, and not even complete php.

I read somewhere that there's a tool to help with the D7->D8 migration, and I'll probably start with that.

GreenSkunk’s picture

@samstamport I'm not sure on D8 but check out https://www.drupal.org/project/mailsystem

MailSystem

Tutorial on The Drupal mail system (D7 but great overview) by Provonix

Tutorials on Email in D8

@dwillcox Will you be posting code on a Git repo for us to help test and submit to?

samstamport’s picture

Thank you for your reply.

The following is not intended as a criticism of this particular problem thread.

I have given up on Drupal due to the lack of support for the little guys like me who are a one-person shop. The big shots in Drupal do not care about us. I am looking at Backdrop and Drutopia as Drupal replacements. If those turn out to be poorly support as well I will look at Static Site Generators. There's got to be a good alternative to Drupal for the little guy out there somewhere.

dwillcox’s picture

I finally got myself a local development environment setup (yay Docker4Drupal and PhPStorm!), and started to chip away at porting DateReminder to D8. There's an awful lot of stuff changed. Yes, I like the more thoroughly OO structure, but there's quite a learning curve.

I'd gotten some very basic stuff figured out. Installation and very basic module configuration, and went to extend my test environment to have something DateReminder could work with.

Unfortunately, I discovered that, in spite of how long it's been out, D8 is lacking in a number of features that would make DateReminder kind of pointless.

There is a repeating date module, but's still in beta.

And Calendar isn't available at all.

Makes it seem a lot less useful.

dwillcox’s picture

So in case anyone's paying attention, I recently retired, so the "job" thing is no longer an impediment. And in the interim it seems that meeting up a development environment on my Mac (PhpStorm, Docker) has gotten easier.

But...

It still seems that Drupal 8 is missing some things that would be essential for this to be useful, specifically calendars that support repeated dates.

There are repeated date fields, but

  • the current calendar doesn't honor the repeats, and
  • defining the repeated dates is not something I'd expect a mere human to want to do

There are a lot of interactions needed, so I may just start using the existing repeated fields and hope that Calendar catches up. But it's already been years.

If anyone has any suggestions I'd love to hear.