Welcome Guest, Not a member yet? Register   Sign In
All controllers but default return Untitled Document
#11

[eluser]tonanbarbarian[/eluser]
paste in your config.php file, so we can see what options you have set.
#12

[eluser]jakemac53[/eluser]
Here is the top, I have not changed anything else (and to large to paste)



<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
*/
$config['base_url'] = "http://www.jacobmacdonald.com/";

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "index.php";
#13

[eluser]jakemac53[/eluser]
Here is the whole file with comments removed:

$config['base_url'] = "http://www.jacobmacdonald.com/";


$config['index_page'] = "index.php";


$config['uri_protocol'] = "AUTO";

$config['url_suffix'] = "";

$config['language'] = "english";

$config['charset'] = "UTF-8";

$config['enable_hooks'] = FALSE;

$config['subclass_prefix'] = 'MY_';

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';


$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd'; // experimental not currently in use


$config['log_threshold'] = 0;

$config['log_path'] = '';

$config['log_date_format'] = 'Y-m-d H:iConfused';

$config['cache_path'] = '';

$config['encryption_key'] = "";

$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;

$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path'] = "/";

$config['global_xss_filtering'] = FALSE;


$config['compress_output'] = FALSE;

$config['time_reference'] = 'local';

$config['rewrite_short_tags'] = FALSE;

$config['proxy_ips'] = '';
#14

[eluser]tonanbarbarian[/eluser]
if you are using the htaccess file then set index_page to an empty string
I would then try the different options for uri_protocol and see if you can get one to work.
generally auto should work but i have found some cases where you have to set something different

also the login checking code in the user model, does it automatically redirect if it does not find a valid user?
because i did notice that you have the $this->User->logged_in() check at the start of the controller
maybe providing that code as well might help to determine what the problem is
#15

[eluser]jakemac53[/eluser]
I am not currently using the .htaccess file because i want to get it working without it first. I will try the uri_protocol though.

As far as the login code it does not do any redirecting no, you aren't required to be logged in and being logged in does not currently really change anything other than it says your username and a logout button instead of the login boxes.
#16

[eluser]jakemac53[/eluser]
Ok i tried all uri_protocol options and still no dice. The really weird thing is i have another codeigniter app running on this server without issue (http://www.lifeofmau.com). I have checked all config settings and everything and i can't find anything different.....
#17

[eluser]tonanbarbarian[/eluser]
and what is your routes.php file look like?
maybe a silly questions but the game controller, is the filename all in lower case i.e. game.php or is it Game.php?
do you have any plugins, or any other custom code you have written that could be interfering in any way?
#18

[eluser]jakemac53[/eluser]
The game controller is called game.php, below is the routes file, I have no other plugins or anything...I just started this a bit ago and ran into this error immediately....

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
| http://ellislab.com/codeigniter/user-gui...uting.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are two reserved routes:
|
| $route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
| $route['scaffolding_trigger'] = 'scaffolding';
|
| This route lets you set a "secret" word that will trigger the
| scaffolding feature for added security. Note: Scaffolding must be
| enabled in the controller in which you intend to use it. The reserved
| routes must come before any wildcard or regular expression routes.
|
*/

$route['default_controller'] = "game";
$route['scaffolding_trigger'] = "";

/* End of file routes.php */
/* Location: ./system/application/config/routes.php */
#19

[eluser]tonanbarbarian[/eluser]
what sort of error reporting do you have turned on in php
if you can turn it on to E_ALL and see if there are any errors because i cannot see anything that is causing an issue
#20

[eluser]jakemac53[/eluser]
error reporting is set to E_ALL, and i have checked the error log as well theres nothing




Theme © iAndrew 2016 - Forum software by © MyBB