Plugin Conflict

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 4 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17592
    elliotvs
    elliotvs
    Participant

    Hi

    We are having issues with Ajax Search Pro conflicting with TablePress.

    We are using TablePress (https://wordpress.org/plugins/tablepress) and the Auto Import addon: https://tablepress.org/extensions/table-auto-import. We had an issue where the auto import feature was not working (set to auto import every 15 minutes).

    I tested plugins by deactivating each one, and it turned out Ajax Search Pro was causing the following PHP error to occur on TablePress and stopping the autoimport from working:

    PHP Fatal error: Call to a member function get() on null in /nas/content/live/contentlyin/wp-content/plugins/tablepress/classes/class-controller.php on line 89, referer: https://inside.conte…4241294.4426360130310058593750

    Do you have any ideas why Ajax Search Pro is causing the conflict and error, stopping the TablePress Auto Import from working? It works fine with Ajax Search Pro disabled.

    Thanks!

    #17601
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    There are actually two minor tablepress related sections in the plugin. Both are used within the index table controller file. I am not sure how that conflicts with the auto imported though.

    Can you please try these steps, and let me know if any of them helped?

    Step 1
    Try this first. Open up the wp-content\plugins\ajax-search-pro\includes\classes\etc\indextable.class.php file and scroll to lines 1089-1091, which shoudl be these:

    if ( defined( 'TABLEPRESS_ABSPATH' ) ) {
        unset( $tp_controller );
    }

    Please delete or comment those lines.

    ..if the above step has no effect, then..

    Step 2
    In the same file, on lines 1039-1042

    if ( defined( 'TABLEPRESS_ABSPATH' ) ) {
         $tp_controller = TablePress::load_controller( 'frontend' );
         $tp_controller->init_shortcodes();
    }

    Delete or comment these lines as well. Please let me know if this changed anything. These are the only tablepress related lines in the plugin, I don’t think anything else should conflict with it.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #17607
    elliotvs
    elliotvs
    Participant
    You cannot access this content.
    #17609
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.