1
Biolit11
admin login loop caused by inability to create adminmenu.pnp
  • 2008/1/15 5:45

  • Biolit11

  • Just popping in

  • Posts: 11

  • Since: 2003/6/19


Now I am hoping someone could maybe explain to me why the rest of the site works on a template system but not the admin menu. After doing a fresh install with the latest version 2.0.18 I have been bugged with the admin login loop. I have tried everything mentioned in here

When I skip the referer I get a empty admin menu that only contains the header and footer, but no menu. All file settings have been set and double checked. I have tried to create a blank adminmenu.php file hoping that it will be able to edit the file but still no go. Having the $content printed out from cp_functions : function xoops_module_write_admin_menu($content) Produces the folowing
"; $xoops_admin_menu_dv = "
System
 Banners
 Blocks
 Groups
 Images
 Modules
 Preferences
 Smilies
 User Ranks
 Edit User
 Find Users
 Mail Users
 Avatars
 Templates
 Comments
[Close]

"._VERSION."1.02
"._DESCRIPTION.": For administration of core settings of the site.
"; ?>


After looking at backups of the olderverions of my site I have found that there is a lot more to the adminmenu.php file. And looking at the code that generates the file there seems to be a good chunk missing. Any suggestions? For some reason the code is unable to write the file. Can anyone point me into a direction of possible culprit.

2
BlueStocking
Re: admin login loop caused by inability to create adminmenu.pnp

1) Delete adminmenu.php from your cache directory.
Then You should get the this is the first time you have entered the site message, when you log on.

Viewing source:
The html output of the page that holds the submit or cancel button is as follows on my setup.

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <
head>
    <
meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    <
meta http-equiv="content-language" content="en" />
    <
meta name="robots" content="" />
    <
meta name="keywords" content="" />
    <
meta name="description" content="" />
    <
meta name="rating" content="" />
    <
meta name="author" content="" />
    <
meta name="copyright" content="" />
    <
meta name="generator" content="XOOPS" />
    <
title>XOOPS Site</title>
    <
script type="text/javascript" src="http://www.xoops.net.br/include/xoops.js"></script>
    <
link rel="stylesheet" type="text/css" media="all" href="http://www.xoops.net.br/xoops.css" /><link rel="stylesheet" type="text/css" media="all" href="http://www.xoops.net.br/themes/default/style.css" /></head><body>
    <
div class="confirmMsg">
      <
h4>This is your first time to enter the administration sectionPress the button below to proceed.</h4>
      <
form method="post" action="admin.php">
    <
input type="hidden" name="op" value="generate" /><input type='hidden' name='XOOPS_TOKEN_REQUEST' id='XOOPS_TOKEN_REQUEST' value='____your token code here_______' />
        <
input type="submit" name="confirm_submit" value="Submit" /> <input type="button" name="confirm_back" value="Cancel" onclick="javascript:history.go(-1);" />
      </
form>
    </
div>
    </
body></html>


After clicking on submit the program re-writes the adminmenu.php into the cache directory.

So make sure your permissions are set on the cache folder. You may need to go to your cpanel and varify or set the permissions there.

As a matter of fact, I think you do have to set the permissions through the cpanel with some servers.

BlueStocking
https://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

3
Biolit11
Re: admin login loop caused by inability to create adminmenu.pnp
  • 2008/1/15 16:01

  • Biolit11

  • Just popping in

  • Posts: 11

  • Since: 2003/6/19


Well it is a fresh install so there is no adminmenu.php to start with, and I did say I double checked the permissions.

4
stefan88
Re: admin login loop caused by inability to create adminmenu.pnp
  • 2008/1/15 16:09

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

try to enable PHPDebug (in database with MyPHPAdmin)...

also if you have access to, check server logs for errors.
..

5
mboyden
Re: Admin Login Loop: Cause: Unable to Create adminmenu.php
  • 2008/1/15 18:11

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


Also try the blank page FAQ.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

Login

Who's Online

226 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 226


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits