• Resolved mmcglynn

    (@mmcglynn)


    I just installed the plugin on a clean, local installation (5.5.1) on the Twenty Twenty theme. It very simple, one field. When I go to save it I get the following error:

    Fatal error: Uncaught Error: Too few arguments to function twentytwenty_edit_post_link(), 2 passed in /Applications/MAMP/htdocs/wordpress-local/wp-includes/class-wp-hook.php on line 287 and exactly 3 expected
    in /Applications/MAMP/htdocs/wordpress-local/wp-content/themes/twentytwenty/inc/template-tags.php on line 193

    The instance does save. When I go to move an instance in or out of draft, the UI hangs until I navigate away from the page.

    The plugin ticks all of the feature box that I have but I need to resolve this error before I can put it into production. Any help appreciated.

    • This topic was modified 4 years, 2 months ago by mmcglynn. Reason: More complete error
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mmcglynn

    (@mmcglynn)

    I solved my own problem. I named my Pod post type “Links”, trying to emulate the old Blogroll post type that was (and still is after a fashion) in WordPress core.

    Doing so broke your plugin. You might consider filtering post types for keywords because the name I chose caused a fatal error that the plugin code doesn’t handle.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @mmcglynn

    I tried to reproduce by creating a “Links” CPT an don’t have any issues here.
    Could you take me though all the steps to reproduce this issue?

    Cheers, Jory

    Thread Starter mmcglynn

    (@mmcglynn)

    It would be hard to reproduce since there are so many options. I will try when I get some time. I was able to resolve the issue by renaming the pod.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @mmcglynn

    Ok thanks for the update. Let me know!

    Cheers, Jory

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error when creating new content’ is closed to new replies.