Invalid arguments passed in line 126..
Thoughts? No time to look at this today, just thought I'd notify someone.
2.9 / PHP5
Invalid arguments passed in line 126..
Thoughts? No time to look at this today, just thought I'd notify someone.
2.9 / PHP5
I fixed it by changing line 126:
$template_data = implode( '', file( WP_CONTENT_DIR . $template ) );
to:
$template_data = implode( '', file( $template ) );
Hope this helps!
Thanks, sam.psb. Your fix works for me.
Whew, thanks sam.psb. Your fix just saved my computer's life. I was about to throw it against the wall.
sam.psb - much thanks.
Thanks Sam .. Much Appreciated!
Wonderful - thank you!
Nice work, and thanks for the post!
thanks that fix works great!
No worries, glad to have helped!
Sorry, for me it does not work ... ;0(
Help here on howto fix for anyone having issues
http://www.chris-wallace.com/2009/12/20/fix-custom-post-template-plugin-for-wordpress-2-9/
Thanks for the fix!
The new version of the plugin should resolve this problem. Apologies for the delay in getting it out to you.
Best regards,
Simon
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
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
This topic has been closed to new replies.