Support » Plugin: Contact Form 7 Polylang Module » Putting in Trash and “Empty Trash” not working

  • Resolved alainmelsens

    (@alainmelsens)


    Hello,
    When I try to put a contact form in Trash, then I get a blanc page with HTTP error 500.
    And I get the same HTTP error 500 when I click on the “Empty Trach” button.
    I use the latest version of the contact 7 form plugin and also the latest version of Contact Form 7 Polylang Module. I have also already deactivated all other plugins and nothing resolve the issue. I have also reinstall the Contact Form 7 Polylang Module plugin and always the same problem returns.
    I use my development website on a test environment on localhost. So, I can’t give you at this moment an online URL. Sorry by that.
    Thanks in advance to indicate what I can do or tell me what the reason could be.
    Best Regards.

    • This topic was modified 1 year, 4 months ago by alainmelsens.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    Good morning Alain

    Can you enable WP_DEBUG mode and trace the error please.

    Hello,
    When I want to put a Contact Form in Trash I receive the following error:

    Fatal error: Uncaught Error: Call to undefined method PLL_Admin_Filters_Post::delete_post() in C:\Sites\wptest.tst\wp-content\plugins\cf7-polylang\admin\class-cf7-polylang-admin.php:246 Stack trace: #0 C:\Sites\wptest.tst\wp-includes\class-wp-hook.php(288): Cf7_Polylang_Admin->delete_translations(81) #1 C:\Sites\wptest.tst\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 C:\Sites\wptest.tst\wp-includes\plugin.php(453): WP_Hook->do_action(Array) #3 C:\Sites\wptest.tst\wp-includes\post.php(4235): do_action(‘trash_wpcf7_con…’, 81, Object(WP_Post)) #4 C:\Sites\wptest.tst\wp-includes\post.php(3662): wp_transition_post_status(‘trash’, ‘publish’, Object(WP_Post)) #5 C:\Sites\wptest.tst\wp-includes\post.php(3820): wp_insert_post(Array, false) #6 C:\Sites\wptest.tst\wp-includes\post.php(2825): wp_update_post(Array) #7 C:\Sites\wptest.tst\wp-admin\post.php(234): wp_trash_post(81) #8 {main} thrown in C:\Sites\wptest.tst\wp-content\plugins\cf7-polylang\admin\class-cf7-polylang-admin.php on line 246

    And when I click on the “Empty Trash” button, I receive the following error:

    Fatal error: Uncaught Error: Call to undefined method PLL_Admin_Filters_Post::delete_post() in C:\Sites\wptest.tst\wp-content\plugins\cf7-polylang\admin\class-cf7-polylang-admin.php:602 Stack trace: #0 C:\Sites\wptest.tst\wp-includes\class-wp-hook.php(286): Cf7_Polylang_Admin->delete_post(’81’) #1 C:\Sites\wptest.tst\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 C:\Sites\wptest.tst\wp-includes\plugin.php(453): WP_Hook->do_action(Array) #3 C:\Sites\wptest.tst\wp-includes\post.php(2657): do_action(‘before_delete_p…’, ’81’) #4 C:\Sites\wptest.tst\wp-admin\edit.php(146): wp_delete_post(’81’) #5 {main} thrown in C:\Sites\wptest.tst\wp-content\plugins\cf7-polylang\admin\class-cf7-polylang-admin.php on line 602

    Can you do something with it?

    Thanks in advance.
    Best Regards.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    thanks for the details. So there is indeed an issue in the code due to some deprecated code with regards to the delete mechanism.

    I am releasing v2.3.1, please update and let me know if you encounter any further issues.

    Hello,
    Thank you very much. Everything is working fine now. No blank pages anymore.
    When I put a contact form in the trash than it’s done the right way. And the “Empty Trash” button is also working as expected. All contact forms are deleted.
    Again, thanks for your good and fast support!
    In fact, your module gives Contact Forms 7 with Polylang a real new dimension.
    Best Regards.

    • This reply was modified 1 year, 4 months ago by alainmelsens.
    Plugin Author Aurovrata Venet

    (@aurovrata)

    In fact, your module gives Contact Forms 7 with Polylang a real new dimension.

    yes, its quite strange that no other form plugins integrate with language plusign such as polylang or WPML…. I think this is the only plugin that give this possibility.

    Btw, I am not sure what you level of programming is, but if you need to do more complex (and responsive) layouts in cf7 forms, check out the Smart Grid extension. I also developed an extension to save all your cf7 submission to posts in the dashboard, something useful for front-end data capture solutions.

    Happy coding!

    Hello,
    Yes, I’m using already your Smart Grid extension. And so I discovered that there was an issue with the translation files. You have already put an upgrade I see. I will test it as soon as possible.
    You do really great work and make Contact Form 7 my big favorite this way. 🙂
    Thanks you so much. I’m not a big programmer but I have already tried to modify a little widget for my own needs.
    Best Regards.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Putting in Trash and “Empty Trash” not working’ is closed to new replies.