WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Custom Post Template] Broken Since 2.9 update (16 posts)

  1. 314media
    Member
    Posted 4 years ago #

    Invalid arguments passed in line 126..

    Thoughts? No time to look at this today, just thought I'd notify someone.

    2.9 / PHP5

    http://wordpress.org/extend/plugins/custom-post-template/

  2. sam.psb
    Member
    Posted 4 years ago #

    I fixed it by changing line 126:

    $template_data = implode( '', file( WP_CONTENT_DIR . $template ) );

    to:

    $template_data = implode( '', file( $template ) );

    Hope this helps!

  3. yeswap
    Member
    Posted 4 years ago #

    Thanks, sam.psb. Your fix works for me.

  4. inchworm
    Member
    Posted 4 years ago #

    Whew, thanks sam.psb. Your fix just saved my computer's life. I was about to throw it against the wall.

  5. EliteSouth
    Member
    Posted 4 years ago #

    sam.psb - much thanks.

  6. 314media
    Member
    Posted 4 years ago #

    Thanks Sam .. Much Appreciated!

  7. kadavy
    Member
    Posted 4 years ago #

    Wonderful - thank you!

  8. glenngeiger
    Member
    Posted 4 years ago #

    Nice work, and thanks for the post!

  9. gonker
    Member
    Posted 4 years ago #

    thanks that fix works great!

  10. sam.psb
    Member
    Posted 4 years ago #

    No worries, glad to have helped!

  11. sommerinhamburg
    Member
    Posted 4 years ago #

    Sorry, for me it does not work ... ;0(

  12. mfrest
    Member
    Posted 4 years ago #

  13. MikesSite
    Member
    Posted 4 years ago #

    Thanks for the fix!

  14. Simon Wheatley
    Code for the People
    Posted 4 years ago #

    The new version of the plugin should resolve this problem. Apologies for the delay in getting it out to you.

    Best regards,

    Simon

  15. r-a-y
    Member
    Posted 4 years ago #

    Thanks Simon.
    Your trunk version (1.0) works.

    Unfortunately, your older version shows up in the plugin repository.

    For anyone else reading, the latest, bleeding version of CPT can always be found here:
    http://downloads.wordpress.org/plugin/custom-post-template.zip

  16. Simon Wheatley
    Code for the People
    Posted 4 years ago #

    OK. SO it turns out that I completely messed up releasing v1.0. You should find an upgrade to v1.1 now and that should work OK. Let me know if not.

    Simon

Topic Closed

This topic has been closed to new replies.

About this Topic