Comments (21)
From my check, it's a server configuration issue. Perhaps you should check your server configuration. Did you follow the instruction in the readme? Perhaps you didn't update the .htaccess file in the root directory.
from mini-inventory-and-sales-management-system.
Thanks for your prompt response. Here's my configuration:
- Open "application/config/config.php" and do the same.
if(is_cli()){
$config['base_url'] = "";
}
else if(stristr($host, "localhost") !== FALSE || (stristr($host, "192.168.") !== FALSE)|| (stristr($host, "127.0.0.") !== FALSE)){
$config['base_url'] = $protocol.$host."http://www.test.motizafarms.com/";
}
else{
$allowed = ['www.motizafarms.com', 'motizafarms.com'];//input all allowed urls here e.g. amirsanni.com, www.practa.ng, smartagapp.com
$config['base_url'] = in_array($host, $allowed) ? $protocol.$host."http://www.test.motizafarms.com/" : "http://".$_SERVER['HTTP_HOST']."/";
}
================================================================
- Open "public/js/main.js" and do the same.
var appRoot = setAppRoot("http://www.test.motizafarms.com/", "http://www.test.motizafarms.com/");
================================================================
- Open .htaccess in the root folder and change the line with "mini-inventory-and-sales-management-system" to your new folder name.
RewriteEngine On
RewriteBase /test.motizafarms.com
================================================================
Please kindly direct me the best way forward.
Thank you so much for the beautiful work.
from mini-inventory-and-sales-management-system.
This line var appRoot = setAppRoot("http://www.test.motizafarms.com/", "http://www.test.motizafarms.com/");
is wrong. You're to put the name of the app directory and not the full URL. If it is placed in your html root directory, the fields will be blank.
The same thing applies here RewriteBase /test.motizafarms.com. Leave blank if the app is in the root directory OR put directory name if placed within a directory inside the root directory.
from mini-inventory-and-sales-management-system.
i have the same problem . I try everything but its not working , maybe i m doing something wrong
from mini-inventory-and-sales-management-system.
unfortunately, it didn't work. I tried everything but no luck.
The app is sitting at the root directory of a sub domain test.motizafarms.com
from mini-inventory-and-sales-management-system.
Amir, I got it to work. Thank you so much. Keep up the good work.
from mini-inventory-and-sales-management-system.
how ?
from mini-inventory-and-sales-management-system.
Wanewi, where's your app? root directory or in a folder?
from mini-inventory-and-sales-management-system.
folder name of the folder is /mini
from mini-inventory-and-sales-management-system.
- Open __.htaccess
RewriteEngine On
RewriteBase /mini
- Open __"application/config/config.php"
if(is_cli()){
$config['base_url'] = "";
}
else if(stristr($host, "localhost") !== FALSE || (stristr($host, "192.168.") !== FALSE)|| (stristr($host, "127.0.0.") !== FALSE)){
$config['base_url'] = $protocol.$host."/mini/";
}
else{
$allowed = ['www.yourdomain.com', 'yourdomain.com'];//input all allowed urls here e.g. amirsanni.com, www.practa.ng, smartagapp.com
$config['base_url'] = in_array($host, $allowed) ? $protocol.$host."/mini/" : "http://".$_SERVER['HTTP_HOST']."/";
}
================================================================
- Open "public/js/main.js" and do the same.
var appRoot = setAppRoot("mini", "mini");
from mini-inventory-and-sales-management-system.
no still not working i cant log in
from mini-inventory-and-sales-management-system.
i had this problem too on a perfectly working application. I just cleared my history and browser cache and it worked.
from mini-inventory-and-sales-management-system.
its still say no internet ..... i refresh everything .
from mini-inventory-and-sales-management-system.
I think you should try it on live server no localhost
from mini-inventory-and-sales-management-system.
Hi @wanewi Did you follow the guide in the readme? If yes, can you share a screenshot of the changes you made? This will help in debugging the issue you're having.
from mini-inventory-and-sales-management-system.
That are my files i try on live server i try everything . Thank you guys .
from mini-inventory-and-sales-management-system.
The files look OK.
- What error message are you getting?
- Do you have mod_rewrite enabled on your server?
- How is the app set up? Is it in the root directory OR inside another directory in the root directory?
- Check the Network tab of your console and see which URL is handling the log in.
- What version of PHP are you using?
from mini-inventory-and-sales-management-system.
I have same problem. I try solve it to long time. Please tell me how to solve it.
from mini-inventory-and-sales-management-system.
@seksan470029 Be sure everything is properly set up as in the Readme. Also answer the questions I asked. Thanks
from mini-inventory-and-sales-management-system.
@amirsanni I can fix it successfully. My problem was caused by me.
I change value in config->config.php
from
$config['language'] = 'english';
to
$config['language'] = 'germany';
I change it back to default (english) then I can login .
thankyou
from mini-inventory-and-sales-management-system.
Glad to hear that. Welcome
from mini-inventory-and-sales-management-system.
Related Issues (20)
- Login failed HOT 2
- refund or cancel
- I cant login there is 404 issue in login HOT 1
- Currency Change Value HOT 2
- Can't login to the system demo HOT 2
- Demo login credentials is not work. HOT 2
- demo password HOT 8
- how to see/print barcode from items code HOT 2
- Credential problem on localhost HOT 5
- Not login on HOT 3
- Trying to get in touch regarding a security issue HOT 3
- 💥 Potential security vulnerability HOT 2
- New Development Demo HOT 1
- New version?
- transactions HOT 1
- Hello developers, can you add a version number?
- Can't login HOT 5
- Possible XSS vulnerabilies
- Neema
- The available quantity is always 0 for users of type 'basic', even though the quantity is not 0 in admin. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini-inventory-and-sales-management-system.