• Resolved Gisèle Wendl

    (@giselewendl)


    Hi, I did a completely fresh install of the plugin on my site yesterday.
    After this I had error
    – `map_meta_cap was called incorrectly. The post type popup is not registered, so it may not be reliable to check the capability “edit_post” against a post of that type. IP: ****, URL: /wp-admin/plugins.php?action=activate&plugin=popup-maker%2Fpopup-maker.php&plugin_status=all&paged=1&s&_wpnonce=0b5902c8c0, Backtrace: activate_plugin, do_action(‘activate_popup-maker/popup-maker.php’), WP_Hook->do_action, WP_Hook->apply_filters, PUM_Install::activate_plugin, PUM_Install::do_multisite, PUM_Install::activate_site, pum_install_example_popups, wp_insert_post, do_action(‘save_post’), WP_Hook->do_action, WP_Hook->apply_filters, FVP_Backend->metabox_save, current_user_can, WP_User->has_cap, map_meta_cap, _doing_it_wrong Please see ****
    From this moment of activation on also other plugins started throw error like this one:
    Trying to get property ‘has_archive’ of non-object in ****/wp-content/plugins/wp-optimize/cache/class-wpo-cache-rules.php on line 197

    Some moments later I had to reboot the server, because PHPCGI didn’t work nomore.

    I uninstalled the plugin – all ok again…. but there’s a reason why I did install it: I want to use it !!!

    Please help, thanks

    The page I need help with: [log in to see the link]

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

    (@belimperial)

    Hello @giselewendl

    Thank you for getting in touch!

    We are sorry to hear you have experienced this issue on your multisite. May we know if you have use the network admin dashboard to install and activate the plugin? If not, kindly do so and see if that will help activate the plugin.

    I see you also have an error for the WP-Optimize plugin, could you please clear its cache and temporarily deactivate it while you install and activate the plugin via the network admin dashboard.

    Let us know if this helps fix the issue. If it does, may we ask for your time to rate and review the plugin.
    If you still need help please message us directly at https://wppopupmaker.com/support/ and kindly include the error log from the server and error log from Popup Maker > Tools.

    Thread Starter Gisèle Wendl

    (@giselewendl)

    Hello and thanks for the reply,

    Well the site is not multisite. I made the install from normal plugin-page.
    I see in the log-excerpt that I posted that it says “PUM_Install::do_multisite” – but the site isn’t a multisite, it’s a simple site.
    With WP-Optimize – ok the plugin is active – but it’s caching features are turned off.

    Bel

    (@belimperial)

    Hi @giselewendl

    Thank you for your reply.

    Please could you check the wp-config.php file if multisite is defined in the file. If yes, kindly remove the multisite markers from your wp-config.php file. Should you have difficulties locating the file under the server and removing the markers, kindly ask for assistance from your host.

    Then resave your permalinks under the WordPress dashboard so it could generate a new .htaccess file in the root folder of the server. I would also suggest renaming the cache folder under the wp-content to ensure no older cache files are firing.

    But before doing so, kindly please create a backup(domain and files) of your site as a precaution just in case something goes wrong with the process.

    Let us know how it goes or if you need further assistance on this matter.

    Thread Starter Gisèle Wendl

    (@giselewendl)

    Hello @belimperial

    wp-config.php has no multisite markers – when I call /wp-admin/network.php I get message “You must define the WP_ALLOW_MULTISITE constant as true in your wp-config.php file to allow creation of a Network. 140 ” – so there …should … be no multisite defined.
    However, your /classes/Install.php always calls do_multisite – I think there’s no clue with that.

    The notices WP-Optimize throws may be ignored – they have no subsequent issues I remarked

    On my site I have WPML installed – this plugin threw error in function cpt_url_to_id_url( $url, $original_url ) during operation of PopupMaker.

    It was because the post_type, in ‘rewrite’ did not have ‘slug’ defined, ‘rewrite’ is simply set to false.
    I then gave WPML a patch that avoids the error:
    I added
    if ( isset( $attrs->rewrite['slug']) ) {
    before original WPML-code
    if ( isset( $vars[ $attrs->rewrite['slug'] ] ) ) {

    Now PopupMaker runs without any errors.

    So I think we can close the case … or optionally transfer it to the WPML-support-forum ?? ?? ??
    I will rate and review the plugin after some time of usage, now I’m still completely fresh to it.

    Thanks a lot, cheers

    Gisèle

    Maria T

    (@mariatogonon)

    Hi there @giselewendl – thanks for sending further details and we’re glad to hear that there are no more errors on your website.

    By the way, if you have time then we would very much appreciate it if you could quickly rate the plugin, just to help us spread the word.

    Have a great day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘map_meta_cap was called incorrectly’ is closed to new replies.