grunt-wordpress
grunt-wordpress copied to clipboard
Error: XML-RPC fault: The page template is invalid.
Steps to reproduce
- Check out web-base-template new-css
- Check out qunitjs.com new-css
- grunt deploy
- Check out web-base-template master
- Check out qunitjs.com master
- grunt deploy
Running "wordpress-sync" task
Edited page cookbook.
>> Error editing page extensions...
>> Error: XML-RPC fault: The page template is invalid.
<WARN> Task "wordpress-sync" failed. Use --force to continue. </WARN>
If you then repeat step 6 above (grunt deploy) it completes without error
The problem here is that WordPress accepts the post even though the template is invalid. Since the post is accepted, the content is updated, along with our checksum. On the second deploy, nothing happens. The checksum in WordPress matches the local checksum and we skip the post. @nacin is it a bug or feature that WordPress updates the post when an invalid template is used?