Coder Social home page Coder Social logo

Comments (21)

amirsanni avatar amirsanni commented on May 28, 2024

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.

dogungbeje avatar dogungbeje commented on May 28, 2024

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.

amirsanni avatar amirsanni commented on May 28, 2024

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.

 avatar commented on May 28, 2024

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.

dogungbeje avatar dogungbeje commented on May 28, 2024

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.

dogungbeje avatar dogungbeje commented on May 28, 2024

Amir, I got it to work. Thank you so much. Keep up the good work.

from mini-inventory-and-sales-management-system.

 avatar commented on May 28, 2024

how ?

from mini-inventory-and-sales-management-system.

dogungbeje avatar dogungbeje commented on May 28, 2024

Wanewi, where's your app? root directory or in a folder?

from mini-inventory-and-sales-management-system.

 avatar commented on May 28, 2024

folder name of the folder is /mini

from mini-inventory-and-sales-management-system.

dogungbeje avatar dogungbeje commented on May 28, 2024
  • 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.

 avatar commented on May 28, 2024

no still not working i cant log in

from mini-inventory-and-sales-management-system.

DevHunter0101x avatar DevHunter0101x commented on May 28, 2024

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.

 avatar commented on May 28, 2024

its still say no internet ..... i refresh everything .

from mini-inventory-and-sales-management-system.

dogungbeje avatar dogungbeje commented on May 28, 2024

I think you should try it on live server no localhost

from mini-inventory-and-sales-management-system.

amirsanni avatar amirsanni commented on May 28, 2024

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.

 avatar commented on May 28, 2024

That are my files i try on live server i try everything . Thank you guys .

File.zip

from mini-inventory-and-sales-management-system.

amirsanni avatar amirsanni commented on May 28, 2024

The files look OK.

  1. What error message are you getting?
  2. Do you have mod_rewrite enabled on your server?
  3. How is the app set up? Is it in the root directory OR inside another directory in the root directory?
  4. Check the Network tab of your console and see which URL is handling the log in.
  5. What version of PHP are you using?

from mini-inventory-and-sales-management-system.

seksan470029 avatar seksan470029 commented on May 28, 2024

I have same problem. I try solve it to long time. Please tell me how to solve it.

image

from mini-inventory-and-sales-management-system.

amirsanni avatar amirsanni commented on May 28, 2024

@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.

seksan470029 avatar seksan470029 commented on May 28, 2024

@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.

amirsanni avatar amirsanni commented on May 28, 2024

Glad to hear that. Welcome

from mini-inventory-and-sales-management-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.