[Resolved] 404 on import on in test environment
This is going to be an edge-case, and I know what I’m doing will probably cause me many problems; but, here it is anyway.
Import is failing because (I suspect) it’s looking for the file via the absolute path, which in my case means its going out to the internet to get the file, and it doesn’t exist in the internet. Here’s why.
I have a shared host set up on a specific host name. I’m not yet ready to cut over the DNS to the new host, so I’m accessing it from my machine by changing my HOSTS file. When I try to import, I see:
Warning: file_get_contents(http://domain.com/wp-content/uploads/2013/02/widget_data.json) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in /home/user/wp-content/plugins/widget-settings-importexport/widget-data.php on line 401
My assumption is, that this is because the plugin is looking for the file by resolving the domain on the server, which will point it back to my existing host, so the file indeed does not exist. If it was working off a server relative path, I don’t expect this to be a problem.
- The topic ‘[Resolved] 404 on import on in test environment’ is closed to new replies.