Welcome Guest, Not a member yet? Register   Sign In
"NetworkError: 500 Internal Server Error - http://127.0.0.1/mysite/index.php"
#1

[eluser]Unknown[/eluser]
Hi,

I got error (at console from firebug in firefox) as in post Title when I attempt to open a test.php page.

I have controller 'test' with 2 variables

Code:
function test(){
     $test_data['a'] = '1';
     $test_data['b'] = '2';

       echo 'test: ';    
        $this->load->view('include/test', $test_data);
    }

and pass them to view:

Code:
echo  $a . ' and ' . $b;

I got only text
Quote:test:
without
Quote:test: 1 and 2
and have 500 error.

1. I programming on Mac OS X Lion 10.7.2 (11C74)
2. I enabled rewrite_mode by uncomment line in httpd.conf (and restart apache).

Code:
#LoadModule rewrite_module libexec/apache2/mod_rewrite.so -->
LoadModule rewrite_module libexec/apache2/mod_rewrite.so

3. Error log from apache2 is clear.
4, Tried to remove index from config.php, without any results

Code:
$config['index_page'] = "index.php";  // ->
$config['index_page'] = "";

5. Permissions to files/direcoties are 0755 (also tried 0644 to *.php files)
6. I tried to add .htaccess file, but there is the same error.

Quote:RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

Any suggestions what is wrong?




Theme © iAndrew 2016 - Forum software by © MyBB