Error on Date Field component in mode Range, PHPRad version 2.7.1 April 02, 2020, 02:59:35 PM Hi, friends from PHPRad!Can you help us on this issue?After setup of a Date Field component with mode Range, we have tested a date interval and received the following error message:Notice: Undefined offset: 1 in C:\xampp\htdocs\mysilo\app\controllers\AvaliacoesController.php on line 101Thanks!Euder Ribeiro Quote Selected
Re: Error on Date Field component in mode Range, PHPRad version 2.7.1 Reply #1 – April 02, 2020, 03:39:12 PM @Euder please provide a screenshot of your configuration. Quote Selected
Re: Error on Date Field component in mode Range, PHPRad version 2.7.1 Reply #2 – April 02, 2020, 07:15:34 PM @Wilvin , I´ve added the files at the bottom. Quote Selected
Re: Error on Date Field component in mode Range, PHPRad version 2.7.1 Reply #3 – April 02, 2020, 08:46:40 PM @Euder from my end the configurations works fine with no error, please provide a screenshot of this file C:\xampp\htdocs\mysilo\app\controllers\AvaliacoesController.php showing line 101 Quote Selected
Re: Error on Date Field component in mode Range, PHPRad version 2.7.1 Reply #4 – April 03, 2020, 11:31:15 AM @Wilvin, good morning!Done. Quote Selected
Re: Error on Date Field component in mode Range, PHPRad version 2.7.1 Reply #5 – April 03, 2020, 10:59:53 PM @Euder the issue is with your app language if you check the screenshot you sent, you'll see that phprad uses the "to" keyword to split the two dates selected into an array and yours is "até", because of this the end date is not gotten. if you check the link generated, when you click on the date filter you will see the word am talking about. In the meantime, the solution is to edit the file manually and replacing the "to" with "até" C:\xampp\htdocs\mysilo\app\controllers\AvaliacoesController.php on line 99. Quote Selected Last Edit: April 03, 2020, 11:06:11 PM by willvin 1 Likes
Re: Error on Date Field component in mode Range, PHPRad version 2.7.1 Reply #6 – April 06, 2020, 02:27:51 PM Regarding language, I´ve some corrections and, if it´s possible, I would like to help you. Quote Selected
Re: Error on Date Field component in mode Range, PHPRad version 2.7.1 Reply #7 – April 06, 2020, 02:53:52 PM Hi @Wilvin, Now that I´ve corrected manualy the file, we have a new issue (see screenshot): The criteria o top of the list is incorrect. I was revising other aplications made with the previous version of PHPRad and they worked fine in Portuguese and date ranges. Quote Selected
Re: Error on Date Field component in mode Range, PHPRad version 2.7.1 Reply #8 – April 06, 2020, 03:07:57 PM @Euder the error is that the date it is trying to display is wrong. Quote Selected
Re: Error on Date Field component in mode Range, PHPRad version 2.7.1 Reply #9 – April 06, 2020, 05:02:43 PM Nope, the date range is correct. It is after the filter apply. The list is matching the date range but the criteria is wrong. Quote Selected
Re: Error on Date Field component in mode Range, PHPRad version 2.7.1 Reply #10 – April 07, 2020, 05:28:26 PM ok Quote Selected