havok89 / Hoosk

Hoosk Codeigniter CMS

Home Page:http://hoosk.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

admin page not working

ThomasVandenabeele opened this issue · comments

I'm running an apache server with a new Hoosk installation behind a reverse proxy.
All requests are redirected to https. After installation I needed to manually change the BASE_URL in the generated config.php file because http was saved in the file.
So, the front-end is working currently... everything fine.

But I'm not able to display the admin page. When I login, Hooks returns me an empty page.
Can I see some log files or errors for hooks?
Does someone maybe know how to fix this and tell me if this problem is related to the reverse proxy?

Switch your ENVIRONMENT to development to find out what goes wrong. In my case, the problem solved by installing php-xml (php5.6-xml) on my server.

Hoosk admin login does not work on php 7.0 above, to make it work switch you server environment to php 5.6

Thank you @a6smile! It is working now! They should add this to the documentation.
@daguswijaya, where can I switch the environment to development?

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

@a6smile that’s not really a fix but a nasty hack

commented

/late reply

If you update the system folder to the latest version of codeigniter it will fix issues. The issues only happen with the version of codeigniter included and PHP 7+

Using session start is a hacky fix as it starts a PHP session when the system uses codeigniter sessions so may cause further issues elsewhere