Initial Start or Home Page Incorrect

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
primitive_man
AppGini Super Hero
AppGini Super Hero
Posts: 54
Joined: 2014-03-09 20:20

Initial Start or Home Page Incorrect

Post by primitive_man » 2015-04-02 11:08

One of the applications I've created with AppGini, for some reason always starts on the wrong page.
The App is a simple membership system - keeping track of members, dues, associated activities etc...

The initial page should always be the Login Page - but it invariably defaults to the membership List page - with the message: 'Sorry! You don't have permission to access this table. Please contact the admin.' then it goes to the Homepage (Login Page) ?

Anyone know of a reason why?

patsd102
Veteran Member
Posts: 142
Joined: 2013-01-15 19:59

Re: Initial Start or Home Page Incorrect

Post by patsd102 » 2015-04-02 20:33

You maybe have saved the view.php page in your browser.

Try the home.php.
23.17

User avatar
shasta59
AppGini Super Hero
AppGini Super Hero
Posts: 231
Joined: 2013-01-08 19:40
Location: Calgary, Alberta, Canada

Re: Initial Start or Home Page Incorrect

Post by shasta59 » 2015-04-04 04:41

Do you have a link you can post so we can take a look and see what is happening?

And, did it ever work properly?

The initial page should show up in your browser as: http://yourwebsite/folder_name/index.php?signIn=1
You may or may not have a subfolder where all the files reside so you can ignore 'folder_name' in the above text.

What happens when you put in just the website and the subfolder (if present)? Your website software should look for index.htm, index.html, index.php as a minimum.
Did you just copy the files as output in AppGini to your website? Or did you change the organization in any way?

Please supply answers to the above and we may be able to help you figure this out.

Alan
Calgary, Alberta, Canada - Using Appgini 5.50 -

primitive_man
AppGini Super Hero
AppGini Super Hero
Posts: 54
Joined: 2014-03-09 20:20

Re: Initial Start or Home Page Incorrect

Post by primitive_man » 2015-04-04 10:17

Sorry for the delayed reply -
1. If I put in 'http://yourwebsite/folder_name/index.php?signIn=1' it goes to the correct login page, but if I just enter the folder, ie, 'http://localhost/c_members/' it goes to my membership List page.

2. I have decreased the timeout on my echo membership List by setting it to o - which ensures the access error message only pops up for a second - a quick fix, I know.

3. I believe it's something to do with the fact that I don't use the 'Homepage' option, i.e., the default homepage (home.php) with the table links.

User avatar
shasta59
AppGini Super Hero
AppGini Super Hero
Posts: 231
Joined: 2013-01-08 19:40
Location: Calgary, Alberta, Canada

Re: Initial Start or Home Page Incorrect

Post by shasta59 » 2015-04-04 15:31

The quick way I would fix that is to, in the c_members folder put in a index.html page with a redirect to the correct page

Here is the code from the index.html page as generated by AppGini

Code: Select all

<!doctype html public "-//W3C//DTD html 4.0 //en">
<html>
	<head>
		<meta http-equiv="Refresh" content="0;url=index.php">
		<title>Loading ...</title>
	</head>
	<body></body>
</html>
Just change url=index.php to whatever page you want and it will make it load the way you wish. It will take a few seconds.

Alan
Calgary, Alberta, Canada - Using Appgini 5.50 -

primitive_man
AppGini Super Hero
AppGini Super Hero
Posts: 54
Joined: 2014-03-09 20:20

Re: Initial Start or Home Page Incorrect

Post by primitive_man » 2015-04-14 19:39

Thank you. I changed index.php to : index.php?signOut=1 and it works correctly.

Post Reply