Page 1 of 1

Codefight Problems

Posted: Wed Apr 22, 2009 3:46 am
by zelda
Downloaded and installed Codefight CMS 1.0 on a OSX localhost and noticed some problems:
Could not login in using username: [email protected] password: test
Always told me login was invalid and to try again.
However, i registered a new user and password then it would let me in to admin section.
Once in the admin section and clicking on various items in the menu an error code pops up quite frequently having to do with sortable.php:

Code: Select all

A PHP Error was encountered

Severity: Warning

Message: include(sortable.php) [function.include]: failed to open stream: No such file or directory

Filename: libraries/Loader.php(904) : eval()'d code

Line Number: 91
A PHP Error was encountered

Severity: Warning

Message: include() [function.include]: Failed opening 'sortable.php' for inclusion (include_path='.:/usr/local/php5/lib/php')

Filename: libraries/Loader.php(904) : eval()'d code

Line Number: 91
Just thought you might like to know

Re: Codefight Problems

Posted: Wed Apr 22, 2009 4:55 am
by zelda
UPDATE: I was able to get rid of the php error code for the calls to sortable.php in the following four files: groups.php, menus.php, pages.php, and settings.php by replacing the lines:

Code: Select all

$data['head_includes'] = array('sortable.php');
WITH a fuller path to the file:

Code: Select all

$data['head_includes'] = array('app/admin/views/inc/sortable.php');

Re: Codefight Problems

Posted: Wed Apr 22, 2009 9:19 am
by foundafterlost
zelda wrote:UPDATE: I was able to get rid of the php error code for the calls to sortable.php in the following four files: groups.php, menus.php, pages.php, and settings.php by replacing the lines:

Code: Select all

$data['head_includes'] = array('sortable.php');
WITH a fuller path to the file:

Code: Select all

$data['head_includes'] = array('app/admin/views/inc/sortable.php');
Thanks for trying codefight zelda.

I am glad you solved. Previously i had no app folder. And had different view structure too. But i changed it in the last hour to decrease file size and make it more clearer as it helped to remove duplicate files.

But still it was working fine when i tested.

Thanks again, and hope to get feedback and suggestions for next release.

Re: Codefight Problems

Posted: Fri Apr 24, 2009 3:33 pm
by dbashyal
Thanks zelda.

The password didn't work because i forgot to activate test account. If you goto database and change in table cf_users active to be 1 not 2, it will be active account so can login.