grunt-wordpress icon indicating copy to clipboard operation
grunt-wordpress copied to clipboard

Error: XML-RPC fault: The page template is invalid.

Open rdworth opened this issue 12 years ago • 1 comments

Steps to reproduce

  1. Check out web-base-template new-css
  2. Check out qunitjs.com new-css
  3. grunt deploy
  4. Check out web-base-template master
  5. Check out qunitjs.com master
  6. 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

rdworth avatar Jan 05 '13 11:01 rdworth

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?

scottgonzalez avatar Jan 08 '13 13:01 scottgonzalez