Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Admin Panel plays hard to get...

Asked Modified Viewed 1,541 times
Q
Quartzkyte
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
asked
Senior Member

Hi all,

Today, I am experiencing trouble reaching the Admin Panel.
The login goes fine, but clicking on Admin Panel needs to be done several times before it finally obeys. :(

When it does, it works fine.

I tried changing browser, clearing cookies & cache, but still no luck. :@

Has anyone seen this before?
What can I do?

Thanks...
0 replies

6 posts

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Hi. It will be like this for 2 main possible reason, cookie authentication fail, or bad site path.
0 replies
Q
Quartzkyte
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
answered
Senior Member

Hi,

Bad site path, I think it's not possible as the site has been in operation for some time now (three months in the present configuration and theme, several years with previous themes).

Cookie authentication failure it would be, but then what can I do, after I cleared cookies and browser cache with no change?

Thank you.
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

This may require some experience in your end too.

My knowledge of this would be capped at certain areas.. I'm only involved since v8-v9, if i'm mistaken, please don't nitpick.

Two things to determine. You should test with 3 different browsers. Safari, Chrome, Firefox. All 3 come back the same thing to you, then we proceed to look into our CMS.


// Define aidlink
if (iADMIN) {
   define("iAUTH", substr(md5($userdata['user_password'].USER_IP), 16, 16));
   $aidlink = "?aid=".iAUTH;
}


so you should login into a SA account. then do a blank file, say test.php

We want to check whether your $aidlink and iAUTH is the same.


require_once "maincore.php";
var_dump(iAUTH);
var_dump($aidlink);


If same, run another diagnostic.

Diagnostic 2.

In admin panel. Which page bounce you? Go to the file , at the most bottom part before the "?>".... Paste this v9 code in (below). (Remember to delete it after the diagnostic.)

Now, go to the top part of the page, see the page access abbrieviation? i.e. Admin rights, for images... it's IM.

Once you know, comment out the whole page access check.. and use the function instead.

pageAccess('IM', true);


Now refresh, it will show you any error if you have regarding this section.


/**
 * Function to redirect on invalid page access.
 * @param      $rights
 * @param bool $debug
 */
function pageAccess($rights, $debug = FALSE) {
   $error = array();
   if ($debug) {
      print_p('Admin Panel mode');
   }
   if (!defined('iAUTH')) {
      $error[] = 'iAuth error';
   }
   if (!isset($_GET['aid'])) {
      $error[] = 'Aid link error';
   }
   if (isset($_GET['aid']) && $_GET['aid'] != iAUTH) {
      $error[] = 'Aidlink mismatch. '.iAUTH.' != '.$_GET['aid']."<br/>";
      $error[] .= USER_IP;
   }
   if (!checkrights($rights)) {
      $error[] = 'Checkrights Error';
   }
   if (!empty($error)) {
      if ($debug) {
         print_p($error);
      } else {
         redirect(BASEDIR);
      }
   }
}


If nothing wrong... Step 3. Cookie diagnostic. If you reach step 3. I'll write a function to allow you to check whats wrong with it. But I need to settle off all core issues at 9 first.. I'll reply when I'm free after I finish my errands at 9.
0 replies
Q
Quartzkyte
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
answered
Senior Member

Hi,

Quote

You should test with 3 different browsers. Safari, Chrome, Firefox. All 3 come back the same thing to you, then we proceed to look into our CMS.


Well I tried I.E. and F.F. (not Safari, I run Windows (not fashionable, I know) and don't like Safari when on a Windows computer.

But Chrome I tried, and Chrome does not have the problem.

Strange... both F.F. & I.E. have the same problem, with or without cookie clearing, not Chrome so far.

But I'll do the testing anyway.
Thank you.
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

No problem. As long I can help.

I've been catching bugs for new os like 3 years now. One thing I learn that when you catch a mouse, don't go straight at it. Wait at it's nest. :)
0 replies
Q
Quartzkyte
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
answered
Senior Member

I'm catching the Win 10 bugs ATM, I get it... B)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

Q
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet