Project

General

Profile

Support #7260

Blank page when trying to edit User or a course

Added by Tomas Rodrigues about 5 years ago. Updated about 5 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
07/09/2014
Due date:
% Done:

50%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Hello,
I have 5 facilities chamilo 1.9.8.2 with this error blank page when trying to edit User or a course.

I have to put "?" at the end of the url to return. In navigating ie11 she fills the url. We only other browsers is the "?" more work.

And installed manually by softaculous. Even problem. All chamilo that are in the demo are softaculous with esso bug.

Does anyone know the reason? can someone help?
Thank you!

Associated revisions

Revision f9ae2f94 (diff)
Added by Julio Montoya about 5 years ago

Fixing PHP notices see #7260

Revision 91744595 (diff)
Added by Julio Montoya about 5 years ago

Fixing PHP notices see #7260

History

#1

Updated by Enzo Rivadeneira about 5 years ago

Please: There are any solution for this issue. is very important because when the students try to edit your data appears blank page and try to modify them again and again. Please indicate how to fix. I have reviewed and user_list.php user_edit.php files but I have not enconstrado nothing different compared to the same files for version 1.9.6 where the message appears successful edition. In the course edition when the buton save is press, return to list course without displaying the message "The course has been edited". Please y veru important. We have migrated all student to new version of Chamilo. Thank.

Marcelo Bassuma wrote:

Hello,
I have 5 facilities chamilo 1.9.8.2 with this error blank page when trying to edit User or a course.

I have to put "?" at the end of the url to return. In navigating ie11 she fills the url. We only other browsers is the "?" more work.

And installed manually by softaculous. Even problem. All chamilo that are in the demo are softaculous with esso bug.

Does anyone know the reason? can someone help?
Thank you!

#2

Updated by Julio Montoya about 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Yoselyn Castillo

Yoselyn, could you take this one?

It seems that is a server settings issue (hide PHP warning/notices).

#3

Updated by Tomas Rodrigues about 5 years ago

Hello,
Excuse me but did not understand.
I closed the ticket with support because they said it is no problem with their service.
I have seen that more users with the same problem at this link:
http://www.chamilo.org/phpBB3/viewtopic.php?f=6&t=5428

I have to configure my server? As?
Would help me?
Thank you

#4

Updated by Yoselyn Castillo about 5 years ago

I will try it and later i give you my feedback

#5

Updated by Tomas Rodrigues about 5 years ago

Hello,
Firstly thank you very much. I'll wait hopefully your help.
Regards,

#6

Updated by Yoselyn Castillo about 5 years ago

  • Status changed from Assigned to Needs more info

In fact, i could not reproduce the bug. Not in my local installation and not in stable.chamilo.org. Do you have the latest chamilo version from git? If it is not please pull it, if you have it, please let me know your general settings.

#7

Updated by Tomas Rodrigues about 5 years ago

Hello,
I have this instalção here is the same script that I downloaded from the official website.
User created a test for you.
Apache version 2.2.27
PHP Version 5.3.28
MySQL version 5.5.37-35.0
thank you

#8

Updated by Tomas Rodrigues about 5 years ago

  • File teste de exame.mp4 added

Hello,
I look again :).

Well, I created an account on https://campus.chamilo.org/ to show my other problem.
1 * -When choose a date and time for an exam it only if you choose Save from 00:00 until 24:59.
You give 2-13: 0 at 23:59 it does not save. So there's no way to mark the examination afternoon or evening.
Now when you save the "1 *" it does not release, ie, the day comes and marked for the exam, the more it does not release the exam, have to go manually to release time.

What am I doing wrong?
greetings

#9

Updated by Enzo Rivadeneira about 5 years ago

Estimados, por favor, el problema es bien simple. Al actualizar cursos o usuarios, se genera página en blanco. Este problema no ocurre con la versión 1.9.6, instalada en el mismo servidor y con las mismas configuraciones.

Por favor, cualquier ayuda o guía sobre cómo solucionarlo será muy bien recibida.
Nota: El software fue descargado del sitio oficial de chamilo.

Saludos.

#10

Updated by Yoselyn Castillo about 5 years ago

I will check your site settings in order to find the problem, later i will leave you my feedback

#11

Updated by Enzo Rivadeneira about 5 years ago

Por el momento, solo como solución temporal, se puede evitar la página en blanco y mantener al usuario en la misma página de edición al modificar.Para lo anterior es necesario editar el fichero main/admin/user_edit.php.

