Project

General

Profile

Support #8050

I can not import any report on any extension.

Added by Tomas Rodrigues almost 4 years ago. Updated almost 4 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
Tracking / Reporting
Target version:
Start date:
13/01/2016
Due date:
% Done:

100%

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

Description

Hello.
I can not import any report on any extension.
In any form. PDF-CVS-.doc.etc.
I get this error in the browser.
-------------------------------------------
Server Error

500
Hide details
The website encountered an error while retrievinghttp://sv.tecnoltech.com/main/gradebook/gradebook_flatview.php?exportpdf=&offset=0&selectcat=5&cidReq=0001&id_session=0&gidReq=0&gradebook=1&origin=&flatviewlist_page_nr=0&flatviewlist_per_page=0. It may be down for maintenance or configured incorrectly.
Update this webpage
Press the "Refresh" button to resubmit the data needed to load the page.
-------------------------------------------
Does anyone have an idea?

ps: remember that the same server. This installed chamilo 1.9.8 and 1.9.1.0

Associated revisions

Revision 66e8840f (diff)
Added by José Loguercio almost 4 years ago

Fix can not import any report on any extension in Gradebook - Refs #8050

Revision 1ec07fca (diff)
Added by Angel Fernando Quiroz Campos almost 4 years ago

Remove E_NOTICE - refs #8050

Revision bac93b9c
Added by José Loguercio almost 4 years ago

Merge pull request #1001 from jloguercio/8050-t

Fix can not import any report on any extension in Gradebook - Refs #8050

History

#1

Updated by Tomas Rodrigues almost 4 years ago

  • File export_localhost.jpg added

Hi.
Some more information.
Chamilo 1.10.2 installed in localhost for testing.
The export error on localhost is this image.
using:
wampserver.

#2

Updated by Tomas Rodrigues almost 4 years ago

I tried this solution to my export problem.
But it did not work.
I can not export anything.
https://support.chamilo.org/issues/8006#change-39207

#3

Updated by José Loguercio almost 4 years ago

  • Status changed from New to Needs testing
  • Assignee set to Tomas Rodrigues
  • % Done changed from 0 to 80

Hi! this changes solve the problem :)
PR: https://github.com/chamilo/chamilo-lms/pull/1001

#4

Updated by Tomas Rodrigues almost 4 years ago

  • File novoerro.jpg added

Hi.
I made the changes, but did not work for me.
Leave in test mode.
Now from this error.
Image attached.
Thank you

#5

Updated by Tomas Rodrigues almost 4 years ago

  • File VISIONEXPORTDIPLOMA.jpg added
  • File IMG01.jpg added
  • File IMG02.jpg added

Hi.
See the picture when I try to view the certificate or export to pdf.
IMG01 view certificate I get error.
IMG02 get blank page when trying to export PDF.
Thank you

#6

Updated by José Loguercio almost 4 years ago

Oh, i made the changes to gradebook_flatview.php , for all export, now i see certificates got the same problem, working on it !
Please verify if gradebook_flatview.php exports works properly

Thanks

#7

Updated by José Loguercio almost 4 years ago

Marcelo Bassuma wrote:

Hi.
I made the changes, but did not work for me.
Leave in test mode.
Now from this error.
Image attached.
Thank you

Hi, for this error, can you test it in spanish or english language ?

#8

Updated by José Loguercio almost 4 years ago

Try to change course language and platform language

#9

Updated by José Loguercio almost 4 years ago

Ok, i think this is a outdated dependence problem, can you please update your dependencies? , if you use composer do a "composer update" in your chamilo installation.

#10

Updated by Tomas Rodrigues almost 4 years ago

HI.
I created an account for you.
Please could test.
Login: jose
Password: 123456
http://tecnoltech.com/

#11

Updated by Tomas Rodrigues almost 4 years ago

  • File gradebook_flatview.jpg added

José Loguercio wrote:

Oh, i made the changes to gradebook_flatview.php , for all export, now i see certificates got the same problem, working on it !
Please verify if gradebook_flatview.php exports works properly

Thanks

Hi.
I did change one by one.
1-gradebook flat view.php
2-GradebookUtils.php
3-gradebook_result.class.php
And I tested.
In chamilo that has been updated.
And chamilo fresh installation.
In both failed.
I get this error:
Image attached
Thank you

#12

Updated by Tomas Rodrigues almost 4 years ago

José Loguercio wrote:

Ok, i think this is a outdated dependence problem, can you please update your dependencies? , if you use composer do a "composer update" in your chamilo installation.

Excuse me.
But I did not understand what I have to do.
This is the server?
Or in chamilo settings?

#13

Updated by José Loguercio almost 4 years ago

http://sv.tecnoltech.com/main/gradebook/exercise_jump.php?session_id=0&cidReq=AGDI2016&gradebook=view&exerciseId=1&type=1&doexercise=1

For this error, go to exercise_jump.php and change line 20 from $course_code = $return_result['code']; to $course_code = $course_code['code'];

#15

Updated by Tomas Rodrigues almost 4 years ago

  • File exercise_jump.jpg added

Hi.
is the files are the same.
Even so I switched exercise_jump.php
by this:
https://github.com/chamilo/chamilo-lms/commit/1ec07fcaee8c80b02dee7058ebd9ac0c620ea4c0
And I added "$ course_code = $ course_code ['code'];".

When clicking the link above.
You receive this error.

Warning: Illegal offset string 'code' in /home/public_html/sv/main/gradebook/exercise_jump.php on line 16

