Xampp 7.0.3 PHP errors / Apache issue

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Xampp 7.0.3 PHP errors / Apache issue

Postby rowanma » 03. May 2016 07:10

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.
rowanma
 
Posts: 2
Joined: 03. May 2016 06:57
XAMPP version: 7
Operating System: Windows Server 2008 R2

Re: Xampp 7.0.3 PHP errors / Apache issue

Postby Nobbie » 03. May 2016 11:08

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.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Xampp 7.0.3 PHP errors / Apache issue

Postby rowanma » 04. May 2016 03:10

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?
rowanma
 
Posts: 2
Joined: 03. May 2016 06:57
XAMPP version: 7
Operating System: Windows Server 2008 R2

Re: Xampp 7.0.3 PHP errors / Apache issue

Postby Altrea » 04. May 2016 06:54

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?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Xampp 7.0.3 PHP errors / Apache issue

Postby Nobbie » 04. May 2016 10:39

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.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Xampp 7.0.3 PHP errors / Apache issue

Postby tbyte » 27. April 2017 11:00

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
tbyte
 
Posts: 1
Joined: 27. April 2017 10:48
XAMPP version: 7.1.1 / PHP 7.1.1
Operating System: Win7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 151 guests