stvnthomas
New Pleskian
I have two sites on the same server. Site 1 is set up to fetch content from Site 2 via an api endpoint but it gets a 500 Internal Server Error. I've tested with file_get_contents() and curl and the problem exists with both options. I've scoured the server and website logs and there is no record of the error. I've also tested it the other way around, Site 2 fetching a resource from Site 1 and same problem. So it's a server issue. allow_url_fopen is enabled.
However, both sites can file_get_contents() and curl to external resources. For example, they can both load content from an external test endpoint - JSONPlaceholder - Fake online REST API for developers. And I can successfully hit the Site 2 endpoint from my local dev machine or by directly loading the resource in the browser. I just can't get Site 1 to connect to Site 2 endpoint.
Anyone experience something similar?
However, both sites can file_get_contents() and curl to external resources. For example, they can both load content from an external test endpoint - JSONPlaceholder - Fake online REST API for developers. And I can successfully hit the Site 2 endpoint from my local dev machine or by directly loading the resource in the browser. I just can't get Site 1 to connect to Site 2 endpoint.
Anyone experience something similar?