New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Post Types and Customizer panels not available on local install of Jetpack #373

Open
johnpitchko opened this Issue Mar 22, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@johnpitchko

johnpitchko commented Mar 22, 2018

I previously opened issues with (WPDistillery)[https://github.com/flurinduerst/WPDistillery/issues/73] and with Jetpack, but I closed them as I believe the issue is now with Scotchbox (see below).

Hello, just did two clean installs of WPDistillery and enabled Jetpack in Development Mode (so no connection to Wordpress.com). I then enabled the two built in custom post types (CPTs) in Jetpack (Portfolio and Testimonials). Activation appears to work okay, but the post types do not appear in the Admin screen, or in Settings > Writing. I am using Independent Publisher 2 theme (which adds the Content Options panel to Customizer).

No idea if the issue is with WPDistillery, Scotchbox, or Jetpack, but opening a low priority issue to do some testing and to ask if anyone else can replicate this issue.

missing-content-options-panel
missing-portfolios-panel

The issue is not related to my custom theme. I switched to a different theme (Argent), which is listed to be compatible with Jetpack Portfolios, and encountered the same issue.

Other custom post types are allowed. I installed the CPT UI plugin and created my own dummy custom post type through Wordpress admin. It displays correctly in the admin bar after creation.

I manually copied the register_custom_post_type() function for the jetpack-portfolio custom post type from Jetpack and ran it manually in my functions.php. The Portfolio post type did appear in the admin bar.

Latest

The good news is that I installed (VCCW)[http://vccw.cc/], which is another pre-configured Wordpress dev environment for Vagrant, installed Jetpack, and enabled Portfolios custom post type. Portfolio is now available on the nav bar! Also, Content Options is available in the Customizer when using my custom theme!

Bad news means that this issue appears then to be with Scotchbox.

customizer-vccw
jetpack-vccw

@whatnickcodes

This comment has been minimized.

Show comment
Hide comment
@whatnickcodes

whatnickcodes Mar 22, 2018

Member

Weird... Can you turn on PHP errors (like absolutely force them on and track down what is breaking?

My gut says PHP version is causing some pain here

Member

whatnickcodes commented Mar 22, 2018

Weird... Can you turn on PHP errors (like absolutely force them on and track down what is breaking?

My gut says PHP version is causing some pain here

@johnpitchko

This comment has been minimized.

Show comment
Hide comment
@johnpitchko

johnpitchko Mar 22, 2018

I'll certainly try! Not sure the best way to do it but will use some Google-fu.

According to phpinfo(), I am using version 7.0

scotchbox-phpinfo

johnpitchko commented Mar 22, 2018

I'll certainly try! Not sure the best way to do it but will use some Google-fu.

According to phpinfo(), I am using version 7.0

scotchbox-phpinfo

@flurinduerst

This comment has been minimized.

Show comment
Hide comment
@flurinduerst
Collaborator

flurinduerst commented Mar 22, 2018

@johnpitchko

This comment has been minimized.

Show comment
Hide comment
@johnpitchko

johnpitchko Mar 22, 2018

Thanks @flurinduerst

Debugging enabled in wp-config.php:

define('WP_DEBUG', true);

/* That's all, stop editing! Happy blogging. */

define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define( 'JETPACK_DEV_DEBUG', true );

Debugging enabled in /etc/php/7.0/apache2/php.ini:

error_reporting = E_ALL
display_errors = On
log_errors = On
error_log = /var/log/php_errors.log

Are these correct/valid for Scotchbox?

johnpitchko commented Mar 22, 2018

Thanks @flurinduerst

Debugging enabled in wp-config.php:

define('WP_DEBUG', true);

/* That's all, stop editing! Happy blogging. */

define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define( 'JETPACK_DEV_DEBUG', true );

Debugging enabled in /etc/php/7.0/apache2/php.ini:

error_reporting = E_ALL
display_errors = On
log_errors = On
error_log = /var/log/php_errors.log

Are these correct/valid for Scotchbox?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment