Question: Problem After Upload

Problem After Upload

after upload when i go to mydomain.com/install it comes with this error Warning: require(/home/*********/public_html/mydomain.com/public/../vendor/autoload.php): failed to open stream: N

AE

ahmed elfkhrany

Asked

after upload when i go to mydomain.com/install it comes with this error

Warning: require(/home//public_html/mydomain.com/public/…/vendor/autoload.php): failed to open stream: No such file or directory in /home//public_html/mydomain.com/public/index.php on line 28

Fatal error: require(): Failed opening required ‘/home//public_html/mydomain.com/public/…/vendor/autoload.php’ (include_path=‘.:/opt/alt/php74/usr/share/pear’) in /home//public_html/mydomain.com/public/index.php on line 28

  • AE

    ahmed elfkhrany

    Answered

    i did a composer install and still can not access it it gave me a this

    Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead. Package symfony/inflector is abandoned, you should avoid using it. Use EnglishInflector from the String component instead. Generating optimized autoload files

    Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi

    Illuminate\Database\QueryException

    SQLSTATE[28000] [1045] Access denied for user ‘forge’@‘localhost’ (using password: NO) (Connection: mysql, SQL: select * from mps_settings)

    at vendor/laravel/framework/src/Illuminate/Database/Connection.php:795 791▕ // If an exception occurs when attempting to run a query, we’ll format the error 792▕ // message to include the bindings with SQL, which will make this exception a 793▕ // lot more helpful to the developer instead of just the database’s errors. 794▕ catch (Exception $e) { ➜ 795▕ throw new QueryException( 796▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 797▕ ); 798▕ } 799▕ }

    1 [internal]:0 Illuminate\Foundation\Application::Illuminate\Foundation{closure}() +20 vendor frames

    22 modules/MPS/Helpers/helpers.php:36 Illuminate\Database\Eloquent\Model::all()

    Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

    can you help me with this please

  • MS

    Mian Saleem

    Answered

    Hello,

    I am so sorry about this. I have fixed the above error in v0.12.5

    Please download the latest file and try again OR you can edit the modules/MPS/Providers/MPSServiceProvider.php and replace the if statement (14 - 22) with the following

     if (function_exists('mps_config') && env('APP_INSTALLED')) {
        try {
            $env_settings = [];
            $settings = mps_config();
            $keys = [...mail_setting_keys(), ...payment_setting_keys()];
            foreach ($keys as $key) {
                $env_settings['mail.mailer' == $key ? 'mail.default' : $key] = $settings[$key] ?? null;
            }
            config($env_settings);
        } catch(Exception $e) {
            logger()->error($e->getMessage());
        }
    }
    

    Thank you

  • MS

    Mian Saleem

    Answered

    Hello,

    For the standard license, you need to install composer packages with composer install and then access the installer.

    There was issue with composer install in v0.12.4 that is fixed in v0.12.5

    Thank you

  • AE

    ahmed elfkhrany

    Answered

    problem in installation please check attached image

  • AE

    ahmed elfkhrany

    Answered

    also here is mysql version

    mysql Ver 14.14 Distrib 5.6.51, for Linux (x86_64) using EditLine wrapper

    i tried to write in Sockets the ip:port gave me an error i left it blank t gave me error SQL: unable to create tables, SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘json DEFAULT NULL, number int unsigned NOT NULL, created_at timestamp NU’ at line 11 (Connection: mysql, SQL: /*!40103 SET

  • AE

    ahmed elfkhrany

    Answered

    is there any solution to use mysql ver 5.6.51 ?

  • MS

    Mian Saleem

    Answered

    Hello,

    No, you need MySQL v5.7.10+ as MPS uses the json columns.

    Thank you

  • AE

    ahmed elfkhrany

    Answered

    own SMA with POS + Shop module. I purchased the MPS in discount using SMA purchase code, but now when I try to get discount for e-commerce module, it’s not accepting my SMA with POS purchase code or Shop module purchase code.

    Kindly check

  • Login to Reply