Bscar la línea 423 el siguiente código:
-----------------------------------------------------------
$tok = Security::get_token();
header('Location: user_list.php?action=show_message&message='.urlencode(get_lang('UserUpdated')).'&sec_token='.$tok);
exit();
--------------------------------------------------------------------------------------
Eliminar la función exit(); y el sistema guardará los cambios y mantendrá al usuario en la misma página de edición.
No es la mejor opción, pero al menos evita la página en blanco.

Esperamos la solución definitiva de Chamilo.
Saludos.

#12

Updated by Yoselyn Castillo about 5 years ago

I really think we can remove exit without apparent consequences? Isn't it Julio. If it is we can apply this pull:
https://github.com/chamilo/chamilo-lms/pull/351

#13

Updated by Tomas Rodrigues about 5 years ago

Enzo Rivadeneira wrote:

Por el momento, solo como solución temporal, se puede evitar la página en blanco y mantener al usuario en la misma página de edición al modificar.Para lo anterior es necesario editar el fichero main/admin/user_edit.php.

Bscar la línea 423 el siguiente código:
-----------------------------------------------------------
$tok = Security::get_token();
header('Location: user_list.php?action=show_message&message='.urlencode(get_lang('UserUpdated')).'&sec_token='.$tok);
exit();
--------------------------------------------------------------------------------------
Eliminar la función exit(); y el sistema guardará los cambios y mantendrá al usuario en la misma página de edición.
No es la mejor opción, pero al menos evita la página en blanco.

Esperamos la solución definitiva de Chamilo.
Saludos.

Hello,

Did procedimente above. It worked ok I have to find now edit the course and do the same thing?

Marcelo

#14

Updated by Tomas Rodrigues about 5 years ago

Marcelo Bassuma wrote:

Enzo Rivadeneira wrote:

Por el momento, solo como solución temporal, se puede evitar la página en blanco y mantener al usuario en la misma página de edición al modificar.Para lo anterior es necesario editar el fichero main/admin/user_edit.php.

Bscar la línea 423 el siguiente código:
-----------------------------------------------------------
$tok = Security::get_token();
header('Location: user_list.php?action=show_message&message='.urlencode(get_lang('UserUpdated')).'&sec_token='.$tok);
exit();
--------------------------------------------------------------------------------------
Eliminar la función exit(); y el sistema guardará los cambios y mantendrá al usuario en la misma página de edición.
No es la mejor opción, pero al menos evita la página en blanco.

Esperamos la solución definitiva de Chamilo.
Saludos.

Hello,

Did procedimente above. It worked ok I have to find now edit the course and do the same thing?
I'm asking because the course of the white page yet. Gotta find that exit, and delete?
Regards

Marcelo

#15

Updated by Tomas Rodrigues about 5 years ago

Hello,

Did procedimente above. In infocours.php aquivo. Deleted "exit ();"
$ appPlugin-> saveCourseSettingsHook ($ update_values​​);
     $ cidReset = true;
     $ $ = cidReq course_code;
     require '../inc/local.inc.php';
     header ('Location: infocours.php & action = show_message cidReq ='. $ course_code);
exit (); <---- delete
}
Well now also edit the course without receiving a blank page.
  ps: have a problem with security?
Regards

Marcelo

#16

Updated by Julio Montoya about 5 years ago

  • Status changed from Needs more info to Needs testing

Yoselyn Castillo wrote:

I really think we can remove exit without apparent consequences? Isn't it Julio. If it is we can apply this pull:
https://github.com/chamilo/chamilo-lms/pull/351

Esta es una buena solución. El error se debe a unos PHP notices deberia de estar corregido con:

https://github.com/chamilo/chamilo-lms/commit/f9ae2f948c3d69e2f4b70cffa07de3a0bc8ef60a
https://github.com/chamilo/chamilo-lms/commit/91744595aea57df30045d201d2ef3fb614c12065

#17

Updated by Tomas Rodrigues about 5 years ago

  • File course_edit.jpg added
  • File usermanager.lib.php_1.jpg added
  • File usermanager.lib.php_2.jpg added

Julio Montoya wrote:

Yoselyn Castillo wrote:

I really think we can remove exit without apparent consequences? Isn't it Julio. If it is we can apply this pull:
https://github.com/chamilo/chamilo-lms/pull/351

Esta es una buena solución. El error se debe a unos PHP notices deberia de estar corregido con:

