Project

General

Profile

Bug #7814

Issues to create courses and surveys in beta

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

Status:
Bug resolved
Priority:
Normal
Assignee:
-
Category:
Survey
Target version:
Start date:
03/09/2015
Due date:
% Done:

0%

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

Description

Hello.
You have no edit course.
Reported that after creating a course.
Some tools are in trouble.
For example:
By clicking Learning paths.
There's no way to create a course.
thank you

Chamilo 1.10.0 downloaded here.
https://github.com/chamilo/chamilo-lms/releases/tag/v1.10.0-beta.1
Version Source code (tar.gz)

Associated revisions

Revision 579d59ac (diff)
Added by Julio Montoya about 4 years ago

Fix PHP warning see #7814

Revision 35e49cb6 (diff)
Added by Julio Montoya about 4 years ago

Fix js error see #7814

History

#1

Updated by Yannick Warnier about 4 years ago

Cannot reproduce here

#2

Updated by Tomas Rodrigues about 4 years ago

Hello.
Yannick Warnier
I did the test:
https://unstable.chamilo.org/
And this funcinando.
Plus I downloaded and installed.
It was with these problems.
If you can take a test.
I believe it is easier to see the problem.
thank you

#3

Updated by Yannick Warnier about 4 years ago

OK, I put your platform in development mode. That will help debugging. This particular issue here has been fixed by Julio yesterday.
You can wait for Beta 2 or download this file and replace it on your server.
https://github.com/chamilo/chamilo-lms/blob/1.10.x/main/inc/lib/formvalidator/Element/DateTimePicker.php

Please note that other files in the same directory might also have the same issue and been fixed since then, so you'd better download all the files from there and put them in the same directory on your server.
This is probably the same issue that appears for the learning path, the exercises and the surveys.

#4

Updated by Tomas Rodrigues about 4 years ago

Hello.
It's all right.
I will then exchange the files.
After the outcome posts.
thank you

#5

Updated by Tomas Rodrigues about 4 years ago

  • File Notice-Undefined-index.jpg added
  • File Fatal-error-1.jpg added

OK.
I changed the DateTimePicker.php file:
By this.
https://github.com/chamilo/chamilo-lms/blob/1.10.x/main/inc/lib/formvalidator/Element/DateTimePicker.php
The platform test server of this error.
When attempting to create new course.
Img 1.
Switching to Production server.
By accessing learning path.
img 2.
I will try to exchange with other files you spoke to see the result.
thank you

#6

Updated by Tomas Rodrigues about 4 years ago

OK.
With the return of the file.
Only the learning path.
Continued problem.
Other tools seem funcinar now.
Created test, research, task, add User.
This worked now.
Continuing test here.

#7

Updated by Tomas Rodrigues about 4 years ago

  • File deleted (Learning-path-1.jpg)
#8

Updated by Tomas Rodrigues about 4 years ago

  • File deleted (Learning-path-2.jpg)
#9

Updated by Tomas Rodrigues about 4 years ago

  • File deleted (Learning-path-3.jpg)
#10

Updated by Tomas Rodrigues about 4 years ago

  • File deleted (Notice-Undefined-index.jpg)
#11

Updated by Tomas Rodrigues about 4 years ago

  • File deleted (Fatal-error-1.jpg)
#12

Updated by Tomas Rodrigues about 4 years ago

Hello.
I will wait for the release of beta 2.
For the beta 1.
I am facing some problems.
The tools:

Assessments;
Fatal error: Can not use function return value in write context in /home/public_html/puma/main/gradebook/lib/fe/catform.class.php on line 374

Learning path;
Fatal error: Can not use method return value in write context in /home/public_html/puma/main/inc/lib/formvalidator/Element/DatePicker.php on line 46

Survey;
Fatal error: Can not use method return value in write context in / home /
public_html / puma / main / inc / lib / formvalidator / Element / DatePicker.php on line 46
etc.

I created a forum as administrator.
Accessed with student profile.
By clicking "'Create thead" type a title and text in the box.
Then click on "+ Create thead"
I get these errors:

Notice: Undefined index: calification_notebook_title in /home/public_html/puma/main/forum/forumfunction.inc.php on line 2386

Notice: Undefined index: numeric_calification in /home/public_html/puma/main/forum/forumfunction.inc.php on line 2387

Notice: Undefined index: weight_calification in /home/public_html/puma/main/forum/forumfunction.inc.php on line 2388

Notice: Undefined index: thread_peer_qualify in /home/public_html/puma/main/forum/forumfunction.inc.php on line 2389

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE [23000]: Integrity constraint Violation: 1048 Column' thread_qualify_max 'can not be null' in / home / public_html / puma / vendor / doctrine / DBAL / lib / doctrine / DBAL / Driver /PDOStatement.php:91 Stack trace: # 0

/home/public_html/puma/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(91): PDOStatement-> execute (Array) # 1

