WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
Post links 404 after upgrade to 1.4.3 (9 posts)

  1. damissal
    Member
    Posted 1 year ago #

    I upgraded recently, and now my non-blog posts on the main page (the feature bar at the top) and the personnel pages no longer return their proper pages. They are all there on the back end, but don't load on the live site.

    I also get the Warning: Queries without 'connected_type' are no longer supported. in /home/eys/public_html/wp-content/plugins/posts-to-posts/core/query-post.php on line 16 on the contributors section for each post. I've checked the forums, but don't know enough about PHP to fix the problem on my own (my programmer recently departed after leaving things half finished). Apologies if I'm cluttering the boards. Any help is greatly appreciated, and would be happy to go the direct contact route to keep the forums clean. Site is below.

    http://eatyourserial.com

    http://wordpress.org/extend/plugins/posts-to-posts/

  2. scribu
    Member
    Plugin Author

    Posted 1 year ago #

    Hello damissal,

    What version of Posts 2 Posts were you using before?

    In order to get help, you need to find the code that generated that warning and paste it here.

    One way of doing that is adding this file in a folder called wp-content/mu-plugins/ on your site (create the folder if it doesn't exist) and posting the more detailed error report here.

  3. damissal
    Member
    Posted 1 year ago #

    The update was only yesterday I believe, and all plugins were current before that, so my guess would be 1.4.2. I didn't actually perform the update myself.

    I've uploaded the file to the back end. The error remains the same in the page creator on the WP back end, and the pages still 404 as before, so where should I be looking for the backtrace? To be honest, I feel like jackass being here because I kind of fell into having to fix this by default and really only have the most basic knowledge of what I'm doing. Sorry to be so inept.

  4. scribu
    Member
    Plugin Author

    Posted 1 year ago #

    I've uploaded the file to the back end.

    Where, exactly?

  5. damissal
    Member
    Posted 1 year ago #

    public_html/wp-content/mu-plugins/

    created the folder, uploaded the file to the folder.

  6. scribu
    Member
    Plugin Author

    Posted 1 year ago #

    It should work then; weird.

    I've uploaded the file to the back end. The error remains the same in the page creator on the WP back end

    So, what did you mean by "on the contributors section for each post" earlier?

  7. damissal
    Member
    Posted 1 year ago #

    Sorry, I realized that wasn't clear. Here's a cap of what I'm seeing when I log into the back end on WP:

    http://i49.tinypic.com/2hef41c.png

  8. scribu
    Member
    Plugin Author

    Posted 1 year ago #

    The screenshot helps.

    Maybe you can find the call to p2p_register_connection_type() and post it here. It might be in the functions.php file in your theme.

  9. damissal
    Member
    Posted 1 year ago #

    It took some major hunting, but I managed to find it in my_theme/custom/inc/eys-custom-types.php, nowhere near anywhere I expected to find it, like functions.php or custom_functions.php

    So this is the actual call:

    function eys_connection_types() {
        if ( !function_exists('p2p_register_connection_type') )
            return;
    
        p2p_register_connection_type( 'serials', 'writers' );
        p2p_register_connection_type( 'post', 'writers' );
    }
    add_action('init', 'eys_connection_types', 100);

    I discovered the Shopp plugin had also recently been updated, and upon deactivation, was greeted with this:

    Backtrace from warning 'Connection types without a 'name' parameter are deprecated.' at /home/eys/public_html/wp-content/plugins/posts-to-posts/core/type-factory.php 42:
    /home/eys/public_html/wp-content/plugins/posts-to-posts/core/type-factory.php 42 calling trigger_error()
    /home/eys/public_html/wp-content/plugins/posts-to-posts/core/api.php 80 calling register()
    /home/eys/public_html/wp-content/themes/eys_182/custom/inc/eys-custom-types.php 171 calling p2p_register_connection_type()
    calling eys_connection_types()
    /home/eys/public_html/wp-includes/plugin.php 403 calling call_user_func_array()
    /home/eys/public_html/wp-settings.php 303 calling do_action()
    /home/eys/public_html/wp-config.php 93 calling require_once()
    /home/eys/public_html/wp-load.php 29 calling require_once()
    /home/eys/public_html/wp-blog-header.php 12 calling require_once()
    /home/eys/public_html/index.php 17 calling require()
    Backtrace from warning 'Connection types without a 'name' parameter are deprecated.' at /home/eys/public_html/wp-content/plugins/posts-to-posts/core/type-factory.php 42:
    /home/eys/public_html/wp-content/plugins/posts-to-posts/core/type-factory.php 42 calling trigger_error()
    /home/eys/public_html/wp-content/plugins/posts-to-posts/core/api.php 80 calling register()
    /home/eys/public_html/wp-content/themes/eys_182/custom/inc/eys-custom-types.php 172 calling p2p_register_connection_type()
    calling eys_connection_types()
    /home/eys/public_html/wp-includes/plugin.php 403 calling call_user_func_array()
    /home/eys/public_html/wp-settings.php 303 calling do_action()
    /home/eys/public_html/wp-config.php 93 calling require_once()
    /home/eys/public_html/wp-load.php 29 calling require_once()
    /home/eys/public_html/wp-blog-header.php 12 calling require_once()
    /home/eys/public_html/index.php 17 calling require()

    on top of my website (which I'm assuming is from the backtrace). Does that help?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic