digitoimistodude/air-light

Trying to get property 'post_type' of non-object

Closed this issue · 0 comments

Line 27 causes a notice in gutenberg.php.

Screen-Shot-2022-12-15-13-44-46 70

Screen-Shot-2022-12-15-13-44-59 90

Steps to reproduce:

  1. Make sure debug is on:
Config::define( 'SAVEQUERIES', true );
Config::define( 'WP_DEBUG', true );
Config::define( 'WP_DEBUG_DISPLAY', true );
Config::define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true );
Config::define( 'SCRIPT_DEBUG', true );
Config::define( 'FS_METHOD', 'direct' );
Config::define( 'PLL_CACHE_HOME_URL', false );

ini_set( 'display_errors', '1' );

// Enable plugin and theme updates and installation from the admin
Config::define( 'DISALLOW_FILE_MODS', false );
  1. Make sure Laps and wps are installed
  2. Go to wp-admin/customize.php
  3. See this notice.