Author |
Message |
Olaf_The_White
New Member


Joined: Feb 12, 2005
Posts: 3
|
Posted:
Sat Feb 12, 2005 9:42 pm |
|
I just installed 4.4.0
When I go to the Admin panel and click on Edit Users I get an "Access Denied Error"
Not sure whats wrong?
Olaf |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Sun Feb 13, 2005 9:29 am |
|
The only place I know of that this error will happen is if your not logged in as admin.
There are 2 things to do with the install manually.
add these lines to your mainfile.php
Code:
if ($forum_admin == 1) {
include_once("../../../modules/Your_Account/includes/mainfileend.php");
} elseif ($inside_mod == 1) {
include_once("../../modules/Your_Account/includes/mainfileend.php");
} else {
include_once("modules/Your_Account/includes/mainfileend.php");
}
|
And Optionally edit the modules/Your_Account/includes/constants.php
Which not that I just checked is in the files wrong it is like this now.
Code:
// define("CNBYA_DOMAINNAME", "");
// if (($_SERVER['SERVER_NAME'] != CNBYA_DOMAINNAME OR $_SERVER['SERVER_NAME'] != CNBYA_DOMAINNAME) AND CNBYA_DOMAINNAME != "") {exit();}
|
It should have been like this:
Code:
if ((defined('CNBYA_DOMAINNAME')) AND ($_SERVER['SERVER_NAME'] != CNBYA_DOMAINNAME)) { echo "CNBYA domain protection"; exit(); }
|
Or alternatively you could use:
Code:
if ((defined('CNBYA_DOMAINNAME')) AND ($_SERVER['SERVER_NAME'] != CNBYA_DOMAINNAME OR $_SERVER['HTTP_HOST'] != CNBYA_DOMAINNAME)) { echo "CNBYA domain protection"; exit(); }
|
|
_________________ [b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 |
|
|
 |
Olaf_The_White

|
Posted:
Sun Feb 13, 2005 2:54 pm |
|
Thanks for the reply Sixonetonoffun
Ok I have edited the mainfile.php with
if ($forum_admin == 1) {
include_once("../../../modules/Your_Account/includes/mainfileend.php");
} elseif ($inside_mod == 1) {
include_once("../../modules/Your_Account/includes/mainfileend.php");
} else {
include_once("modules/Your_Account/includes/mainfileend.php");
}
And my modules/Your_Account/includes/constants.php now looks like this
if ((defined('CNBYA_DOMAINNAME')) AND ($_SERVER['SERVER_NAME'] != CNBYA_DOMAINNAME OR $_SERVER['HTTP_HOST'] != CNBYA_DOMAINNAME)) { echo "CNBYA domain protection"; exit(); }
and when I goto
http://www.raidersfromthenorth.com/modules.php?name=Your_Account&file=admin
I still egt the access denied error
I am logged in as admin, I can do everything else admin wise, well almost everything I get a blank screen when I try and add a new admin user ( I can still edit/delete admin just submitting the info for a new one doesnt work, I just get a blank page) I also get the 'Access Denied' error when going to Ephemerids or Sections in the admin section also.
Thanks |
|
|
|
 |
menelaos61
Worker


Joined: Nov 10, 2004
Posts: 110
|
Posted:
Sun Feb 13, 2005 8:53 pm |
|
Hi Olaf,
What version of nuke are you using?
Do you use the new admin links in Your_Account/admin
or the old ones from admin/links?
Are you logged in as a superadmin?
These are some questions that probably have to do with your problem.
Cheers,
Richard |
|
|
|
 |
ashketchum
New Member


Joined: May 29, 2006
Posts: 9
|
Posted:
Tue Jun 13, 2006 2:02 am |
|
I am having the same problem. I am using RavenNuke 7.6 and CNB Your_Account 740 420. So what do I have to do to fix it??? Everything else seems to be working fine. And I already added that piece of code to mainfile.php. |
|
|
|
 |
Samtron
New Member


Joined: Jul 10, 2006
Posts: 4
|
Posted:
Mon Jul 10, 2006 8:39 am |
|
I'm logged as superadmin.
I get this error :
Fatal error: Call to a member function on a non-object in /home/user12345/html/mainfile.php on line 677
after adding
Code: if ($forum_admin == 1) {
include_once("../../../modules/Your_Account/includes/mainfileend.php");
} elseif ($inside_mod == 1) {
include_once("../../modules/Your_Account/includes/mainfileend.php");
} else {
include_once("modules/Your_Account/includes/mainfileend.php");
}
|
What might cause this? |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Sat Jul 15, 2006 1:56 am |
|
You may need to change
Code:
if ($forum_admin == 1) {
TO
if (defined('FORUM_ADMIN')) {
} elseif ($inside_mod == 1) {
TO
} elseif (defined('INSIDE_MOD')) {
|
That should make it compatible with the latest phpNukes and Patched |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
Samtron

|
Posted:
Sat Jul 15, 2006 6:44 am |
|
evaders99 wrote: | That should make it compatible with the latest phpNukes and Patched | Ok, I changed them, but it shows the same error message.
If I remove that:
Code: if (defined('FORUM_ADMIN')) {
include_once("../../../modules/Your_Account/includes/mainfileend.php");
} elseif (defined('INSIDE_MOD')) {
include_once("../../modules/Your_Account/includes/mainfileend.php");
} else {
include_once("modules/Your_Account/includes/mainfileend.php");
}
|
And click "Edit Users".. it says "Access Denied".
Do I need to chmod my files/folders to something different?.. folders are 755 and files are 644.
Sorry if I ask stupid questions, I'm just starting to get use to PHP-Nuke and it's add-ons. |
|
|
|
 |
evaders99

|
Posted:
Sat Jul 15, 2006 1:05 pm |
|
Sorry, what version of phpNuke are you using? It is Patched? |
|
|
|
 |
SwT-King
New Member


Joined: Jul 15, 2006
Posts: 1
|
Posted:
Sat Jul 15, 2006 4:38 pm |
|
i got the same problem, and i am running Phpnuke 7.8 but everytime i got the admin and click on edit user keep get Access Denied |
|
|
|
 |
gregexp
The Mouse Is Extension Of Arm

Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol
|
Posted:
Sat Jul 15, 2006 4:57 pm |
|
Any addons made or patches applied? |
_________________ For those who stand shall NEVER fall and those who fall shall RISE once more!! |
|
 |
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Sat Jul 15, 2006 6:40 pm |
|
similar things have been discussed a few times peeps...
ever tried ravens search on top and use the site search by google...
type.. cnbya access denied
happy reading....  |
|
|
|
 |
Samtron

|
Posted:
Mon Jul 17, 2006 5:46 pm |
|
evaders99 wrote: | Sorry, what version of phpNuke are you using? It is Patched? |
My PHP-Nuke is version 7.9 and it's not patched. It's the default setup. |
|
|
|
 |
kevinkap
Involved


Joined: Apr 22, 2006
Posts: 356
|
Posted:
Sun Jan 14, 2007 9:40 pm |
|
|
|
 |
|