Comments (19)
I actually discovered this same issue this morning. I tried other admin accounts and got the same message, effectively removing our ability to use layers at all.
from webcalendar.
Have you found a solution?
from webcalendar.
What version are you using. I am unable to reproduce this in v1.9.9.
from webcalendar.
1.2.7
from webcalendar.
I have not found a solution yet. I am using the latest version of the calendar. None of my admin accounts can access layers. They all receive the "You are not authorized!" message.
from webcalendar.
me neither. would love to find a solution to this!
from webcalendar.
I tried to create a new Admin user and experienced the same issue. Here is a screen shot of what is seen in the console when the !!!You are not authorized message is displayed.
from webcalendar.
Does your admin user have rights to layers?
from webcalendar.
I thought mine does.
The issue is I get a "You are not authorized!!!" error so I can't even enable or disable them on my Admin page!
from webcalendar.
I'm not sure exactly which page you mean that displays the authorization hint. What is the exact path in the address bar?
from webcalendar.
The link is: /calendar/layers.php
and the error is:
"!!!You are not authorized."
Written with 3 exclamation marks at the top of the sentence!
from webcalendar.
If you have access to the database, can you please check if the the admin user has all access permissions.
You can do this in MySQL with the statement
SELECT * FROM
webcal_access_function WHERE cal_login = 'admin'
or for example in phpMyAdmin, look in table webcal_access_function in the row for user admin.
There should be only 'Y's in the permissions column. Like in this Screenshot
If there is a 'N' between the 'Y's, your admin user has not all permissions.
from webcalendar.
Yep, they are all set to "YYYYYYYYYYYYYYYYYYYYYYYYYYYY" on my Admin Account
from webcalendar.
and the login name is 'admin'?
If the login name is different, is the admin flag set for this user?
from webcalendar.
No the login name is my username (there is no username named "admin") but in the 'webcal_user' row the column 'cal_is_admin' is set to Y
from webcalendar.
Sorry, but then I don't know what to do. I would try to debug starting from the layers.php file.
I would try something like this line
?><script>console.log("$ALLOW_VIEW_OTHER=<?php echo $ALLOW_VIEW_OTHER; ?>");</script><?php
before the line
if ( $ALLOW_VIEW_OTHER != 'Y' )
This shows you the value of parameter $ALLOW_VIEW_OTHER in the browser console.
from webcalendar.
Thanks for your suggestion Max.
I tried that but I didn't see a different output in the browser.
In the error_log file there are a bunch of these lines:
[09-Feb-2024 11:59:37 America/New_York] PHP Notice: Use of undefined constant id - assumed 'id' in /home/eastside/public_html/calendar/includes/functions.php on line 4789
from webcalendar.
The obove javascript debug line writes the output in the console, not in the browser itself.
You have to use the Browser DevTools ( [F12]-Key )
I made this so complicated because the HTML output is not changed and other users are not disturbed by the debugging.
If you can change the HTML output without disturbing other users, then it is of course easier to simply use an echo command instead of the cryptic javascript debug line.
If you are using V1.2.7 the lines
if ( $ALLOW_VIEW_OTHER != 'Y' ) echo print_not_auth (7);
should be in lines number 48 and 49.
I assume the line "echo print_not_auth" gives the error message "!!!You are not authorized" if the variable "$ALLOW_VIEW_OTHER" is not 'Y'.
To check this, you can simply insert the line
echo '$ALLOW_VIEW_OTHER = ' . $ALLOW_VIEW_OTHER . "<br>\r\n";
before the line with the if statement.
from webcalendar.
By adding that line I get:
$ALLOW_VIEW_OTHER = N
!!!You are not authorized.
from webcalendar.
Related Issues (20)
- v1.9.1 seems to install properly, but calendar pages are blank HOT 1
- Installing webcalendar-master on XAMPP, but does not accept database type HOT 1
- Event popups are "blacked out" HOT 2
- MySQL Error on install "All parts of a PRIMARY KEY must be NOT NULL" HOT 1
- Empty login screen after installing version 1.9.10 HOT 1
- Translation fallbacks not working
- Installation hangs in step 3 HOT 9
- error when I add an event HOT 2
- Fatal Error: Invalid form request HOT 1
- Work hours not respected
- Invalid referring URL error on Chrome only HOT 2
- Error executing query. Mysqli HOT 4
- Official FreeBSD Port
- Cant see entry & activity report wrong
- WebCalendar Upgrade: Your mysqli database named 'usr_p663408_1' is empty and needs tables created. but tables and data exists. HOT 4
- Cannot install
- v1.9.1: after update to php8.2 "German_utf8" drops an error
- web calendar sous ubuntu 22 / php8 HOT 1
- Fatal error: Uncaught Error: Object of class DateTime could not be converted to string in functions.php(3113) after upgrade
- New Installation - New Events will not save
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcalendar.