The requested URL /en was not found on this server.
here’s my index file:
<?php
// change the following paths if necessary
$yii=dirname(__FILE__).'/framework/yiilite.php';
$config=dirname(__FILE__).'/protected/config/';
// Define root directory
defined('ROOT_PATH') or define('ROOT_PATH', dirname(__FILE__) . '/');
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG', false);
if( YII_DEBUG === true )
{
ini_set('display_errors', true);
error_reporting(E_ALL);
// By default we use testing.com for the currently active domain
# define('CURRENT_ACTIVE_DOMAIN', 'http://127.0.0.1/~lime/yiiframework-co-il-cms/');
define('CURRENT_ACTIVE_DOMAIN', 'http://yiiframework.local/');
}
else
{
//ini_set('display_errors', false);
//error_reporting(0);
ini_set('display_errors', true);
error_reporting(E_ALL);
// On production it will be the yiiframework.co.il domain name
# define('CURRENT_ACTIVE_DOMAIN', 'http://127.0.0.1/~lime/yiiframework-co-il-cms/');
define('CURRENT_ACTIVE_DOMAIN', 'http://yiiframework.local/');
}
$configFile = YII_DEBUG ? 'dev.php' : 'production.php';
require_once($yii);
Yii::createWebApplication($config . $configFile)->run();
I had to use a stock yii htaccess to get in since your htaccess was giving me forbidden errors
I can see the site and navigate but:
Can’t get to admin :: CException error - not allowed to enter this section
Login (menu) :: using the rmail from the db, and admin as password, capthcha >> error is CSRF token could jot be verified (( I’m not connected to the net ))
I understand that you have commitments and can’t maintain this yourself at the moment. I’m just glad that you were prepared to share your code with us.
It’s a great idea to let others contribute. I’m sure there will be a huge interest in this project since it’s what a lot of people have been asking for in the forums for years and you’ve done a great job.
For the first one try using the User:hashPassword(‘yourpassword’, ‘emailaddress’);
to get a new password and then just update the user record and paste the new password. Make sure the email you used in the hashPassword method matches the user email address in the db.
@outrage No problem. I’ll work on adding it to github
still learning iii: where should I do: “User:hashPassword(‘yourpassword’, ‘emailaddress’);”
Here is the htaccess that I used to get a working site:
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
# if a directory or a file exists, use it directly
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
anywhere, just put it somewhere in the views so you’ll get a pass hash that you’ll put in the db for the user you are trying to access with. This is just a hack so you’ll be able to login.