Hi Everyone,
I am having this error that I could not solve myself. So, I need communities' help on it.
See, in `incident` table of error-reporting-server I added a new boolean field named `exception_type` to differentiate between js & php incidents (values meaning: 0:js, 1:php). I have attached the SQL file for the new database with this email.
Now, in generating the new schema I am getting following error. Kindly look at the attached image for full screenshot.
ERROR:
PHP Parse error: syntax error, unexpected '[' in /var/www/error-reporting-server/app/Model/Report.php on line 310 Parse error: syntax error, unexpected '[' in /var/www/error-reporting-server/app/Model/Report.php on line 310 Fatal Error Error: syntax error, unexpected '[' in [/var/www/error-reporting-server/app/Model/Report.php, line 310]
The error is in `Report::_findArrayList()` function. I could not find where that function is used. I also observed that this same error is occurring even without the new field `exception_type`.
This error can be regenerated by running following command for schema generation (with or without new field `incidents`.`exception_type`).
app/Console/cake schema generate
Also I have programmed the part where server accepts the bug-report submitted by PMA. Have a look at commit-0fabc21 [0]. I have commented on the line where I think the error is coming. It works fine in case a `closestReport` is found. But in case of adding a new `report` it shows this exact same error.
Please help me solve this error.
[0]: https://github.com/dhananjay92/error-reporting-server/commit/0fabc21
Regards, Dhananjay Nakrani.
Hi
Dne Thu, 29 May 2014 10:50:01 +0530 Dhananjay Nakrani dhananjaynakrani@gmail.com napsal(a):
ERROR:
PHP Parse error: syntax error, unexpected '[' in /var/www/error-reporting-server/app/Model/Report.php on line 310 Parse error: syntax error, unexpected '[' in /var/www/error-reporting-server/app/Model/Report.php on line 310 Fatal Error Error: syntax error, unexpected '[' in [/var/www/error-reporting-server/app/Model/Report.php, line 310]
I guess you're running PHP 5.3, which does not seem to support this syntax, please upgrade at least to 5.4 as there are more features of PHP 5.4 used in the server.
The error is in `Report::_findArrayList()` function. I could not find where that function is used.
Have you read the documentation for it? It says "custom find function that handles find('arrayList')", which is used in app/Test/Case/Model/ReportTest.php:
Hi,
On Thu, May 29, 2014 at 12:29 PM, Michal Čihař michal@cihar.com wrote:
Hi
Dne Thu, 29 May 2014 10:50:01 +0530 Dhananjay Nakrani dhananjaynakrani@gmail.com napsal(a):
ERROR:
PHP Parse error: syntax error, unexpected '[' in /var/www/error-reporting-server/app/Model/Report.php on line 310 Parse error: syntax error, unexpected '[' in /var/www/error-reporting-server/app/Model/Report.php on line 310 Fatal Error Error: syntax error, unexpected '[' in [/var/www/error-reporting-server/app/Model/Report.php, line 310]
I guess you're running PHP 5.3, which does not seem to support this syntax, please upgrade at least to 5.4 as there are more features of PHP 5.4 used in the server.
Yes, that was the problem. I updated php and not it works fine. I think we
should add a requirement section in README. I've already created a pull for that. Kindly see it.
The error is in `Report::_findArrayList()` function. I could not find
where
that function is used.
Have you read the documentation for it? It says "custom find function that handles find('arrayList')", which is used in app/Test/Case/Model/ReportTest.php:
I did read it, but I was unsure what find('arrayList') was. Now I
understand that it is part of cakePHP core.
--
Michal Čihař | http://cihar.com | http://blog.cihar.com
Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel