Site logo

[Resolved] Problem with GeneratePress Premium

Home Forums Support [Resolved] Problem with GeneratePress Premium

Home Forums Support Problem with GeneratePress Premium

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2402021
    Frank Noack

    I tried to copy a hook and got this error message.
    I can not activate the plugin since then.
    PHP-Version 8.1.10
    Can I manually disable a hook?

    Can you help. Thank you very much.

    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 403 der Datei /html/wordpress/wp-content/plugins/gp-premium/elements/class-conditions.php verursacht. Fehlermeldung: Uncaught TypeError: Cannot access offset of type string on string in /html/wordpress/wp-content/plugins/gp-premium/elements/class-conditions.php:403
    Stack trace:

    
    #0 /html/wordpress/wp-content/plugins/gp-premium/elements/class-post-type.php(375): GeneratePress_Conditions::get_saved_label('...')
    #1 /html/wordpress/wp-includes/class-wp-hook.php(308): GeneratePress_Elements_Post_Type->add_columns('...', 4196)
    #2 /html/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #3 /html/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #4 /html/wordpress/wp-admin/includes/class-wp-posts-list-table.php(1363): do_action('...', '...', 4196)
    #5 /html/wordpress/wp-admin/includes/class-wp-list-table.php(1532): WP_Posts_List_Table->column_default(Object(WP_Post), '...')
    #6 /html/wordpress/wp-admin/includes/class-wp-posts-list-table.php(1397): WP_List_Table->single_row_columns(Object(WP_Post))
    #7 /html/wordpress/wp-admin/includes/class-wp-posts-list-table.php(909): WP_Posts_List_Table->single_row(Object(WP_Post), 0)
    #8 /html/wordpress/wp-admin/includes/class-wp-posts-list-table.php(781): WP_Posts_List_Table->_display_rows_hierarchical(Array, 1, 20)
    #9 /html/wordpress/wp-admin/includes/class-wp-list-table.php(1444): WP_Posts_List_Table->display_rows()
    #10 /html/wordpress/wp-admin/includes/class-wp-list-table.php(1371): WP_List_Table->display_rows_or_placeholder()
    #11 /html/wordpress/wp-admin/edit.php(487): WP_List_Table->display()
    #12 {main}
      thrown
    
    #2402053
    Ying
    Staff
    Customer Support

    Hi Frank,

    Can you explain some more about:

    1. what are the contents in the hook element?
    2. how did you copy it?
    3. where did you paste it?

    #2402056
    Frank Noack

    with the reset to PHP 7.4 the problem could be solved.

    #2402066
    Ying
    Staff
    Customer Support

    Glad it’s sorted.

    If you’d like us to investigate some more, we’re happy to do so, just let us know the steps to replicate this issue.

    #2402314
    Frank Noack

    Hello Ying,

    It wasn’t really a GeneratePress Premium Problem. I had built my own Post Duplicator with this Code. https://rudrastyh.com/wordpress/duplicate-post.html

    But it wasn’t really meant for GeneratePress Premium. It was my Mistake.

    Sorry
    Frank

    #2402921
    Ying
    Staff
    Customer Support

    No problem Frank 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.