pablorq
Forum Replies Created
-
Found!
It is not a plugin related issue, but a Docker related problem.
When cURL, through wp_remote_get, tries to get http://localhost:8110 is looking for “localhost” inside the container, which has the webserver running on the port 80, not the 8110.
The http://localhost:8110 URL is reached at host level and, as the error details says, cURL fails to connect.
Now it is solved.
Thank you for your help!
Kind regards.
Hello,
This is the echo for the vars used in the call:
content_url:http://localhost:8110/wp-content/plugins/arprice-responsive-pricing-table/core/views/arplite_column_background_color_min.json arguments:Array ( [sslverify] => ) WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 7: Failed to connect to localhost port 8110: Connection refused ) ) [error_data] => Array ( ) [additional_data:protected] => Array ( ) )The json object in http://localhost:8110/wp-content/plugins/arprice-responsive-pricing-table/core/views/arplite_column_background_color_min.json is available.
Hope it can help.
Regards
- This reply was modified 4 years, 9 months ago by pablorq.
Hello,
This is the echo:
WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 7: Failed to connect to localhost port 8110: Connection refused ) ) [error_data] => Array ( ) [additional_data:protected] => Array ( ) )Now I’m testing a new install on a different port (8110) and is has the same behaviour.
Regards
Hello,
On a live website, it works.
But I need it working on a local or internal website, for developing stage before going into production.
Can I run some debugs to send the data to you?
Regards,
Hello,
This was tested on a development setup with WordPress running on a Docker container.
The URL was http://localhost:8080/
Regards,