I try to bring to a working condition a script on pkhp. I test on lokalkhost (xampp). And I see the following error in the console in the debugger:

Error loading this URI: Could not load the source for http: //localhost/my_test/script1-1.php .

And now there has been added:

Error code card: TypeError: NetworkError when attempting to fetch resource. Resource URL: moz-extension: //2a5c365a-01e2-785c-abff-2017f3de8c2f/node_modules/webextension-polyfill/dist/browser-polyfill.js URL map code: browser-polyfill.js.map [Read More]

The script (php cURL) should go to the target site, log in and receive data. And, here, I receive such error.

My knowledge is not enough to understand what it means. I am with pkhp while "on you". The first script is torturing. I assume that the site is denied access from localhost?

I would be grateful for the clue what it is and how to win it.

PS Here's what I found about this (translation from Yandex. Translator): This is probably the firewall problem. Curl by default tries to use port 1080, which is probably not open on your localhost / router / ISP.

Added xampp to firewall exceptions, but nothing has changed unfortunately. Port 80 is used by httpf.exe, that is, the local server.

How to solve a problem? Thank!

  • Which console is wrong? What code gives this error? And here generally firewall with its extensions and what does this have to do with your scripts? - Vladimir Klykov
  • In the browser console (firefox). The error is generated by the script code launched in the browser on the local host. And here firefox. except that it is his console, I also do not know, damn it. The script is torturing my second in life (the first one is normal). Therefore, I ask what it is and how to fix it? And about debugging php-code in the browser console - it was not me who invented it. https: // web-finder.ru/otladka-php-koda-v-konsoli-brauzera - for example, read here, just remove the spaces. I just started (and, if necessary) in php understand. If absurd - sorry, too. If you have something to tell, I will be glad. - Natalia

1 answer 1

As it turned out, an error related to the cURL utility was displayed in the browser console. For its inclusion and normal operation it took

1. uncomment the line extension = php_curl.dll in the php.ini file
2. copy the files ssleay32.dll, libeay32.dll from the php folder to the folder C: WindowsSystem32 3. restart windows.

After that the error (Error loading this URI ...) disappeared. In the browser itself, php errors began to be displayed normally.

Maybe someone will come in handy.