New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problème sur Agenda perso #2654
Comments
"Unsupported operand types" semble indiquer une version incorrecte de PHP... Quelle est la version de PHP que tu utilises?
|
C'est Chamilo 1.11.8 "$sessions = ['0' => get_lang('SelectAnOption')] + $sessions;" |
Je parle de la "version de PHP". Voir dans administration -> Système -> Informations du système -> Version de PHP |
Ah desolé c'est 5.6.30 j'ai commis une faute quand je mettais à jour merci. |
Et donc... avec 7.*, ça va mieux? |
I have the same Error with php-7.0.32 and chamilo 1.11.8. What else can i do? |
I have the exact same problem with creating HR users having broken agenda links with the exact same errors and line numbers |
@ywarnier can we reopen this issue? |
I have installed both the PHP 5 version and the PHP 7 versions on my Development environment and both installations reflect this bug. I am trying to read through he code starting with account creation for HR Manager then the Login Procedure to see it there is a typo for the creation of the HR Manager not matching what the agenda API is looking for. |
Reopening. We need more details though, guys and gals, because so fat we have no context about what whether you have actually tested this on the latest development version or 1.11.8 stable. |
Also note that PHP 7.0 in particular (not 7.1, 7.2 or 7.3) had a lot of weird behaviour changes, so preferrably try to avoid it (plus it's not supported anymore, anyway: http://php.net/supported-versions.php) |
this is a consistent issue with all Stable versions when signed in as HR Issue when trying to use the personal agenda for the HR user. I am trying to trace it back. All you have to do is login as a HR manager role and this error shows up in the PHP Logs. I am trying trace but have unable to trace it as of yet while reviewing the scripts. Fatal error: Uncaught Error: Unsupported operand types in /home/fant/public_html/main/inc/lib/agenda.lib.php:3026 Stack trace: #0 /home/fant/public_html/main/calendar/agenda_js.php(157): Agenda->displayActions('calendar', NULL) #1 {main} thrown in /home/fant/public_html/main/inc/lib/agenda.lib.php on line 3026 |
I have even gone through the files related to creating an User Role and even coded in a new user roll and the Agenda works fine for the new user role that I created. so it maybe related to the to the View. I am now investigating the Views. I am trying find out how the add the Administration link to the new role and how to manage the admin screen as sample I am trying to limit the access in the administration similar to how the view works for Sessions manager. any pointers to where this is managed would help me possible fix this issue and finish the role inplementation. |
I just updated php7.0 to 7.2. |
Try changing the line https://github.com/chamilo/chamilo-lms/blob/1.11.x/main/inc/lib/agenda.lib.php#L3044 with: $sessions = array_merge(['0' => get_lang('SelectAnOption')], $sessions) |
Thanks a lot.
|
does not matter what version of PHP you use I have tried several now and the issue exists |
We believe this should be fixed in 1.11.10. I will be releasing a beta version tomorrow so you can test. |
We have just published our beta version here https://github.com/chamilo/chamilo-lms/releases/tag/v1.11.10-beta.1 |
OK. |
Any luck reproducing this issue with the beta, anyone? |
Hi **Server vps |
The Problem of this agenda for HR managers has been resolved in the beta new issue for HR Manager though in beta. in the social network on the "Personal Data" link is going to a blank screen. This also happens with "Learners" the "Admin" accounts works fine |
@steven1963
|
This last commit fixed the "notice" issue. That was good reporting. Thanks. |
J'ai changé mon profil comme Directeur RH.
Je reçois toujours un erreur.
Notice: Undefined variable: sessions in /home/fant/public_html/main/inc/lib/agenda.lib.php on line 3026
Fatal error: Uncaught Error: Unsupported operand types in /home/fant/public_html/main/inc/lib/agenda.lib.php:3026 Stack trace: #0 /home/fant/public_html/main/calendar/agenda_js.php(157): Agenda->displayActions('calendar', NULL) #1 {main} thrown in /home/fant/public_html/main/inc/lib/agenda.lib.php on line 3026
The text was updated successfully, but these errors were encountered: