Blank page URGENT
Permalink
As i am doing this webiste for contest this i really urgent.
I have a problem that my registrated users cant see a thing when they are logged in. As guest they can see everythig.
I(as administrator) can see everything.
Note: page premission for view there was only guess i put registrated users but did not help.
i checked with page source, nothing in the body section.
This is the thing im getting last, can anyone help me please. this is really important to me.
My webiste ishttp://e-spot.iserbia.org/
you can check yourself.
thank you in advanced!
I have a problem that my registrated users cant see a thing when they are logged in. As guest they can see everythig.
I(as administrator) can see everything.
Note: page premission for view there was only guess i put registrated users but did not help.
i checked with page source, nothing in the body section.
<body> <!-- NAVBAR ================================================== --> <!-- Wrap the .navbar in .container to center it on the page and provide easy way to target it with .navbar-wrapper. --> <div class="navbar navbar-inverse navbar-fixed-top" Unable to get permission key for edit
This is the thing im getting last, can anyone help me please. this is really important to me.
My webiste ishttp://e-spot.iserbia.org/
you can check yourself.
thank you in advanced!
Have you tried clearing the cache on your site? This looks like it is either a permissions issue or that the site cache got messed up somehow.
as i have cleared cache on my computer few times it still shows that bug. Friend that has tryed has gotten the same thing.
http://i.imgur.com/Mo5iXl1.png
This is the picture of current premissions on the website. I hope you can help me somehow
http://i.imgur.com/Mo5iXl1.png
This is the picture of current premissions on the website. I hope you can help me somehow
Have you tried clearing the Concrete5 Cache? It's under System & Settings, Clear Cache.
I've tryed it now, still same problem.
and still last thing in the code is
it looks like permission but i dont know.
edit: because of this "for edit" i dont know if it wants to go into edit mode. something is really wierd going on.
and still last thing in the code is
<div class="navbar navbar-inverse navbar-fixed-top" Unable to get permission key for edit
it looks like permission but i dont know.
edit: because of this "for edit" i dont know if it wants to go into edit mode. something is really wierd going on.
Do you have any custom code in your navigation?
From this error it looks like the navbar is trying to get Edit permissions.
Do you have Advanced Permissions turned on or Simple Permissions?
From this error it looks like the navbar is trying to get Edit permissions.
Do you have Advanced Permissions turned on or Simple Permissions?
"Advanced permissions are turned on."
i dont have. i've tryed to delete dropdown in navbar but and did some editing but as i remember it was not wroking before that editing.
BTW i havent been able to remove navbar dropdown menu.
i dont have. i've tryed to delete dropdown in navbar but and did some editing but as i remember it was not wroking before that editing.
BTW i havent been able to remove navbar dropdown menu.
I think what is happening is that the Users who are logged in do not have permission to view/edit the Stack or Global Area that the navigation is inside of.
What theme are you using?
If you go into either the /packages/package_name/themes/elements/header.php or /packages/package_name/themes/page_type_name.php can you see what stack or global area is called at that place in the theme?
What theme are you using?
If you go into either the /packages/package_name/themes/elements/header.php or /packages/package_name/themes/page_type_name.php can you see what stack or global area is called at that place in the theme?
I am using basic bootstrap theme.
got it from here: "http://goradiantweb.com/blog/design/free-basic-bootstrap-theme/#bio... "
*i have put codes with print screen images to save space in postm i hope that is not the problem
here is header code in image link:
http://i.imgur.com/cz8mK7T.png
here is right sidebar code in image (most of the pages if not all are right sidebar):
http://i.imgur.com/AQt2G6X.png
edit: i have realised that its says inc element/header_afixed.php so here is body part of that file:
http://i.imgur.com/d6bncSF.png
got it from here: "http://goradiantweb.com/blog/design/free-basic-bootstrap-theme/#bio... "
*i have put codes with print screen images to save space in postm i hope that is not the problem
here is header code in image link:
http://i.imgur.com/cz8mK7T.png
here is right sidebar code in image (most of the pages if not all are right sidebar):
http://i.imgur.com/AQt2G6X.png
edit: i have realised that its says inc element/header_afixed.php so here is body part of that file:
http://i.imgur.com/d6bncSF.png
Alright, I can tell you where the error is coming from, but I'm not exactly sure how to fix it.
In your element/header_afixed.php there is some code that looks like this:
This is the code that is causing the problem. It looks like it adds some margin to the top of the navbar if it can be edited by the user who is currently logged in. If your users aren't going to be editing the header from the front end I would juse remove that whole section of the code, then you can just edit the header from the Stacks area in the Dashboard if needed.
In your element/header_afixed.php there is some code that looks like this:
<?php if($ps && $ps->canEdit()){ echo 'style="margin-top: 50px!important;z-index: 2!important;"';}?>
This is the code that is causing the problem. It looks like it adds some margin to the top of the navbar if it can be edited by the user who is currently logged in. If your users aren't going to be editing the header from the front end I would juse remove that whole section of the code, then you can just edit the header from the Stacks area in the Dashboard if needed.
If you need to keep that functionality you could try replacing
with
but I'm not sure if that will fix it or not.
global $c;
with
$c = Page::getCurrentPage();
but I'm not sure if that will fix it or not.
I've deleted it and it works!
THANK YOU SO MUCH FOR YOUR TIME AND EFFORT!
i don't think that i really need them to edit header. again thank you very much!
THANK YOU SO MUCH FOR YOUR TIME AND EFFORT!
i don't think that i really need them to edit header. again thank you very much!
Thanks for posting this, however it still shows a blank page.
Anything else we could try as we dont want to delete the code !
Thanks
Anything else we could try as we dont want to delete the code !
Thanks
Also, I think that if you change:
to this instead:
It should work fine. But I also did what you suggested with the global variable and instead wrote what you wrote.
I could not find the function canEdit() for the Permission class and I think that canWrite() is the one intented. I switched, and it worked.
if ($ps && $ps->canEdit())
to this instead:
if ($ps && $ps->canWrite())
It should work fine. But I also did what you suggested with the global variable and instead wrote what you wrote.
I could not find the function canEdit() for the Permission class and I think that canWrite() is the one intented. I switched, and it worked.
Hi, thanks ever so much for your post, that worked great
:-)
:-)