I have recently installed WordPress on Google App Engine for PHP. Remote image uploading works – so it appears bucket storage is set up correctly. Also, I can create and delete pages and posts – so cloud SQL is working right.
The problem is – the WordPress remote importer (a plugin that uses an XML file to add content to the database) does not work – the error message I get is:
File is empty. Please upload something more substantial. This error
could also be caused by uploads being disabled in your php.ini or by
post_max_size being defined as smaller than upload_max_filesize in
php.ini.
Should I be able to use the WordPress Importer plugin in App Engine? If so, what are steps I could take to fix this error?
I figured out a problem that may be related:
It turns out that the
app.yaml
file that Google recommends does not handle routing well for some WordPress themes and plugins.Here is a sample of the
app.yaml
lines I had to change/add:The above lines change App Engine routing to fix two separate problems:
For fixing the WordPress Importer, I also tried adding the line
upload_max_filesize = 8M
to myphp.ini
file. That edit did not appear to fix the problem.I suspect that the WordPress importer should work on App Engine – but I can’t say for sure. Hopefully someone with more expertise will give a better answer.