SPECIAL OFFER: Only $59 for access to everything in OSTraining for 1 year! You save $85!  1
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

MAMP Open Outreach install deprecated function

3 years 4 months ago - 3 years 4 months ago #125864 by SamStamport
I am installing the Open Outreach distribution on MAMP. At the Configure Site step I'm getting several "deprecated function" messages. This also happened when I attempted to restore a backup of a running copy of my dev from Acquia Dev Desktop.

Any idea what's going on?

Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; ctools_context has a deprecated constructor in require_once() (line 127 of C:\MAMP\htdocs\oo\profiles\openoutreach\modules\contrib\ctools\ctools.module).

In the case of restoring my ADD backup I figured it might be leftovers from ADD, but since a freshly downloaded copy of Open Outreach has the same problem I'm scratching my head trying to make sense of it. I've surfed the web for this problem, but have found nothing that makes sense.

A clean install of Drupal 8 works just fine on MAMP, by the way.

Thanks,
Sam

Thanks,
Sam

Please Log in to join the conversation.

3 years 4 months ago #125865 by Nick
Hi Sam,

That's just a notice and very unlikely to cause issues:
www.ostraining.com/blog/drupal/warnings/

Double check to make sure all your modules are up to date and that should be sufficient. You can ignore the messages since they won't be present on a production server with error reporting lower.

Hope this helps! Let us know if you have any questions and we'll be glad to answer.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
The following user(s) said Thank You: SamStamport

Please Log in to join the conversation.

3 years 4 months ago #125866 by SamStamport
Replied by SamStamport on topic MAMP Open Outreach install deprecated function
Thanks!

I checked for updates. Everything looks good.

Could these messages have been caused by the fact that MAMP defaults to php 7?

Sam

Please Log in to join the conversation.

3 years 4 months ago #125867 by Nick
You're very welcome, Sam!

Yes, good catch; that could certainly be the case. It's a notice that the particular code is outdated and might be removed in a future PHP version. It would make sense that with a new PHP version you're more likely to get such notices.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
The following user(s) said Thank You: SamStamport

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!