• Resolved KoolPal

    (@koolpal)


    Hi,

    WooCommerce version: 3.9.2
    WordPress version: 5.3.2

    Debug.log shows multiple instances of below

    PHP Notice: map_meta_cap was called <strong>incorrectly</strong>. The post type size-chart is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in [path]\wp-includes\functions.php on line 4986

    Please review and guide.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter KoolPal

    (@koolpal)

    Some additional notices when I use the customizer

    Notice: Trying to get property 'ID' of non-object in [path]\wp-content\plugins\woo-advanced-product-size-chart\admin\class-size-chart-for-woocommerce-admin.php on line 226

    Notice: Trying to get property 'post_type' of non-object in [path]\wp-content\plugins\woo-advanced-product-size-chart\admin\class-size-chart-for-woocommerce-admin.php on line 227

    Please review and guide.

    Thanks

    Plugin Author Dotstore

    (@dots)

    Hello koolpal,

    Thanks for reaching out to us and sorry for the inconvenience.

    I have reviewed your queries and found that this type of issue might become once your plugin not activated correctly or there is some files missing.

    Can you please deactivate our plugin again and install it again so, it might be works fine.

    Generally, we have created new custom post type on plugin activate but, that custom post type name is “size-chart” and it’s not created on your site.

    It might be possible that your site does not allow creating a new custom post type of there is another plugin conflicting.

    It would be good that you can provide us a list of installed and activated plugin lists and current theme names which help us to troubleshoot your query.

    Let me know stull you have any queries. we are happy to help.

    Thanks,

    Thread Starter KoolPal

    (@koolpal)

    @dots

    Thank you for replying

    Can you please deactivate our plugin again and install it again so, it might be works fine.

    I have deactivated and reactivated this plugin and I cannot replicate the error now

    Generally, we have created new custom post type on plugin activate but, that custom post type name is “size-chart” and it’s not created on your site.

    How can I check if this custom post type has been created or not?

    It would be good that you can provide us a list of installed and activated plugin lists and current theme names which help us to troubleshoot your query.

    Theme: Flatsome
    Active Plugins: (24)
    Advanced Product Size Charts for WooCommerce: by Thedotstore – 2.0.2
    Cashfree: by Cashfree Dev – 1.1 – Not tested with the active version of WooCommerce
    Classic Editor: by WordPress Contributors – 1.5
    Contact Form 7: by Takayuki Miyoshi – 5.1.6
    Cookie Notice: by dFactory – 1.2.50
    Disable REST API: by Dave McHale – 1.5
    Easy Theme and Plugin Upgrades: by Chris Jean – 2.0.1
    Manage XML-RPC: by brainvireinfo – 1.0
    Personal Email: by Shea Bunge – 1.1
    Safe SVG: by Daryll Doyle – 1.9.8
    Shortcode in Menus: by Gagan Deep Singh – 3.5
    Advanced Shipment Tracking for WooCommerce: by zorem – 2.8.5
    WooCommerce Better Usability: by Moises Heberle – 1.0.33 – Not tested with the active version of WooCommerce
    Preview E-mails for WooCommerce: by Digamber Pradhan – 1.6.3
    WooCommerce Variation Swatches: by RadiusTheme – 1.1.4
    WooCommerce Failed Order Customer Email: by VALS – 1.0
    WooCommerce Product SKU Generator: by SkyVerge – 2.4.3
    WooCommerce: by Automattic – 3.9.2
    WooDash: by WooCart – 1.2.0 – Not tested with the active version of WooCommerce
    WooSidebars: by WooCommerce – 1.4.5
    Yoast SEO: by Team Yoast – 13.1
    Mailhog for WordPress: by Tareq Hasan – 1.0
    WPCore Plugin Manager: by Stuart Starr – 1.9.0
    Yoast SEO: WooCommerce: by Team Yoast – 12.6

    Please let me know in case you need any other information. Your plugin is the most convenient I have found so far. Thanks for this!

    Plugin Author Dotstore

    (@dots)

    Hello Koolpal,

    Thanks for providing the details.

    For the custom post type creation query, you need to check-in the database and search like wp_posta table type = ‘size-chart’ found or not.

    Or you can try to install our plugin with another fresh WordPress setup and activate only WooCommerce and our plugin and check still you have the same issue.

    Let us know still you have any queries.

    Thanks,

    Thread Starter KoolPal

    (@koolpal)

    @dots This has not recurred hence I am marking this as resolved.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Notice: map_meta_cap’ is closed to new replies.