Question: Installation Failure

Installation Failure

1._ When you want to install the project, the button stays loading. No error is output on the screen. 2._ When performing the migration it gives me an error in the console. InvalidA

CO

Cristian Obando

Asked
1._ When you want to install the project, the button stays loading. No error is output on the screen.

2._ When performing the migration it gives me an error in the console.

InvalidArgumentException

Unable to locate factory for [Modules\MPS\Models\Setting].

at vendor\laravel\legacy-factories\src\FactoryBuilder.php:273
269▕ */
270▕ protected function getRawAttributes(array $attributes = [])
271▕ {
272▕ if (! isset($this->definitions[$this->class])) {
➜ 273▕ throw new InvalidArgumentException("Unable to locate factory for [{$this->class}].");
274▕ }
275▕
276▕ $definition = call_user_func(
277▕ $this->definitions[$this->class],

1 vendor\laravel\legacy-factories\src\FactoryBuilder.php:296
Illuminate\Database\Eloquent\FactoryBuilder::getRawAttributes(["name", "Modern POS Solution"])

2 vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\GuardsAttributes.php:149
Illuminate\Database\Eloquent\FactoryBuilder::Illuminate\Database\Eloquent\{closure}()
  • MS

    Mian Saleem

    Answered
    Hello,

    Please run `composer install` command before access the installer.

    The domain/subdomain/host root path should be set to `public` folder in your extracted files.

    Thank you
  • CO

    Cristian Obando

    Answered
    I have done what you tell me, but the installation still does not progress.
  • CO

    Cristian Obando

    Answered
    When you execute it, the button stays loading and does not advance.
    When I inspect in the console this error appears.
  • MS

    Mian Saleem

    Answered
    Hello,

    You can see the ajax call failed with `net::ERR_CONNECTION_RESET` Please make sure that your web server is running.

    How have you set the root path? Are redirecting traffic or what? For local installation, please add virtual host and the root path to `public` folder in extracted files. Then access the virtual host domain in the browser.

    If you use Laravel Herd or Laravel Valet those will do the automatically. For others, you can google and add virtual host.

    Thank you
  • MS

    Mian Saleem

    Answered
    Hello,

    You can try to install it on a live server and if there is any issue, I can help you check.

    Thank you
  • Login to Reply