I have a problem loading some javascript files in my html code.

<select id="cats">
    <script type="text/javascript" src="http://reprizadesport.ro/scr/categories.php"></script>

At that location there is a php script that outputs some js code, when i open the link in a new tab everything works fine, but when trying to load it using a html tag, in the console the request gets a 404 code, that means file not found.

I have tried uploading the html file on the webserver in the same folder therefore just using “categories.php” as the src for the script, you can see here it doesn’t work either. I have played with the file permissions but i still can’t get it to work. WordPress is installed and running on that webserver, and i need this to pull content from it and display it on other websites, so i must solve it somehow.

I have ran out of ideas and i hope someone will come up with a way t solve this. Thanks in advance.

Read more here: Can’t load js script from remote files


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: