Hi,
The issue that I have is that no build will be triggered when i create/update/delete an element of a custom post type. This is how I created the post type, putting this in my functions.php :
<?php
add_action('init', 'crea_progetti');
function crea_progetti() {
$labels = array(
'name' => __('Progetti'),
'singular_name' => __('Progetto'),
'add_new' => __('Aggiungi Progetto'),
'add_new_item' => __('Nuovo Progetto'),
'edit_item' => __('Modifica Progetto'),
'new_item' => __('Nuovo Progetto'),
'all_items' => __('Tutti i Progetti'),
'view_item' => __('Vedi Progetto'),
'search_items' => __('Cerca Progetti'),
'not_found' => __('Progetto non trovato'),
'not_found_in_trash' => __('Progetto non trovato nel cestino'),
'show_in_graphql' => true,
'hierarchical' => true,
'graphql_single_name' => 'progetto',
'graphql_plural_name' => 'progetti',
);
$args = array(
'labels' => $labels,
'menu_icon' => 'dashicons-awards',
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'show_in_menu' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'progetto' ),
'capability_type' => 'post',
'has_archive' => false,
'hierarchical' => false,
'menu_position' => null,
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ),
);
register_post_type('progetti', $args);
Do I need some extra configuration for the webhook to be fired also when I save custom post types?
Thanks!
]]>Is there a documented roadmap for this plugin? Is there an ETA for supporting WordPress 5.8. Is there a discussion forum for this plugin somewhere?
]]>Acf image field is returning null in GraphiQl provided by WP Gatsby (i.e https://localhost:8000/___graphql) where as GraphiQl in wp backend provided by WP GraphQL is returning correct value.
I am using WP GraphQL(1.1.3), WP Gatsby(0.9.2), WPGraphQL for Advanced Custom Fields (0.4.1)
]]>I’m currently using version 0.7.3 but there is no prompt, or way to update to the latest 0.8.0 within WordPress plugins.
]]>I am getting this error when I try to activate the plugin
Parse error: syntax error, unexpected ‘)’ in /home/a****in/public_html/wp-gatsby/apex/wp-content/plugins/wp-gatsby/src/Admin/Preview.php on line 169
What may be the issue?
]]>Thanks for this plugin! I’m looking forward to migrating our frontend to gatsby-source-wordpress@v4.
I ran into an issue where if I try to log in or out of my site with WPGatsby activated, I get a bunch of “Trying to get property of non-object” notices.
In addition to the notices, I am unable to complete the process of logging in. In the event that I attempt to log in with the plugin activated, I am redirected to the log in screen with the notices below printed at the top. In this case I need to clear the active plugins in the database to complete the log in process.
i.e.
Notice: Trying to get property 'post_status' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 640 Notice: Trying to get property 'post_status' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 650 Notice: Trying to get property 'post_type' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 655 Notice: Trying to get property 'post_type' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 659 Notice: Trying to get property 'ID' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 665 Notice: Trying to get property 'post_modified' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 675 Notice: Trying to get property 'ID' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 679 Notice: Trying to get property 'post_type' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 717 Notice: Trying to get property 'post_modified' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 731 Notice: Trying to get property 'post_type' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 733 Notice: Trying to get property 'post_status' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 760 Notice: Trying to get property 'post_status' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 765 Notice: Trying to get property 'post_status' of non-object in /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 785 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php:640) in /var/www/html/wp-includes/pluggable.php on line 958 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php:640) in /var/www/html/wp-includes/pluggable.php on line 959 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php:640) in /var/www/html/wp-includes/pluggable.php on line 960
When I deactivate my theme and run TwentyTwenty on my instance, with our current database, the issue still occurs.
When I boot up a fresh instance of WordPress running v5.5.1 and the TwentyTwenty theme with a fresh database, this doesn’t happen.
I’m at a loss. Any ideas? Let me know if you need any more info.
Stack info
———————-
PHP Version: 7.3.15
WP Version: 5.5.1
Theme: Custom
Plugins Activated When Issue Occurs: WPGatsby, WP GraphQL
Our install has failed miserably – Depends on the WP_REST_Cache. But once installed this still throws errors in the background.
[05-May-2020 07:20:01 UTC] PHP Notice: Undefined index: activated in /sites/site-name-omitted.co.uk/files/wp/public/content/plugins/wp-gatsby/class-wp-gatsby.php on line 46
]]>[05-May-2020 07:21:01 UTC] PHP Warning: The use statement with non-compound name ‘WP_REST_Cache’ has no effect in /sites/site-name-omitted.co.uk/files/wp/public/content/plugins/wp-gatsby/class-wp-gatsby.php on line 13