Copy link to clipboard
Copied
I do not understand this issue. It was working fine yesterday.
I am not using wordpress. This is a custom PHP file which takes information from an ftp server and updates my SQL database. It is running on my computer. I am using Apache Server 2.0 with macOS Server. In addition, the console reads this:
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /ftpaddress.php.
Reason: Error reading from remote server
I try to rerun the program and I see "An unknown error occurred while discovering dynamically related files. Retry" Could this be an internet connection issue? Or could I have damaged my code?
To turn on error reporting, open your testing server's php.ini file and set to error_reporting(E_ALL);
You might want to add error logging too so you get more details from the Apache and PHP logs.
Copy link to clipboard
Copied
Just to clarify, are you attempting to connect to your local testing server's database or the one on your remote server?
My workflow is to develope locally first and when that all tests out perfectly, I move my PHP files and SQL data to the remote server.
Copy link to clipboard
Copied
This is all on my testing server.
Copy link to clipboard
Copied
Did you confirm your testing server and all Apache processes are running?
Copy link to clipboard
Copied
Yes the server is running because I can access the site. Also, the proxy error has since gone away (without me making any changes to the website at all). My code now runs partially, stops without any error or warning, and says "An unknown error occurred while discovering dynamically-related files". For some context, my code continuously loops for every product listed in a spreadsheet on the ftp. It only completed one iteration of the loop before stopping; another time, it completed about 50 iterations. It used to complete all 21,000 iterations, but now I am having inconsistent "unknown" errors.
Copy link to clipboard
Copied
Do you have error checking enabled on your local testing server?
Copy link to clipboard
Copied
Can you clarify? Is that something I would do through Dreamweaver or through Apache? I have never heard of that.
Copy link to clipboard
Copied
To turn on error reporting, open your testing server's php.ini file and set to error_reporting(E_ALL);
You might want to add error logging too so you get more details from the Apache and PHP logs.