Closed mbround18 closed 8 years ago
Normally you should have a url with economizzer/web/user/login. If you put an html page in web, you accessed it? There is maybe a problem nginx's config.
Is that path specifically hard coded in the application? Or is it relative? my root is set to the economizzer web directory. Included the server file which is included from my nginx installation. Also please ignore the .txt format its just how github is when uploading a file.
After changing the path to the www folder and trying to access it via the url you suggested it did not work.
If possible, make a test using Apache server, so I can try to simulate the error. Try disabling mod_rewrite
No reply. I ask you to do a new installation
@gugoan please do not be so quick to bash on people, my circumstances prevents me to have network access due to my location and time cycles. I understand 15 days can be a long time but this is still an issue. If you would like to rectify this issue and continue to try and debug this to help others we can and I will deploy to a VM to my dedicated and set it up using apache with the changes you asked for.. As for the software though I have opted to build one vs using a prebuilt.
Right my friend. :D I thought that the problem does not persist because there was no return. We will resume the problem. I believe the problem lies in the friendly url.
Thank you for reopening the issue, redeploying to my test vm atm should be 15 minutes, than ill install apache with mod_rewrite disabled :) Ill keep the path as [url]/economizzer/[etc] to keep it standard but I wont tag it open to the world to use the machine name to see if the URL might have been the issue.
Still an issue, apache2 with the proper things installed plus a db with giving economizzer root access to the db.
post your config/web.php file
<?php
$params = require(__DIR__ . '/params.php');
$config = [
'id' => 'economizzer',
'basePath' => dirname(__DIR__),
'bootstrap' => [
'log',
[
'class' => 'app\components\LanguageSelector',
'supportedLanguages' => ['en', 'pt-br', 'ru', 'ko'],
],
],
//'defaultRoute' => 'cashbook/index',
//'language' => 'en',
'sourceLanguage' => 'en-US',
'components' => [
'urlManager' => [
'class' => 'yii\web\UrlManager',
'showScriptName' => false,
'enablePrettyUrl' => true,
'rules' => array(
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<a ction>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
//'category/<id:\w+>' => 'category/view'
),
],
'request' => [
'cookieValidationKey' => 'eco',
],
'cache' => [
'class' => 'yii\caching\FileCache',
],
'user' => [
'class' => 'amnah\yii2\user\components\User',
'identityClass' => 'app\models\User',
],
'view' => [
'theme' => [
'pathMap' => [
'@vendor/amnah/yii2-user/views/default' => '@app/views/u ser',
],
],
],
'errorHandler' => [
'errorAction' => 'site/error',
],
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'useFileTransport' => true,
'messageConfig' => [
'from' => ['master@economizzer.com' => 'Admin'],
'charset' => 'UTF-8',
]
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'db' => require(__DIR__ . '/db.php'),
'i18n' => [
'translations' => [
'*' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@app/messages',
//'on missingTranslation' => ['app\components\Translatio nEventHandler', 'handleMissingTranslation'],
],
],
],
'authClientCollection' => [
'class' => 'yii\authclient\Collection',
'clients' => [
'google' => [
'class' => 'app\components\GoogleOAuth',
'clientId' => '',
'clientSecret' => '',
],
'facebook' => [
'class' => 'yii\authclient\clients\Facebook',
'clientId' => '',
'clientSecret' => '',
'scope' => 'email',
],
]
],
'assetManager' => [
'bundles' => [
'yii\authclient\widgets\AuthChoiceStyleAsset' => [
'sourcePath' => '@app/widgets/authchoice/assets',
],
],
],
],
'modules' => [
'gridview' => [
'class' => '\kartik\grid\Module',
// enter optional module parameters below - only if you need to
// use your own export download action or custom translation
// message source
// 'downloadAction' => 'gridview/export/download',
// 'i18n' => []
],
'user' => [
'class' => 'amnah\yii2\user\Module',
'controllerMap' => [
'default' => 'app\controllers\UserController',
'auth' => 'app\controllers\AuthController'
],
'modelClasses' => [
'Profile' => 'app\models\Profile',
],
// set custom module properties here ...
],
],
'params' => $params,
];
if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = 'yii\debug\Module';
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = 'yii\gii\Module';
}
return $config;
try:'enablePrettyUrl' => false,
or comment the code
'urlManager' => [
'class' => 'yii\web\UrlManager',
'showScriptName' => false,
'enablePrettyUrl' => true,
'rules' => array(
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<a ction>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
//'category/<id:\w+>' => 'category/view'
),
],
@mbround18 The problem persists? Follows the tip of @phprocks
closed because there was no return and can not reproduce the error
The recommendation
'enablePrettyUrl' => false,
fixes the issue in ngnix. It would be good, if it is documented in the README for ngnix setup.
Nice!! i will test in my work :)
Em 12/04/2017 05:34, "Sundar" notifications@github.com escreveu:
The recommendation
'enablePrettyUrl' => false,
fixes the issue in ngnix. It would be good, if it is documented in the README for ngnix setup.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/gugoan/economizzer/issues/69#issuecomment-293510834, or mute the thread https://github.com/notifications/unsubscribe-auth/ABgxI7CnrlOXoduNfd0M-CN27eYxgX_aks5rvIyigaJpZM4JGzQ7 .
I just set this up on my vps and I cannot seem to load the login page. Any ideas? Ive seen the previous issue on this item and none of the fixes work. Fyi its deployed to https://econ.r18g.us/user/login any changes will be wiped clean and database reset than switched for internal to my house use once the issue is resolved.