/home/public_html/puma/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(165): Doctrine \ DBAL \ Driver \ PDOStatement-> execute (Array) # 2

/home/public_html/puma/main/inc/lib/database.lib.php(398): Doctrine \ DBAL \ Statement-> execute (Array) # 3

/home/public_html/puma/main/forum/forumfunction.inc.php(2392): Database :: insert ('c_forum_thread', Array) # 4

/home/public_html/puma/main/forum/newthread.php(189): store_thread (Array, Array) # 5 {main} Next exception 'Doctrine \ DBAL \ Driver \ PDOException' with message 'SQLSTATE [23000]: Integrity constraint Violation: 1048 Column 'thread_qualify_max' can not be in

/home/public_html/puma/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 112

Thanks for listening

#13

Updated by Julio Montoya about 4 years ago

  • Status changed from New to Needs testing

Marcelo Bassuma wrote:

Hello.
I will wait for the release of beta 2.
For the beta 1.
I am facing some problems.
The tools:

Assessments;
Fatal error: Can not use function return value in write context in /home/public_html/puma/main/gradebook/lib/fe/catform.class.php on line 374

Learning path;
Fatal error: Can not use method return value in write context in /home/public_html/puma/main/inc/lib/formvalidator/Element/DatePicker.php on line 46

Survey;
Fatal error: Can not use method return value in write context in / home /
public_html / puma / main / inc / lib / formvalidator / Element / DatePicker.php on line 46
etc.

I created a forum as administrator.
Accessed with student profile.
By clicking "'Create thead" type a title and text in the box.
Then click on "+ Create thead"
I get these errors:

Notice: Undefined index: calification_notebook_title in /home/public_html/puma/main/forum/forumfunction.inc.php on line 2386

Notice: Undefined index: numeric_calification in /home/public_html/puma/main/forum/forumfunction.inc.php on line 2387

Notice: Undefined index: weight_calification in /home/public_html/puma/main/forum/forumfunction.inc.php on line 2388

Notice: Undefined index: thread_peer_qualify in /home/public_html/puma/main/forum/forumfunction.inc.php on line 2389

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE [23000]: Integrity constraint Violation: 1048 Column' thread_qualify_max 'can not be null' in / home / public_html / puma / vendor / doctrine / DBAL / lib / doctrine / DBAL / Driver /PDOStatement.php:91 Stack trace: # 0

/home/public_html/puma/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(91): PDOStatement-> execute (Array) # 1

/home/public_html/puma/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(165): Doctrine \ DBAL \ Driver \ PDOStatement-> execute (Array) # 2

/home/public_html/puma/main/inc/lib/database.lib.php(398): Doctrine \ DBAL \ Statement-> execute (Array) # 3

/home/public_html/puma/main/forum/forumfunction.inc.php(2392): Database :: insert ('c_forum_thread', Array) # 4

/home/public_html/puma/main/forum/newthread.php(189): store_thread (Array, Array) # 5 {main} Next exception 'Doctrine \ DBAL \ Driver \ PDOException' with message 'SQLSTATE [23000]: Integrity constraint Violation: 1048 Column 'thread_qualify_max' can not be in

/home/public_html/puma/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 112

Thanks for listening

I just added some fixes for this see:
https://github.com/chamilo/chamilo-lms/commit/954e7be9899aff70f0bd7ab4bace8d22beefec31

#14

Updated by Tomas Rodrigues about 4 years ago

OK.
With the changes of the files.
Forum of the problem was resolved.
thank you.
Now.
By creating an Surveys.
And let checked. "Grade in the assessment tool."
And choose a value.
I get this warning:
Fatal error: Call to a member function set_user_id () on a non-object in /home//public_html/chamilo/main/gradebook/lib/GradebookUtils.php on line 38

Now, if you leave marked and leave valuables at 0.00.
I get this:
Notice: Undefined index: real_id in /home/public_html/chamilo/main/gradebook/lib/be/abstractlink.class.php on line 168

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE [42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual que Corresponds to your MySQL server version for the right syntax to use near 'AND category_id = 0 AND course_' at line 3 'in / home / public_html / puma / vendor / doctrine / DBAL / lib / doctrine / DBAL / Driver /PDOConnection.php:104 Stack trace: # 0 /home/public_html/puma/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(104): PDO-> query ('SELECT count () ... ') # 1 /home/public_html/puma/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(833): Doctrine \ DBAL \ Driver \ PDOConnection-> query (' SELECT count () ... ') # 2 /home/public_html/puma/main/inc/lib/database.lib.php(327): Doctrine \ DBAL \ Connection-> executeQuery ("SELECT count () ...') # 3 /home/public_html/puma/main/gradebook/lib/be/abstractlink.class.php(334): Database :: query ('SELECT count () ...') # 4 / home /advertorials in /home/public_html/puma/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 90
Platform "Test Server".

#15

