• Resolved francoc30

    (@francoc30)


    Hi, I got a notification (see below) from FDP. I do have a couple of pages that are not displayed properly. Please advise.

    Be careful! It looks like EVENTS MANAGER updates the rewrite rules during the same HTTP request.
    FDP rebuilt again the rewrite rules with all plugins active. You should not have issues due to missing rewrite rules, but you may have more load on your server and FDP has to keep all the plugins active to avoid missing rewrite rules when EVENTS MANAGER saves them into the database. If EVENTS MANAGER frequently updates the rewrite rules you will have issues with the performance.
    Please, open a thread on the FDP support forum, and give us the information below. Rewrite Rules updated by the function "flush_rules" in the file "wp-content/plugins/events-manager/classes/em-permalinks.php" at line 36 of the plugin EVENTS MANAGER The rewrite rules where updated requesting /dev1/wp-admin/?fdp_query_menu=true&nonce=63d5264521267&id=63d5264521268&action=deactivate&plugin=none Here an extract of the code: 034 public static function flush(){ 035 global $wp_rewrite; 036 $wp_rewrite->flush_rules(); 037 update_option('dbem_flush_needed', 0); 038 } 039 We also suggest you to contact the support of EVENTS MANAGER
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jose Mortellaro

    (@giuse)

    Hi @francoc30

    thank you for reporting this issue.
    I’ve right now opened a thread on the support forum of Events Manager. You can follow it here: https://ww.wp.xz.cn/support/topic/rewrite-rules-updated-during-the-same-http-request/.
    Unfortunately, it looks like they are not really active on the support forum, so I don’t exclude they will never read my thread.

    I will try to reproduce the same issue on my installation, and see if I can find a solution that solves this conflict.
    Is it possible to give me more details? On which pages do you have issues? Do you have not found pages and 404 errors?

    Theoretically, FDP should solve this kind of issue by regenerating again the rewrite rules. If you still have issues it means the cause is something else, or FDP is not able to regenerate the rewrite rules after they are flushed by the Events Manager plugin.
    Please, add more details to your sentence “I do have a couple of pages that are not displayed properly”.

    Have a great day!

    Jose

    Thread Starter francoc30

    (@francoc30)

    Hi @giuse, Thanks for looking into the issue. Events Manager support is not active since they made a big update last year. The problem I encountered was not FDP’s as I found later. Originally, my issue was the display of shortcode of NextGen Gallery and Simple Membership instead of the proper content. I found out that it was caused by the string I used in Front End url in FDP. The one in NextGen Gallery is now ok, but the one in Simple Membership is still a problem. My site is bilingual, but the profile page always displays the English version even when the Chinese version is intended. This may not be an FDP setting issue. But you may have some insights. Here are the two strings I used in the Front End url tab.

    *zh/member-info/?swpm_member_id* ; *en/member-info/?swpm_member_id*

    In the Post Type tab, there is an Event type. In the Event row, I deselected all the unnecessary plugins and saved the setting. Next time I visited this setting, all plugins were checked. I repeated this twice and each time all plugins were enabled again later. Is this due to the rewrite of rules of Events Manager? I am no expert and have no clue what this rules rewrite is all about, and how this affects FDP. If you don’t mind giving me some guidance.

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @francoc30, thank you for the information, and sorry for my late answer. If you still need help, here you have my comments.

    My site is bilingual, but the profile page always displays the English version even when the Chinese version is intended.

    FDP should have nothing to do with this issue because. It just disables plugins. The issue may be caused by FDP only if by disabling a plugin that you should not disable, then for some reason you have a redirection to the English version or a malfunction of your translation plugin.
    I suggest you disable FDP, and if you still have the same problem you can confirm FDP has nothing to do with this issue.

    Generally, to see if FDP is doing its job, you should check that the disabled plugins are the ones you disabled as per your FDP settings.
    Once FDP disables the right plugins, then you can try to understand if the issues are due to plugins that you should not disable. If on the contrary, you realize FDP is not disabling the plugins you asked to be disabled, then this is another kind of issue, and we should investigate it deeper.

    I suggest you add this line of code in wp-config.php before the comment /* That’s all, stop editing! Happy publishing. */:

    define( 'EOS_DP_DEBUG',true );

    Then go to the page you want to check, ight-click => Inspect => Console, and you will see the list of plugins which are disabled by FDP. The problem solving will be a little easier.

    In the Post Type tab, there is an Event type. In the Event row, I deselected all the unnecessary plugins and saved the setting. Next time I visited this setting, all plugins were checked. I repeated this twice and each time all plugins were enabled again later.

    Do you still have this issue with the last version 1.9.5.5?

    If so, I suggest you enable the debugging by adding these lines in wp-config.php before the comment /* That’s all, stop editing! Happy publishing. */:

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );

    Then go again to the Post Types settings page, change something, and save again. Do you see any error in the file wp-content/debug.log?

    If you inspect the page (right-click => Inspect => Console) after saving, do you see any red errors?

    Have a great day!

    Jose

    Thread Starter francoc30

    (@francoc30)

    Hi @giuse, Thanks for your reply. The membership profile issue is indeed related a redirect feature of the plugin. I have now reset it.

    As for post type Events, the issue is gone after I updated FDP to 1.9.5.2. The event settings are saved and persist. I am marking this as resolved. Thanks.

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @francoc30, thank you very much for the confirmation.

    Have a great day!
    Jose

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

The topic ‘Rewrite rules notice’ is closed to new replies.