Page 1 of 1

Xampp 7.0.3 PHP errors / Apache issue

PostPosted: 03. May 2016 07:10
by rowanma
OS: Windows 2008 R2 Sp1 64 Bit
Xampp Version: 7.0.3
PHP Version: 7

The Apache service is still running however suddenly I start getting errors such as the below from PHP roughly every 2 days.
I restart the apache service and then things go back to normal.
The apache service doesn't stop at all until manual intervention.

[02-May-2016 03:48:38 Europe/Berlin] PHP Fatal error: Class Slim\Collection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Countable::count) in C:\xampp\htdocs\vendor\slim\slim\Slim\Collection.php on line 21

I am wondering if anyone knows a cause? It is not a code issue as it never happens on my test server and every 2 days roughly seems odd.

I am enabling the server-status mod from apache to monitor it manually

Any pointers on where to look would help. I am willing to downgrade to php 5.6 if required.

Re: Xampp 7.0.3 PHP errors / Apache issue

PostPosted: 03. May 2016 11:08
by Nobbie
rowanma wrote:t is not a code issue as it never happens on my test server and every 2 days roughly seems odd.


it Is a code issue, but maybe older PHP versions did not recognize it. PHP7 seems to do a better syntax check?! If it is your code, you should be able to follow the error message and fix the code, if it is not your code, pass it back to the developer.

Re: Xampp 7.0.3 PHP errors / Apache issue

PostPosted: 04. May 2016 03:10
by rowanma
Nobbie wrote:
rowanma wrote:t is not a code issue as it never happens on my test server and every 2 days roughly seems odd.


it Is a code issue, but maybe older PHP versions did not recognize it. PHP7 seems to do a better syntax check?! If it is your code, you should be able to follow the error message and fix the code, if it is not your code, pass it back to the developer.


Any idea why it is taking 2 days for this issue to occur again and why a restart of apache service fixes it?
This doesnt seem like a code issue it is to random. If it was something like a memory leak (just an example of an issue that takes time to build up) how would i best be able to determine this?

Re: Xampp 7.0.3 PHP errors / Apache issue

PostPosted: 04. May 2016 06:54
by Altrea
rowanma wrote:[02-May-2016 03:48:38 Europe/Berlin] PHP Fatal error: Class Slim\Collection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Countable::count) in C:\xampp\htdocs\vendor\slim\slim\Slim\Collection.php on line 21

If this error only occurs every 2 days than your code is only used every 2 days. This is a static error that occurs every time this code is used. Thats a fact.

But maybe you don't meant to show us this specific error but an behaviour?

Re: Xampp 7.0.3 PHP errors / Apache issue

PostPosted: 04. May 2016 10:39
by Nobbie
rowanma wrote:Any idea why it is taking 2 days for this issue to occur again


Obviously it is not executed more often. So simple.

rowanma wrote:This doesnt seem like a code issue it is to random. If it was something like a memory leak (just an example of an issue that takes time to build up) how would i best be able to determine this?


Why did you ask here if you already know better? I tell you, it is a code issue and it is already known, i found it in Google already. Enter the error message (or parts of it) into Google, you will find this:

http://stackoverflow.com/questions/2377 ... ct-or-impl

It seems to be a typo3 installation or similar, but you dont want to tell us, I give up at this point.

Re: Xampp 7.0.3 PHP errors / Apache issue

PostPosted: 27. April 2017 11:00
by tbyte
Just to clarify: it is NOT a code issue. The behaviour is obvious:

- occurs randomly once a month or within an hour (varies) in classes that are accessed on almost every page request
- occurs only on Windows systems (same code on Linux runs fine for months)
- restarting Apache fixes it for some time
- occurs in Kernel classes in the stable branches of many popular frameworks like Symfony, Drupal, Slim

Either it's a configuration issue then xampp developers should fix that. Or (more likely) its a bug in the windows distribution of PHP 7.x .

https://stackoverflow.com/questions/42503240/intermittent-php-abstract-class-error/42832178