https://github.com/chamilo/chamilo-lms/commit/f9ae2f948c3d69e2f4b70cffa07de3a0bc8ef60a
https://github.com/chamilo/chamilo-lms/commit/91744595aea57df30045d201d2ef3fb614c12065

Hello,
Thanks for the help of Lords. I did that here (https://github.com/ycastillo/chamilo-lms/commit/c6804a45d152676db1cdb5e88badc9b492590c07) and not get a blank page.

You gave me these link: https://github.com/chamilo/chamilo-lms/commit/f9ae2f948c3d69e2f4b70cffa07de3a0bc8ef60a.
Only your gives on line 219 on line 212 I found a similar, now the line 4318 and 4373 in my're different.

Excuse me for my lack of knowledge, this is more to solve the problem # 2. date and time of the exam?
Thank you for attention

#18

Updated by Julio Montoya about 5 years ago

The fixes are in both commits:

https://github.com/chamilo/chamilo-lms/commit/f9ae2f948c3d69e2f4b70cffa07de3a0bc8ef60a
https://github.com/chamilo/chamilo-lms/commit/91744595aea57df30045d201d2ef3fb614c12065

For some reasons some variables are not set so some PHP warning/notices are fired.
That's why you have a blank page when PHP tries to make a redirection.

#19

Updated by Tomas Rodrigues about 5 years ago

Hello
****I've done all changes to files. Changes in (main / admin / user_edit.php) and (main / course_info / infocours.php) already solved the problem of the white page.

My tests:
Changes made ​​in the files first (main / inc / lib / usermanager.lib.php) and (main / admin / course_edit.php) and the problem continued.

Then I did the test using only the changes in (main / admin / user_edit.php) and (main / course_info / infocours.php) already solved the problem of the white page.

Currently all files are with the changes you sent. But as I said, only the ** works.

Thanks for your help.

ps: the bug of the time of examination continues :)

#20

Updated by Tomas Rodrigues about 5 years ago

  • File link_cms01.jpg added
  • File link_cms02.jpg added

Hello,
Julio Montoya.
I close this support and obro other? Or you could help me again right here?
My problem is:
I can not create private links, ie, only after the logged in User might see a link to a page cms.

(Optional
Use ::private at the end of the link to show it only to logged-in users)
 
I've tried:
http://www.chamilo.org/::private
http://www.chamilo.org/::

What am I doing wrong?

Since already thank you very

#21

Updated by Julio Montoya about 5 years ago

  • Priority changed from Urgent to Normal

Marcelo Bassuma wrote:

Hello,
Julio Montoya.
I close this support and obro other? Or you could help me again right here?
My problem is:
I can not create private links, ie, only after the logged in User might see a link to a page cms.

(Optional
Use ::private at the end of the link to show it only to logged-in users)
 
I've tried:
http://www.chamilo.org/::private
http://www.chamilo.org/::

What am I doing wrong?

Since already thank you very
Marcelo Bassuma

Hi, You should create a new ticket for that.

#22

Updated by Yannick Warnier about 5 years ago

  • Status changed from Needs testing to Assigned
  • Assignee changed from Yoselyn Castillo to Julio Montoya
  • Target version set to 1.9.10
#23

Updated by Julio Montoya about 5 years ago

  • Status changed from Assigned to Needs more info
  • Assignee deleted (Julio Montoya)

I tested here https://stable.chamilo.org

And I can see the link only for registered users.

Login as admin/admin

#24

Updated by Yannick Warnier about 5 years ago

  • Status changed from Needs more info to Bug resolved
  • % Done changed from 0 to 50

Closing until new feedback is provided.

#25

Updated by Tomas Rodrigues over 4 years ago

  • File deleted (link_cms02.jpg)
#26

Updated by Tomas Rodrigues over 4 years ago

  • File deleted (Blank page.mp4)
#27

Updated by Tomas Rodrigues over 4 years ago

  • File deleted (teste de exame.mp4)
#28

Updated by Tomas Rodrigues over 4 years ago

  • File deleted (course_edit.jpg)
#29

Updated by Tomas Rodrigues over 4 years ago

  • File deleted (usermanager.lib.php_1.jpg)
#30

Updated by Tomas Rodrigues over 4 years ago

  • File deleted (usermanager.lib.php_2.jpg)
#31

Updated by Tomas Rodrigues over 4 years ago

  • File deleted (link_cms01.jpg)

Also available in: Atom PDF