Indexhibit
Index + Exhibit

Login:

Created by
Daniel Eatock
Jeffery Vaska
And You

Indexhibit was updated to version 2.1.5 on January 14th, 2018.

Admin link disappeared and infinite redirect loop errors

 

Indexhibit version: 2.0
Thread is not resolved.

bipster
SPAIN
3 month(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
3 month(s) ago
Permalink Post

Both hostings are running PHP 7.0

bipster
SPAIN
3 month(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
3 month(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
3 month(s) ago
Permalink Post

What is the ID of your user?

bipster
SPAIN
3 month(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.

Brenda_Lloyd
UNITED STATES
2 month(s) ago
Permalink Post

I am not technical at all and I cannot figure out how to see an admin page to edit. I saw an earlier link posted to take me to that page , but it takes me to my webpage and appears uneditable. Does anyone have a step-by step how I can begin visually and verbally editing my site. Please assume I know absolutely nothing when you respond.
I would greatly appreciate any help with this!

hongkonggong
HONG KONG
2 month(s) ago
Permalink Post

Thanks @bipster! That worked for me.

@Brenda_Lloyd: what webhost are you using/how did you set up indexhibit?

thedaglab
UNITED STATES
24 hour(s) ago
Permalink Post

Same problem, changing the "user_admin" column of your user from 0 to 1 worked! Thank you

 

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