havok89 / Hoosk

Hoosk Codeigniter CMS
http://hoosk.org
Other
128 stars 87 forks source link

[Closed - Not Solved ] Initial Login DashBoard - Cannot enter with default username and password #12

Closed marcoczen closed 8 years ago

marcoczen commented 8 years ago

With regards to the above , i cannot login with default username admin and password h00sk

Any hints ?

havok89 commented 8 years ago

Is it giving the message that username or password is incorrect? if it isnt giving this error message and just going to a blank login form then it is an issue with how the cookie is being set.

As Hoosk is built on CodeIgniter then many solutions for cookie or set up problems for CodeIgniter will also work here.

check issue #2

marcoczen commented 8 years ago

Havok89, Checking ...looking at cookie setup at my localhost - developemnt server running openSuse 13.2 , php 5.4

marcoczen commented 8 years ago

Sub_Issue B - Side Note - I copied the hoosk cms files to our company's webhost. I CAN login with the default admin/h00sk username and password combo BUT after i save changes ( edited the home page content ) and logout to browse the changes i made - i get an error;

An Error Was Encountered Unable to load the requested file: templates/header.php

havok89 commented 8 years ago

Check the files uploaded for https://github.com/havok89/Hoosk/blob/master/hoosk/hoosk0/views/admin/header.php

and in each theme folder theres a /templates/header.php

marcoczen commented 8 years ago

Checking

marcoczen commented 8 years ago

in public_html/hoosk/hoosk0/views/admin , i can see a header.php

inside the themes folder, i can see subfolders ;

admin, blue, dark, orange, purple, red, turquoise

an inside , say subfolder , blue, i can see templates/header

marcoczen commented 8 years ago

Clarification - With regards to my localhost developemnt server,

when i login with demo / h00sk - i get error message in red box " The Username of Password entered is incorrect"

when i login with admin/h00sk, i am just redirected back to the SAME login page. There is NO error message in a Red Box on top

If i were to login with admin/wrongpasswd, then i get the error message in a red box " The Username of Password entered is incorrect."

marcoczen commented 8 years ago

Holy crap - clearing the cookie value in hoosk/hoosk0/config/config.php as below DID it ... $config['cookie_domain'] = ""; // no space inside the inverted commas.

So now I CAN login into the hoosk cms as the admin with default passwd h00sk. This issue SOLVED for my localhost development server.

Pending is ;

Sub_Issue B - Side Note - I copied the hoosk cms files to our company's webhost. I CAN login with the default admin/h00sk username and password combo BUT after i save changes ( edited the home page content ) and logout to browse the changes i made - i get an error;

An Error Was Encountered Unable to load the requested file: templates/header.php

I open separate issue for this ?

havok89 commented 8 years ago

I would try going to the settings page when logged in and selecting a new theme and saving again. it uses the value saved in the database so that it knows what theme folder to use

marcoczen commented 8 years ago

Havok89, i went into the settings page of hoosk cms at the webhost and changed the theme from "admin" to "red"....

The error message ;

  An Error Was Encountered
 Unable to load the requested file: templates/header.php

is now GONE !

But, with the red theme , the banner etc on top is red ( so something is working ) , i do however get an error message;

  Oops, there has been an error.
  Sorry this page is currently unavailable.

If i switch back to the "admin" theme, the earlier error message;

  An Error Was Encountered
  Unable to load the requested file: templates/header.php

returns;

havok89 commented 8 years ago

Ill need to take a look at that, the admin theme shouldnt be selectable from there as it isnt for the front end of the site which is why it is missing the template files header etc

marcoczen commented 8 years ago

Roger that. Thanks.

With regards to the red theme ....

But, with the red theme , the banner etc on top is red ( so something is working ) , i do however get an error message;

Oops, there has been an error. Sorry this page is currently unavailable.

Is that normal ?

mohsen-sojoudi commented 5 years ago

If you are using XAMPP or any local server Just add the following line in your index.php at the root folder session_start();