Create Quote and Create Invoice not working


I have installed on XAMPP. Everything works fine except create quote and create invoice. It gives following error on console.

jquery-1.12.3.min.js:4 GET http://localhostinvoice/index.php/quotes/ajax/modal_create_quote net::ERR_NAME_NOT_RESOLVED

localhostinvoice “/” between localhost and invoice is removed automatically.

I have made following changes in root index.php

define(‘URL_SUBFOLDER’, str_replace(“D:\xampp\htdocs”,’’,($_SERVER[‘DOCUMENT_ROOT’] != dirname(FILE) ? str_replace($_SERVER[‘DOCUMENT_ROOT’], ‘’, dirname(FILE)) : ‘’)));


Here’s the mail I got recently when I get this problem again
The error messages I get are:
Chrome: "Error 105 (net:ERR_NAME_NOT_RESOLVED): The server could not be found"
IE: "IE cannot display the webpage"
Outlook: “The server name you entered can not be found on the network…Please verify that you are online and that the server name is correct”

I had tried safe mode w/networking before as well, tried again, no change.
ERR_NAME_NOT_RESOLVED – Solutions Encyclopedia


Please do only change the define('IP_URL', ''); line in the index.php file. Nothing more.
The changes you made may have led to the errors.

Instead of http://localhostinvoice/index.php/quotes/ajax/modal_create_quote I assume it should be http://localhost/invoice/index.php/quotes/ajax/modal_create_quote
(Notice the additional /)