Updated by Yannick Warnier about 4 years ago

  • Subject changed from You have no edit course. to Issues to create courses and surveys in beta
  • Category set to Survey
  • Status changed from Needs testing to Assigned
  • Assignee set to Julio Montoya
#16

Updated by Yannick Warnier about 4 years ago

  • Tracker changed from Support to Bug
#17

Updated by Tomas Rodrigues about 4 years ago

Hello everyone.
Testing the beta2.
Assessments of this problem;
Fatal error: Can not use function return value in write context in /home/public_html/puma/main/gradebook/lib/fe/catform.class.php on line 374:
I had the beta1 and beta2 came with.
This solved here by Julio Montoya.
https://github.com/chamilo/chamilo-lms/blob/954e7be9899aff70f0bd7ab4bace8d22beefec31/main/gradebook/lib/fe/catform.class.php

#18

Updated by Tomas Rodrigues about 4 years ago

Informing.
The forum was Corrigo the beta1 with the exchange of the file:
https://github.com/chamilo/chamilo-lms/blob/954e7be9899aff70f0bd7ab4bace8d22beefec31/main/forum/forumfunction.inc.php
The beta2 this ok.

However leaving the way on deck "Test Server" both beta1 and beta2.
It appears.
Warning: Can not modify header information - headers already sent by (output started at /home/public_html/cursos/main/inc/lib/template.lib.php:1100) in / home /public_html / courses / main / inc / lib / template.lib.php on line 928

Warning: Can not modify header information - headers already sent by (output started at /home/public_html/cursos/main/inc/lib/template.lib.php:1100) in / home /public_html / courses / main / inc / lib / template.lib.php on line 931
To replicate just go:
"Create thread"
Once in:
"Advancend setting"
Check "this thread Grade"
And fill in the fields with some values.
Once in:
"+Create thread"

Note: This only appears with the mode platform "Test Server".

#19

Updated by Julio Montoya about 4 years ago

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

PHP warnings are fixed now.

#20

Updated by Yannick Warnier about 4 years ago

This will have to wait for a beta3 to be testable. I'll release one tomorrow or so.

#21

Updated by Julio Montoya about 4 years ago

I think this was already fixed. I cannot reproduce the error.

#22

Updated by Tomas Rodrigues about 4 years ago

OláJulio.
I would test here:
Just try again.
In beta2 the survey tool.
remains a problem.

Notice: Undefined index: real_id in /home/public_html/cursos/main/gradebook/lib/be/abstractlink.class.php on line 168

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE [42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual que Corresponds to your MySQL server version for the right syntax to use near 'AND category_id = 0 AND course_' at line 3 'in / home / public_html / courses / vendor / doctrine / DBAL / lib / doctrine / DBAL / Driver /PDOConnection.php:104 Stack trace: # 0 /home/public_html/cursos/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(104): PDO-> query ('SELECT count () ... ') # 1 /home/public_html/cursos/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(833): Doctrine \ DBAL \ Driver \ PDOConnection-> query (' SELECT count () ... ') # 2 /home/public_html/cursos/main/inc/lib/database.lib.php(327): Doctrine \ DBAL \ Connection-> executeQuery ("SELECT count () ...') # 3 /home/public_html/cursos/main/gradebook/lib/be/abstractlink.class.php(334): Database :: query ('SELECT count () ...') # 4 / home / MBAs in / home /public_html/cursos/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 90

note:Testing of:
https://unstable.chamilo.org/

#23

Updated by Julio Montoya about 4 years ago

You should try here unstable.chamilo.org it has the latest code from github.

#24

Updated by Tomas Rodrigues about 4 years ago

  • File survey_1.jpg added
  • File survey_2.jpg added

Testing of:
https://unstable.chamilo.org/
image attached

#25

Updated by Julio Montoya about 4 years ago

  • Status changed from Needs testing to Assigned
  • Assignee set to Julio Montoya
#26

Updated by Julio Montoya about 4 years ago

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

Should be fixed now.

#27

Updated by Tomas Rodrigues about 4 years ago

OK.
I tested in https://unstable.chamilo.org/.
It is working now.
Where can I get this changed file?
Thank you.

#28

Updated by Julio Montoya about 4 years ago

Marcelo Bassuma wrote:

OK.
I tested in https://unstable.chamilo.org/.
It is working now.
Where can I get this changed file?
Thank you.

This is the change

https://github.com/chamilo/chamilo-lms/commit/35e49cb6bd79001a1d570a6fa9dcabf05937dc32

#29

Updated by Tomas Rodrigues about 4 years ago

Hi.
I've only had 3 changed files.
Tested and approved, also in beta2.
Survey tool running smoothly now.
thanks

#30

Updated by Yannick Warnier about 4 years ago

  • Status changed from Needs testing to Bug resolved
#31

Updated by Tomas Rodrigues about 4 years ago

  • File deleted (survey_1.jpg)
#32

Updated by Tomas Rodrigues about 4 years ago

  • File deleted (survey_2.jpg)

Also available in: Atom PDF