stuartshields / wordcamp-mu-plugins

0 stars 0 forks source link

Fatal error: Missing wcorg_register_meta_only_on_endpoint #1

Open jmslbam opened 6 years ago

jmslbam commented 6 years ago

This function has been added to helper-functions.php 7 months ago and this version here is from 8 months ago

Maybe clone https://github.com/svn2github/wordcamp-mu-plugins instead of this repo?

[16-Oct-2017 15:14:19 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function WordCamp\Post_Types\REST_API\wcorg_register_meta_only_on_endpoint() in /vagrant/content/plugins/wc-post-types/inc/rest-api.php:41
Stack trace:
#0 /vagrant/wp/wp-includes/class-wp-hook.php(298): WordCamp\Post_Types\REST_API\expose_public_post_meta('')
#1 /vagrant/wp/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
#2 /vagrant/wp/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 /vagrant/wp/wp-settings.php(448): do_action('init')
#4 /vagrant/wp-config.php(145): require_once('/vagrant/wp/wp-...')
#5 /vagrant/wp/wp-load.php(42): require_once('/vagrant/wp-con...')
#6 /vagrant/wp/wp-cron.php(26): require_once('/vagrant/wp/wp-...')
#7 {main}
  thrown in /vagrant/content/plugins/wc-post-types/inc/rest-api.php on line 41
[16-Oct-2017 15:14:19 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function WordCamp\Post_Types\REST_API\wcorg_register_meta_only_on_endpoint() in /vagrant/content/plugins/wc-post-types/inc/rest-api.php:41

Ref: https://meta.trac.wordpress.org/browser/sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/helper-functions.php?rev=5219

jmslbam commented 6 years ago

Ok, update, so using the svn2github version of the wordcamp-mu-plugins works on exception of https://github.com/svn2github/wordcamp-mu-plugins/blob/master/ssl.php#L54 wcorg_force_ssl which forces the site to https and it breaks.

jmslbam commented 6 years ago

Shall I open a PR with an updated version of the svn2github/wordcamp-mu-plugins code with the wcorg_force_ssl call disabled. Our shall I open a new issue on https://github.com/stuartshields/chassis-wordcamp?