Warning: Can not modify header information - headers already sent by (output started at /home/public_html/sv/main/gradebook/exercise_jump.php:16) in /home/public_html/sv/main/gradebook/exercise_jump.php on line 44

Being in "test serivdor '.
In "production server" error 404.

#16

Updated by José Loguercio almost 4 years ago

avoid to add the line "$ course_code = $ course_code ['code'];"
only use this commit : https://github.com/chamilo/chamilo-lms/commit/1ec07fcaee8c80b02dee7058ebd9ac0c620ea4c0

this solve that problem

#17

Updated by José Loguercio almost 4 years ago

Now, for the export formats problem, lets make a little test, can you go to /vendor/symfony/intl/NumberFormatter/NumberFormatter.php and go to line 283

change This line :
if ('en' !== $locale && null !== $locale) {

to :

if (null !== $locale) {

save it and test again the export

#18

Updated by Tomas Rodrigues almost 4 years ago

  • File exercise_jump.jpg added
  • File NumberFormatter.jpg added

Hello.
I made the requested changes.
For exercise_jump.php aquivo.
When clicking on this link.
http://tecnoltech.com/main/gradebook/exercise_jump.php?session_id=0&cidReq=AGDI2016&gradebook=view&exerciseId=1&type=1&doexercise=1
He now return to this:
http://tecnoltech.com/main/exercise/overview.php?session_id=0&cidReq=AGDI2016&gradebook=view&origin=&learnpath_id=&learnpath_item_id=&exerciseId=1
------------------------------------------
Now for the NumberFormatter.php.
When trying explortar of this error:

Fatal error: Uncaught exception 'Symfony\Component\Intl\Exception\MethodArgumentValueNotImplementedException' with message 'The Symfony\Component\Intl\NumberFormatter\NumberFormatter::__construct() method's argument $locale value 'pt' behavior is not implemented. Only the locale "en" is supported. Please install the "intl" extension for full localization capabilities.' in /home/blic_html/sv/vendor/symfony/intl/NumberFormatter/NumberFormatter.php:287 Stack trace: #0 /home/public_html/sv/main/gradebook/lib/scoredisplay.class.php(381): Symfony\Component\Intl\NumberFormatter\NumberFormatter->__construct('pt', 5) #1 /home/public_html/sv/main/gradebook/lib/scoredisplay.class.php(324): ScoreDisplay->display_default(Array, 12) #2 /home//public_html/sv/main/gradebook/lib/flatview_data_generator.class.php(566): ScoreDisplay->display_score(Array, 12) #3 /home/public_html/sv/main/gradebook/lib/GradebookUtils.php(489): FlatViewDataGenerator->get_data(1, 0, NULL, 0, 3, true, true) #4 /home/bass in /home//public_html/sv/vendor/symfony/intl/NumberFormatter/NumberFormatter.php on line 287

#20

Updated by José Loguercio almost 4 years ago

Now for the NumberFormatter.php , i think now where the problem is ...

first: revert the changes in NumberFormatter.php
second: verify if in your php.ini is the extension php_intl enabled

#21

Updated by Tomas Rodrigues almost 4 years ago

Hello.
OK.
I restored the file.
Look here.

#22

Updated by Tomas Rodrigues almost 4 years ago

  • File export_csv_ok.jpg added

Hello.
Extension "php_extension intl."
enabled.
Now you can export only in "csv".
see image
Thank you

#23

Updated by José Loguercio almost 4 years ago

Good, now ... is the same error on NumberFormatter persist in pdf, word and xls?

#24

Updated by Tomas Rodrigues almost 4 years ago

Excuse me
But again disabled support extension "php_extension_intl".
For I had broken the site with 500 error.
He backs everything as it was before.
Thank you

#25

Updated by Tomas Rodrigues almost 4 years ago

Hello.
Stating that it was installed on the server.
php extension intl
No problem with the site is chamilo.
Can export report file in .csv format.

#26

Updated by Yannick Warnier almost 4 years ago

  • Status changed from Needs testing to Bug resolved
  • Assignee changed from Tomas Rodrigues to José Loguercio
  • % Done changed from 80 to 100
#27

Updated by Tomas Rodrigues almost 4 years ago

  • File deleted (export-.jpg)
#28

Updated by Tomas Rodrigues almost 4 years ago

  • File deleted (Erro-no-servidor.jpg)
#29

Updated by Tomas Rodrigues almost 4 years ago

  • File deleted (export_localhost.jpg)
#30

Updated by Tomas Rodrigues almost 4 years ago

  • File deleted (novoerro.jpg)
#31

Updated by Tomas Rodrigues almost 4 years ago

  • File deleted (VISIONEXPORTDIPLOMA.jpg)
#32

Updated by Tomas Rodrigues almost 4 years ago

  • File deleted (IMG02.jpg)
#33

Updated by Tomas Rodrigues almost 4 years ago

  • File deleted (gradebook_flatview.jpg)
#34

Updated by Tomas Rodrigues almost 4 years ago

  • File deleted (exercise_jump.jpg)
#35

Updated by Tomas Rodrigues almost 4 years ago

  • File deleted (exercise_jump.jpg)
#36

Updated by Tomas Rodrigues almost 4 years ago

  • File deleted (NumberFormatter.jpg)
#37

Updated by Tomas Rodrigues almost 4 years ago

  • File deleted (export_csv_ok.jpg)
#38

Updated by Tomas Rodrigues almost 4 years ago

  • File deleted (IMG01.jpg)

Also available in: Atom PDF