PeanutBase / PeanutbaseWebsite

Repo to document and track issues pertaining to PeanutBase website.
0 stars 0 forks source link

Drush throws "Use of undefined constant...an Error in a future version of PHP" #18

Closed sdash-github closed 2 years ago

sdash-github commented 2 years ago

When invoking drush cc all throws this message (peanutbase-stage): arachis_bioproj and arachis_recent_pubs modulkes.

<$> drush cc all; drush cc all
Use of undefined constant arachis_bioproj_page_callback - assumed 'arachis_bioproj_page_callback' (this will throw [warning]
an Error in a future version of PHP) arachis_bioproj.module:19
Use of undefined constant arachis_recent_pubs_page_callback - assumed 'arachis_recent_pubs_page_callback' (this    [warning]
will throw an Error in a future version of PHP) arachis_recent_pubs.module:19
'all' cache was cleared. 

                                                                                   [success]
sdash-github commented 2 years ago

Changes (quoted the unquoted string): 'page callback' => arachis_bioproj_page_callback to 'page callback' => 'arachis_bioproj_page_callback',
and 'page callback' => arachis_recent_pubs_page_callback, to 'page callback' => 'arachis_recent_pubs_page_callback',

This stopped the unwanted messages in drush.