• Resolved chlaudan

    (@chlaudan)


    Hi,
    The issue is as follows:
    The only time I can get to a listing is if a set permalinks to default: https://beta.csde.us/?listing=test-123
    As soon as I change to any other I get the 404 error: https://beta.csde.us/listings/test-123/

    Also cannot list all listings since I can’t get to the listings page. I have run rewrite rules inspector (see below), flushed rules, deactivated and reactivated the plugin and uninstalled and reinstalled. If I deactivate Simple Intranet Employee Directory it works properly. I would really need both to work. Any ideas how I can accomplish that?

    Thank you very much!

    features/([^/]+)/?$	index.php?features=$matches[1]	missing
    features/([^/]+)/page/?([0-9]{1,})/?$	index.php?features=$matches[1]&paged=$matches[2]	missing
    features/([^/]+)/(feed|rdf|rss|rss2|atom)/?$	index.php?features=$matches[1]&feed=$matches[2]	missing
    features/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$	index.php?features=$matches[1]&feed=$matches[2]	missing
    property-types/([^/]+)/?$	index.php?property-types=$matches[1]	missing
    property-types/([^/]+)/page/?([0-9]{1,})/?$	index.php?property-types=$matches[1]&paged=$matches[2]	missing
    property-types/([^/]+)/(feed|rdf|rss|rss2|atom)/?$	index.php?property-types=$matches[1]&feed=$matches[2]	missing
    property-types/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$	index.php?property-types=$matches[1]&feed=$matches[2]	missing
    locations/([^/]+)/?$	index.php?locations=$matches[1]	missing
    locations/([^/]+)/page/?([0-9]{1,})/?$	index.php?locations=$matches[1]&paged=$matches[2]	missing
    locations/([^/]+)/(feed|rdf|rss|rss2|atom)/?$	index.php?locations=$matches[1]&feed=$matches[2]	missing
    locations/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$	index.php?locations=$matches[1]&feed=$matches[2]	missing
    status/([^/]+)/?$	index.php?status=$matches[1]	missing
    status/([^/]+)/page/?([0-9]{1,})/?$	index.php?status=$matches[1]&paged=$matches[2]	missing
    status/([^/]+)/(feed|rdf|rss|rss2|atom)/?$	index.php?status=$matches[1]&feed=$matches[2]	missing
    status/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$	index.php?status=$matches[1]&feed=$matches[2]	missing
    listings/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$	index.php?attachment=$matches[1]&cpage=$matches[2]	missing
    listings/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$	index.php?attachment=$matches[1]&feed=$matches[2]	missing
    listings/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$	index.php?attachment=$matches[1]&feed=$matches[2]	missing
    listings/[^/]+/([^/]+)/trackback/?$	index.php?attachment=$matches[1]&tb=1	missing
    listings/[^/]+/([^/]+)/?$	index.php?attachment=$matches[1]	missing
    listings/([^/]+)(/[0-9]+)?/?$	index.php?listing=$matches[1]&page=$matches[2]	missing
    listings/([^/]+)/comment-page-([0-9]{1,})/?$	index.php?listing=$matches[1]&cpage=$matches[2]	missing
    listings/([^/]+)/page/?([0-9]{1,})/?$	index.php?listing=$matches[1]&paged=$matches[2]	missing
    listings/([^/]+)/(feed|rdf|rss|rss2|atom)/?$	index.php?listing=$matches[1]&feed=$matches[2]	missing
    listings/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$	index.php?listing=$matches[1]&feed=$matches[2]	missing
    listings/([^/]+)/trackback/?$	index.php?listing=$matches[1]&tb=1	missing
    listings/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$	index.php?attachment=$matches[1]&cpage=$matches[2]	missing
    listings/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$	index.php?attachment=$matches[1]&feed=$matches[2]	missing
    listings/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$	index.php?attachment=$matches[1]&feed=$matches[2]	missing
    listings/[^/]+/attachment/([^/]+)/trackback/?$	index.php?attachment=$matches[1]&tb=1	missing
    listings/[^/]+/attachment/([^/]+)/?$	index.php?attachment=$matches[1]	missing
    listings/page/([0-9]{1,})/?$	index.php?post_type=listing&paged=$matches[1]	missing
    listings/(feed|rdf|rss|rss2|atom)/?$	index.php?post_type=listing&feed=$matches[1]	missing
    listings/feed/(feed|rdf|rss|rss2|atom)/?$	index.php?post_type=listing&feed=$matches[1]	missing
    listings/?$	index.php?post_type=listing	missing

    https://www.ads-software.com/plugins/wp-listings/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author agentevolution

    (@agentevolution)

    It may be the order in which the post types are registered by the plugin(s).

    Your rewrite rules log shows that the source of the rewrite rules for listings is missing.

    Would recommend deactivating both plugins. Then replace your .htaccess with the default WP htaccess – under Basic WP on this page: https://codex.www.ads-software.com/htaccess

    Once you have a clean htaccess file, activate the WP Listings plugin first, then activate the Directory plugin.

    Thread Starter chlaudan

    (@chlaudan)

    Thank you for the quick reply. I have tried all you have written, actually my .htaccess contained the default code – but I replaced it anyway. I then activated as you wrote but as soon as I activate the second one in any order the rules go missing. Any other ideas?

    Thank you

    Plugin Author agentevolution

    (@agentevolution)

    The fault lies in the Simple Intranet Directory’s code and the method they use to register the post type then flush the rewrite rules.

    They are including the flush_rewrite_rules() function inside the si_create_bio_post_type() function that creates the post type, which is run on the init action.

    Line 45 (https://plugins.trac.www.ads-software.com/browser/simple-intranet-directory/trunk/main.php)

    Having it flush rewrite rules on the init action means it runs on every page load, which is not only horrible for performance, but also unnecessary and is likely what is causing post types previously registered to be wiped out.

    Flushing the rewrite rules needs to be pulled out of that si_create_bio_post_type() function and instead moved into it’s own function that is only run on plugin activation. See: https://codex.www.ads-software.com/Function_Reference/register_post_type#Flushing_Rewrite_on_Activation

    Thread Starter chlaudan

    (@chlaudan)

    Thank you, I have posted to them and will see.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflict w/ Simple Intranet Employee Directory’ is closed to new replies.