Title: Warning: Undefined property: stdClass::$post_type in ConditionCallbacks.php
Last modified: April 9, 2025

---

# Warning: Undefined property: stdClass::$post_type in ConditionCallbacks.php

 *  Resolved [NDV Comunicazione – Sviluppo](https://wordpress.org/support/users/ndvcomunicazionesviluppo/)
 * (@ndvcomunicazionesviluppo)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/warning-undefined-property-stdclasspost_type-in-conditioncallbacks-php/)
 * Hi and thanks for your great plugin!
 * I encountered a PHP warning when using Popup Maker:
 * `[30-Mar-2025 11:53:17 UTC] PHP Warning: Undefined property: stdClass::$post_type
   in /wp-content/plugins/popup-maker/classes/ConditionCallbacks.php on line 282`
 * It seems to happen in the `is_post_type()` function:
 * 
   `public static function is_post_type( $post_type ) {global $post;return is_object(
   $post ) && ( is_singular( $post_type ) || $post->post_type === $post_type );}
 * Just wanted to report it in case it helps. Thanks again for your work!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Jamie P.](https://wordpress.org/support/users/jamiepineda/)
 * (@jamiepineda)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/warning-undefined-property-stdclasspost_type-in-conditioncallbacks-php/#post-18407700)
 * Hi [@ndvcomunicazionesviluppo](https://wordpress.org/support/users/ndvcomunicazionesviluppo/)
 * Thanks for reaching out. We’re glad you’re enjoying Popup Maker!
 * Could you share what specific action did you take before seeing the warning?
 * Could you also send us the full error log so we can take a proper look?
 * If it’s possible, please send us your site info as well. Go to **Tools **> **
   Site Health** > **Info **and copy your site info.
 * We look forward to your reply.
 *  Thread Starter [NDV Comunicazione – Sviluppo](https://wordpress.org/support/users/ndvcomunicazionesviluppo/)
 * (@ndvcomunicazionesviluppo)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/warning-undefined-property-stdclasspost_type-in-conditioncallbacks-php/#post-18407831)
 *     ```wp-block-code
       Hi and thank you for your quick reply!The warning appears during normal page loads on the frontend, and sometimes also in the admin dashboard. I didn’t trigger any specific action — it just shows up in the logs repeatedly.Here’s the specific error:[30-Mar-2025 11:53:17 UTC] PHP Warning: Undefined property: stdClass::$post_type in /wp-content/plugins/popup-maker/classes/ConditionCallbacks.php on line 282As requested, I’m attaching a cleaned-up version of the Site Health Info below.` wp-coreversion: 6.7.2site_language: it_ITuser_language: it_ITtimezone: Europe/Romepermalink: /%year%/%monthnum%/%day%/%postname%/https_status: truemultisite: falseuser_registration: 0blog_public: 1default_comment_status: openenvironment_type: productionuser_count: 7dotorg_communication: true wp-paths-sizeswordpress_path: /home//public_html wordpress_size: 718,42 MB (753313190 bytes) uploads_path: /home//public_html/wp-content/uploadsuploads_size: 617,81 MB (647821276 bytes)themes_path: /home//public_html/wp-content/themes themes_size: 104,17 MB (109228448 bytes) plugins_path: /home//public_html/wp-content/pluginsplugins_size: 207,36 MB (217435847 bytes)fonts_path: /home/***/public_html/wp-content/uploads/fontsfonts_size: directory not founddatabase_size: 27,22 MB (28546285 bytes)total_size: 1,64 GB (1756345046 bytes) wp-dropins (1)maintenance.php: true wp-active-themename: Salient Child Theme (salient-child)version: 1.0author: ThemeNectarauthor_website: https://themeforest.net/user/themenectarparent_theme: Salient (salient)theme_features: core-block-patterns, woocommerce, wc-product-gallery-lightbox, wc-product-gallery-zoom, wc-product-gallery-slider, widgets-block-editor, post-formats, post-thumbnails, title-tag, automatic-feed-links, editor-style, menus, gutenberg, widgetstheme_path: /home/***/public_html/wp-content/themes/salient-child wp-parent-themename: Salient (salient)version: 16.1.3author: ThemeNectarauthor_website: https://themeforest.net/user/themenectartheme_path: /home/***/public_html/wp-content/themes/salient wp-themes-inactive (2)Twenty Twenty-Five: version: 1.1, author: il team di WordPressTwenty Twenty-Four: version: 1.3, author: il team di WordPress wp-plugins-active (27)Business Reviews Bundle: version: 1.9.33, author: RichPlugins support@richplugins.com (latest version: 1.9.99)Classic Editor: version: 1.6.7, author: WordPress ContributorsCompanion Auto Update: version: 3.9.2, author: Papin SchipperContact Form 7: version: 6.0.5, author: Takayuki MiyoshiDisable Comments: version: 2.4.7, author: WPDeveloperJetpack: version: 14.5, author: AutomatticJetpack Boost: version: 3.13.0, author: Automattic - Jetpack Site Speed teamJoinchat: version: 5.0.17, author: Creame (latest version: 5.2.4)LiteSpeed Cache: version: 7.0.1, author: LiteSpeed TechnologiesManage XML-RPC: version: 1.0.2, author: brainvireinfoPopup Maker: version: 1.20.4, author: Popup MakerRedirection: version: 5.5.2, author: John GodleySalient Core: version: 2.0.6, author: ThemeNectarSalient Home Slider: version: 1.4.1, author: ThemeNectarSalient Nectar Slider: version: 1.7.5, author: ThemeNectarSalient Portfolio: version: 1.7.5, author: ThemeNectarSalient Shortcodes: version: 1.5.3, author: ThemeNectarSalient Social: version: 1.2.4, author: ThemeNectarSalient Widgets: version: 1.2, author: ThemeNectarSalient WPBakery Page Builder: version: 7.1, author: Michael M - WPBakery.com | Modified by ThemeNectarSay What?: version: 2.2.5, author: Ademti SoftwareUpdraftPlus - Backup/Restore: version: 1.25.3, author: TeamUpdraft, DavidAndersonWeb Application Firewall: version: 2.1.3, author: miniOrangeWordfence Security: version: 8.0.5, author: WordfenceWP-Sweep: version: 1.1.8, author: Lester 'GaMerZ' ChanWPCode Lite: version: 2.2.7, author: WPCodeYoast SEO: version: 24.8.1, author: Team Yoast wp-plugins-inactive (1)Broken Link Checker: version: 2.4.2, author: WPMU DEV wp-mediaimage_editor: WP_Image_Editor_Imagickimagick_module_version: 1809imagemagick_version: ImageMagick 7.1.1-43 Q16-HDRI x86_64 22550 https://imagemagick.orgimagick_version: 3.7.0file_uploads: 1post_max_size: 32Mupload_max_filesize: 16Mmax_effective_size: 16 MBmax_file_uploads: 20imagick_limits:imagick::RESOURCETYPE_AREA: 500 GBimagick::RESOURCETYPE_DISK: 9.2233720368548E+18imagick::RESOURCETYPE_FILE: 196608imagick::RESOURCETYPE_MAP: 250 GBimagick::RESOURCETYPE_MEMORY: 125 GBimagick::RESOURCETYPE_THREAD: 1imagick::RESOURCETYPE_TIME: 0imagemagick_file_formats: 3FR, 3G2, 3GP, A, AAI, AI, APNG, ART, ARW, ASHLAR, AVCI, AVI, AVIF, AVS, B, BAYER, BAYERA, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FFF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MDC, MEF, MIFF, MKV, MNG, MONO, MOS, MOV, MP4, MPC, MPEG, MPG, MPO, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, QOI, R, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, RWL, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, SRW, STEGANO, STI, STRIMG, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YAML, YCBCR, YCBCRA, YUVgd_version: 2.3.3gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPMghostscript_version: 9.27 wp-serverserver_architecture: Linux 4.18.0-553.40.1.lve.el8.x86_64 x86_64httpd_software: LiteSpeedphp_version: 8.3.19 64bitphp_sapi: litespeedmax_input_variables: 5000time_limit: 300memory_limit: 2Gmax_input_time: 600upload_max_filesize: 16Mphp_post_max_size: 32Mcurl_version: 8.12.1 OpenSSL/1.1.1wsuhosin: falseimagick_availability: truepretty_permalinks: truehtaccess_extra_rules: truecurrent: 2025-04-09T13:10:48+00:00utc-time: Wednesday, 09-Apr-25 13:10:48 UTCserver-time: 2025-04-09T15:10:47+02:00 wp-databaseextension: mysqliserver_version: 5.7.44-log-cll-lveclient_version: mysqlnd 8.3.19max_allowed_packet: 67108864max_connections: 200 wp-constantsWP_HOME: undefinedWP_SITEURL: undefinedWP_CONTENT_DIR: /home//public_html/wp-content WP_PLUGIN_DIR: /home//public_html/wp-content/pluginsWP_MEMORY_LIMIT: 1024MWP_MAX_MEMORY_LIMIT: 2GWP_DEBUG: falseWP_DEBUG_DISPLAY: trueWP_DEBUG_LOG: falseSCRIPT_DEBUG: falseWP_CACHE: trueCONCATENATE_SCRIPTS: undefinedCOMPRESS_SCRIPTS: undefinedCOMPRESS_CSS: undefinedWP_ENVIRONMENT_TYPE: undefinedWP_DEVELOPMENT_MODE: undefinedDB_CHARSET: utf8DB_COLLATE: undefined wp-filesystemwordpress: writablewp-content: writableuploads: writableplugins: writablethemes: writablefonts: not writable jetpacksite_id: 219804025ssl_cert: Notime_diff: undefinedversion_option: 14.5:1744185855old_version: 14.4.1:1742569889public: Publicmaster_user: #8 sviluppo@ndvcomunicazione.itis_offline_mode: offis_offline_mode_constant: offcurrent_user: #8 sviluppo@ndvcomunicazione.ittokens_set: Blog User
       ```
   
    -  This reply was modified 1 year, 2 months ago by [NDV Comunicazione - Sviluppo](https://wordpress.org/support/users/ndvcomunicazionesviluppo/).
 *  Plugin Support [Kim L](https://wordpress.org/support/users/kimmyx/)
 * (@kimmyx)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/warning-undefined-property-stdclasspost_type-in-conditioncallbacks-php/#post-18408867)
 * Hi [@ndvcomunicazionesviluppo](https://wordpress.org/support/users/ndvcomunicazionesviluppo/),
 * Thanks for the response!
 * Could you send us a ticket as well via [Support Request – Popup Maker](https://wppopupmaker.com/support/#submit-a-support-ticket)?
 * We might need to take a closer look.
 * We’ll wait for your email! 🙏
 *  [arnaudnumeria](https://wordpress.org/support/users/arnaudnumeria/)
 * (@arnaudnumeria)
 * [9 months ago](https://wordpress.org/support/topic/warning-undefined-property-stdclasspost_type-in-conditioncallbacks-php/#post-18641923)
 * Hi, I encountered the same problem after a native WP search with no results.
 * I’have fixed the warning with **instanceof** **WP_Post **instead of **is_object()**.
 * If it helps to patch the plugin for a future version.
 * `public static function is_post_type( $post_type ) {
    global $post; return $post
   instanceof WP_Post && ( is_singular( $post_type ) || $post->post_type === $post_type);}
    -  This reply was modified 9 months ago by [arnaudnumeria](https://wordpress.org/support/users/arnaudnumeria/).
 *  Thread Starter [NDV Comunicazione – Sviluppo](https://wordpress.org/support/users/ndvcomunicazionesviluppo/)
 * (@ndvcomunicazionesviluppo)
 * [8 months, 4 weeks ago](https://wordpress.org/support/topic/warning-undefined-property-stdclasspost_type-in-conditioncallbacks-php/#post-18644919)
 * [@arnaudnumeria](https://wordpress.org/support/users/arnaudnumeria/) 
   Yes, you’re
   right — using `instanceof WP_Post` is much better than `is_object()`. Thanks 
   for pointing it out!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Warning: Undefined property: stdClass::$post_type in ConditionCallbacks.
php’ is closed to new replies.

 * ![](https://ps.w.org/popup-maker/assets/icon-256x256.gif?rev=3097653)
 * [Popup Maker - Boost Sales, Conversions, Optins, Subscribers with the Ultimate WP Popup Builder](https://wordpress.org/plugins/popup-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-maker/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [NDV Comunicazione – Sviluppo](https://wordpress.org/support/users/ndvcomunicazionesviluppo/)
 * Last activity: [8 months, 4 weeks ago](https://wordpress.org/support/topic/warning-undefined-property-stdclasspost_type-in-conditioncallbacks-php/#post-18644919)
 * Status: resolved