Open lorrisbaum opened 5 years ago
Please check at error logs of codeigniter and check in development mode
On Mon, 1 Jul 2019, 2:42 pm lorrisbaum, notifications@github.com wrote:
Hi,
I have a bug when I try to attempt a quizz (index.php/quiz/quiz_detail/8). When I click on the green button "Start Quiz" I have a blank page (/index.php/quiz/validate_quiz/8 redirect to /index.php/quiz/quiz_detail/). Do you have an idea? What should I do ?
Thanks for your help !! :) :)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/savsofts/savsoftquiz_v5/issues/1?email_source=notifications&email_token=AEO6MLGLWHFDLDDRFRQSEXLP5HDBNA5CNFSM4H4QK7EKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G4SX3WQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AEO6MLCHRQIZBXP7KAXZCFTP5HDBNANCNFSM4H4QK7EA .
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
ERROR - 2019-07-01 13:31:44 --> Query error: Field 'end_time' doesn't have a default value - Invalid query: INSERT INTO savsoft_result
(quid
, uid
, r_qids
, categories
, category_range
, start_time
, individual_time
, score_individual
, attempted_ip
) VALUES ('8', '12', '79,80,81', 'General knowledge,Math', '2,1', 1561968104, '0,0,0', '0,0,0', '10.196.234.1')
ERROR - 2019-07-01 13:31:45 --> Severity: Warning --> Division by zero /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php 746
ERROR - 2019-07-01 13:31:45 --> Query error: Unknown column 'NAN' in 'field list' - Invalid query: UPDATE savsoft_result
SET total_time
= 0, end_time
= 1561968105, score_obtained
= 0, percentage_obtained
= NAN, manual_valuation
= 0, result_status
= 'Pass'
WHERE rid
= 0
ERROR - 2019-07-01 13:31:46 --> Severity: error --> Exception: Too few arguments to function Quiz::quiz_detail(), 0 passed in /data/www/ofm-pprod.si/html/www/opfibre/system/core/CodeIgniter.php on line 532 and exactly 1 expected /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php 452
ERROR - 2019-07-01 13:37:52 --> Query error: Field 'end_time' doesn't have a default value - Invalid query: INSERT INTO savsoft_result
(quid
, uid
, r_qids
, categories
, category_range
, start_time
, individual_time
, score_individual
, attempted_ip
) VALUES ('8', '12', '79,80,81', 'General knowledge,Math', '2,1', 1561968472, '0,0,0', '0,0,0', '10.196.234.3')
ERROR - 2019-07-01 13:37:52 --> Severity: Warning --> Division by zero /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php 746
ERROR - 2019-07-01 13:37:52 --> Query error: Unknown column 'NAN' in 'field list' - Invalid query: UPDATE savsoft_result
SET total_time
= 0, end_time
= 1561968472, score_obtained
= 0, percentage_obtained
= NAN, manual_valuation
= 0, result_status
= 'Pass'
WHERE rid
= 0
ERROR - 2019-07-01 13:37:53 --> Severity: error --> Exception: Too few arguments to function Quiz::quiz_detail(), 0 passed in /data/www/ofm-pprod.si/html/www/opfibre/system/core/CodeIgniter.php on line 532 and exactly 1 expected /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php 452
ERROR - 2019-07-01 13:51:10 --> Query error: Field 'end_time' doesn't have a default value - Invalid query: INSERT INTO savsoft_result
(quid
, uid
, r_qids
, categories
, category_range
, start_time
, individual_time
, score_individual
, attempted_ip
) VALUES ('8', '5', '79,80,81', 'General knowledge,Math', '2,1', 1561969270, '0,0,0', '0,0,0', '10.196.234.1')
ERROR - 2019-07-01 13:51:10 --> Severity: Warning --> Division by zero /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php 746
ERROR - 2019-07-01 13:51:10 --> Query error: Unknown column 'NAN' in 'field list' - Invalid query: UPDATE savsoft_result
SET total_time
= 0, end_time
= 1561969270, score_obtained
= 0, percentage_obtained
= NAN, manual_valuation
= 0, result_status
= 'Pass'
WHERE rid
= 0
ERROR - 2019-07-01 13:51:10 --> Severity: error --> Exception: Too few arguments to function Quiz::quiz_detail(), 0 passed in /data/www/ofm-pprod.si/html/www/opfibre/system/core/CodeIgniter.php on line 532 and exactly 1 expected /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php 452
ERROR - 2019-07-01 13:51:38 --> Query error: Field 'end_time' doesn't have a default value - Invalid query: INSERT INTO savsoft_result
(quid
, uid
, r_qids
, categories
, category_range
, start_time
, individual_time
, score_individual
, attempted_ip
) VALUES ('8', '5', '79,80,81', 'General knowledge,Math', '2,1', 1561969298, '0,0,0', '0,0,0', '10.196.234.1')
ERROR - 2019-07-01 13:51:39 --> Severity: Warning --> Division by zero /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php 746
ERROR - 2019-07-01 13:51:39 --> Query error: Unknown column 'NAN' in 'field list' - Invalid query: UPDATE savsoft_result
SET total_time
= 0, end_time
= 1561969299, score_obtained
= 0, percentage_obtained
= NAN, manual_valuation
= 0, result_status
= 'Pass'
WHERE rid
= 0
ERROR - 2019-07-01 13:51:39 --> Severity: error --> Exception: Too few arguments to function Quiz::quiz_detail(), 0 passed in /data/www/ofm-pprod.si/html/www/opfibre/system/core/CodeIgniter.php on line 532 and exactly 1 expected /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php 452
ERROR - 2019-07-01 13:51:43 --> Query error: Field 'end_time' doesn't have a default value - Invalid query: INSERT INTO savsoft_result
(quid
, uid
, r_qids
, categories
, category_range
, start_time
, individual_time
, score_individual
, attempted_ip
) VALUES ('8', '5', '79,80,81', 'General knowledge,Math', '2,1', 1561969303, '0,0,0', '0,0,0', '10.196.234.1')
ERROR - 2019-07-01 13:51:43 --> Severity: Warning --> Division by zero /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php 746
ERROR - 2019-07-01 13:51:43 --> Query error: Unknown column 'NAN' in 'field list' - Invalid query: UPDATE savsoft_result
SET total_time
= 0, end_time
= 1561969303, score_obtained
= 0, percentage_obtained
= NAN, manual_valuation
= 0, result_status
= 'Pass'
WHERE rid
= 0
ERROR - 2019-07-01 13:51:43 --> Severity: error --> Exception: Too few arguments to function Quiz::quiz_detail(), 0 passed in /data/www/ofm-pprod.si/html/www/opfibre/system/core/CodeIgniter.php on line 532 and exactly 1 expected /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php 452
ERROR - 2019-07-01 13:52:03 --> Query error: Field 'end_time' doesn't have a default value - Invalid query: INSERT INTO savsoft_result
(quid
, uid
, r_qids
, categories
, category_range
, start_time
, individual_time
, score_individual
, attempted_ip
) VALUES ('8', '5', '79,80,81', 'General knowledge,Math', '2,1', 1561969323, '0,0,0', '0,0,0', '10.196.234.3')
ERROR - 2019-07-01 13:52:03 --> Severity: Warning --> Division by zero /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php 746
ERROR - 2019-07-01 13:52:03 --> Query error: Unknown column 'NAN' in 'field list' - Invalid query: UPDATE savsoft_result
SET total_time
= 0, end_time
= 1561969323, score_obtained
= 0, percentage_obtained
= NAN, manual_valuation
= 0, result_status
= 'Pass'
WHERE rid
= 0
ERROR - 2019-07-01 13:52:03 --> Severity: error --> Exception: Too few arguments to function Quiz::quiz_detail(), 0 passed in /data/www/ofm-pprod.si/html/www/opfibre/system/core/CodeIgniter.php on line 532 and exactly 1 expected /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php 452
ERROR - 2019-07-01 13:52:08 --> Query error: Field 'end_time' doesn't have a default value - Invalid query: INSERT INTO savsoft_result
(quid
, uid
, r_qids
, categories
, category_range
, start_time
, individual_time
, score_individual
, attempted_ip
) VALUES ('8', '5', '79,80,81', 'General knowledge,Math', '2,1', 1561969328, '0,0,0', '0,0,0', '10.196.234.1')
ERROR - 2019-07-01 13:52:08 --> Severity: Warning --> Division by zero /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php 746
ERROR - 2019-07-01 13:52:08 --> Query error: Unknown column 'NAN' in 'field list' - Invalid query: UPDATE savsoft_result
SET total_time
= 0, end_time
= 1561969328, score_obtained
= 0, percentage_obtained
= NAN, manual_valuation
= 0, result_status
= 'Pass'
WHERE rid
= 0
ERROR - 2019-07-01 13:52:08 --> Severity: error --> Exception: Too few arguments to function Quiz::quiz_detail(), 0 passed in /data/www/ofm-pprod.si/html/www/opfibre/system/core/CodeIgniter.php on line 532 and exactly 1 expected /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php 452
ERROR - 2019-07-01 13:53:04 --> Query error: Field 'end_time' doesn't have a default value - Invalid query: INSERT INTO savsoft_result
(quid
, uid
, r_qids
, categories
, category_range
, start_time
, individual_time
, score_individual
, attempted_ip
) VALUES ('6', '5', '81,79', 'Math,General knowledge', '1,1', 1561969384, '0,0', '0,0', '10.196.234.3')
ERROR - 2019-07-01 13:53:04 --> Severity: Warning --> Division by zero /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php 746
ERROR - 2019-07-01 13:53:04 --> Query error: Unknown column 'NAN' in 'field list' - Invalid query: UPDATE savsoft_result
SET total_time
= 0, end_time
= 1561969384, score_obtained
= 0, percentage_obtained
= NAN, manual_valuation
= 0, result_status
= 'Pass'
WHERE rid
= 0
ERROR - 2019-07-01 13:53:04 --> Severity: error --> Exception: Too few arguments to function Quiz::quiz_detail(), 0 passed in /data/www/ofm-pprod.si/html/www/opfibre/system/core/CodeIgniter.php on line 532 and exactly 1 expected /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php 452
ERROR - 2019-07-01 14:15:56 --> Query error: Field 'end_time' doesn't have a default value - Invalid query: INSERT INTO savsoft_result
(quid
, uid
, r_qids
, categories
, category_range
, start_time
, individual_time
, score_individual
, attempted_ip
) VALUES ('8', '5', '79,80,81', 'General knowledge,Math', '2,1', 1561970756, '0,0,0', '0,0,0', '10.196.234.3')
ERROR - 2019-07-01 14:15:56 --> Severity: Warning --> Division by zero /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php 746
ERROR - 2019-07-01 14:15:56 --> Query error: Unknown column 'NAN' in 'field list' - Invalid query: UPDATE savsoft_result
SET total_time
= 0, end_time
= 1561970756, score_obtained
= 0, percentage_obtained
= NAN, manual_valuation
= 0, result_status
= 'Pass'
WHERE rid
= 0
ERROR - 2019-07-01 14:15:56 --> Severity: error --> Exception: Too few arguments to function Quiz::quiz_detail(), 0 passed in /data/www/ofm-pprod.si/html/www/opfibre/system/core/CodeIgniter.php on line 532 and exactly 1 expected /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php 452
ERROR - 2019-07-01 14:17:52 --> Query error: Field 'end_time' doesn't have a default value - Invalid query: INSERT INTO savsoft_result
(quid
, uid
, r_qids
, categories
, category_range
, start_time
, individual_time
, score_individual
, attempted_ip
) VALUES ('8', '5', '79,80,81', 'General knowledge,Math', '2,1', 1561970872, '0,0,0', '0,0,0', '10.196.234.3')
ERROR - 2019-07-01 14:17:52 --> Severity: Warning --> Division by zero /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php 746
ERROR - 2019-07-01 14:17:52 --> Query error: Unknown column 'NAN' in 'field list' - Invalid query: UPDATE savsoft_result
SET total_time
= 0, end_time
= 1561970872, score_obtained
= 0, percentage_obtained
= NAN, manual_valuation
= 0, result_status
= 'Pass'
WHERE rid
= 0
ERROR - 2019-07-01 14:17:52 --> Severity: error --> Exception: Too few arguments to function Quiz::quiz_detail(), 0 passed in /data/www/ofm-pprod.si/html/www/opfibre/system/core/CodeIgniter.php on line 532 and exactly 1 expected /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php 452
ERROR - 2019-07-01 14:23:31 --> Query error: Field 'end_time' doesn't have a default value - Invalid query: INSERT INTO savsoft_result
(quid
, uid
, r_qids
, categories
, category_range
, start_time
, individual_time
, score_individual
, attempted_ip
) VALUES ('8', '5', '79,80,81', 'General knowledge,Math', '2,1', 1561971211, '0,0,0', '0,0,0', '10.196.234.1')
ERROR - 2019-07-01 14:23:31 --> Severity: Warning --> Division by zero /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php 746
ERROR - 2019-07-01 14:23:31 --> Query error: Unknown column 'NAN' in 'field list' - Invalid query: UPDATE savsoft_result
SET total_time
= 0, end_time
= 1561971211, score_obtained
= 0, percentage_obtained
= NAN, manual_valuation
= 0, result_status
= 'Pass'
WHERE rid
= 0
ERROR - 2019-07-01 14:23:31 --> Severity: error --> Exception: Too few arguments to function Quiz::quiz_detail(), 0 passed in /data/www/ofm-pprod.si/html/www/opfibre/system/core/CodeIgniter.php on line 532 and exactly 1 expected /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php 452
index.php/quiz/validate_quiz/8 on dev mode :
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: models/Quiz_model.php
Line Number: 518
Backtrace:
File: /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php Line: 518 Function: _error_handler
File: /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php Line: 671 Function: insert_result
File: /data/www/ofm-pprod.si/html/www/opfibre/index.php Line: 322 Function: require_once A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 1
Filename: models/Quiz_model.php
Line Number: 518
Backtrace:
File: /data/www/ofm-pprod.si/html/www/opfibre/application/models/Quiz_model.php Line: 518 Function: _error_handler
File: /data/www/ofm-pprod.si/html/www/opfibre/application/controllers/Quiz.php Line: 671 Function: insert_result
File: /data/www/ofm-pprod.si/html/www/opfibre/index.php Line: 322 Function: require_once A Database Error Occurred
Error Number: 1364
Field 'end_time' doesn't have a default value
INSERT INTO savsoft_result
(quid
, uid
, r_qids
, categories
, category_range
, start_time
, individual_time
, score_individual
, attempted_ip
) VALUES ('8', '5', '79,80,81', 'General knowledge,Math', '2,1', 1561974280, '0,0,0', '0,0,0', '10.196.234.3')
Filename: models/Quiz_model.php
Line Number: 588
Hi,
I have a bug when I try to attempt a quizz (index.php/quiz/quiz_detail/8). When I click on the green button "Start Quiz" I have a blank page (/index.php/quiz/validate_quiz/8 redirect to /index.php/quiz/quiz_detail/). Do you have an idea? What should I do ?
Thanks for your help !! :) :)