Indexhibit
Index + Exhibit

Login:

Created by
Daniel Eatock
Jeffery Vaska
And You

Indexhibit was updated to version 2.1.4 on April 10, 2017.

Admin link disappeared and infinite redirect loop errors

 

Indexhibit version: 2.0
Thread is not resolved.

bipster
SPAIN
2 week(s) ago
Permalink Post

Hi!

Has anyone here found a fix for the Admin link disappearing after updating to 2.1.4?

I've recently updated two sites (in different hostings) to 2.1.4 and after editing some settings the Admin link has disappeared from both sites. I can directly access the Users and the Stats tabs, but the rest of the tabs throw a infinite redirect loop error.

I've found the thread asking to change the /module/system/index.php to a new version with no success.

Any ideas?

Thanks

bipster
SPAIN
2 week(s) ago
Permalink Post

Both hostings are running PHP 7.0

bipster
SPAIN
2 week(s) ago
Permalink Post

The lines causing the infinite redirect loops in the /module/system/index.php file are like this:

  1. if ($this->access->is_admin() == false) { system_redirect("?a=$go[a]"); }

If I comment them, I can access the unreachable tabs in the Admin section. There must be a problem with the is_admin() function.

bipster
SPAIN
2 week(s) ago
Permalink Post
  1. In case anyone is interested, for some strange reason, after updating to 2.1.4, the column "user_admin" in the "ndxz_users" table was set to 0 instead of 1, so the is_admin() check was returning false and thus disallowing the access of many of the Admin tabs and hiding the Admin link itself.

So, to fix this:

1) Access your database via phpMyAdmin or a similar tool in your hosting.
2) Go to the "ndxz_users" table (your table might have a different prefix instead of "ndxz_")
3) Change the "user_admin" column of your user from 0 to 1.

Now, the Admin link should appear again.

Regards

Vaska A
UNITED STATES
2 week(s) ago
Permalink Post

What is the ID of your user?

bipster
SPAIN
2 week(s) ago
Permalink Post

I had two users, and the one losing the user_admin value had a value of 1 as the ID. The other one had a value of 2 as the ID and maintained the user_admin value of 1.

 

Only purchasers of Indexhibit are able to post in the forum.