• Resolved Accur

    (@accur)


    Hi there,

    I just noticed an issue that I am problably having for a week or 2.
    Upon submitting a form supposed to update a post, the form returns this fatal error:
    Fatal error: Cannot redeclare custom_gform_update_post_public_edit() (previously declared in /home/content/[…]/wp-content/plugins/gravity-forms-post-updates/gravityforms-update-post.php:1211) in /home/content/[…]/wp-content/plugins/gravity-forms-post-updates/gravityforms-update-post.php on line 1209

    Knowing that I have modified the plugin as suggested by owner to allow post author to update their post, by adding the following
    1208: add_filter(‘gform_update_post/public_edit’, ‘custom_gform_update_post_public_edit’);
    1209: function custom_gform_update_post_public_edit()
    1210: {
    1211: return ‘edit_posts’;
    1212: }

    That being said, the update works fine, the confirmations are sent and my Salesforce API feed is updated too.
    It is just at the very end, that instead of getting the confirmation text or redirect, I get this fatal error.

    Any help would be most appreciated!

    Can it be the 4.3.1 wordpress update dated 9/15/2015? I have a feeling it could, but debugging something like this is way over my knowledge…

    https://wordpress.org/plugins/gravity-forms-post-updates/

Viewing 1 replies (of 1 total)
  • Thread Starter Accur

    (@accur)

    Solved!
    But not sure it is a very clean fix…

    I have added a first if(!function
    if(!function_exists(‘custom_gform_update_post_public_edit’)){
    function custom_gform_update_post_public_edit()
    {
    return ‘edit_posts’;
    }
    }

Viewing 1 replies (of 1 total)

The topic ‘Fatal error: custom_gform_update_post_public_edit()’ is closed to new replies.