Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP message: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /app/bbuddy/index.php on line 498 #250

Open
reskes opened this issue Jul 26, 2024 · 2 comments

Comments

@reskes
Copy link

reskes commented Jul 26, 2024

Hi,

I'm getting the error above with the latest barcodebuddy version.

The web interface is inaccessible due to the error.

After some debugging I've found the underlying problem.
It is caused by the logs / "Processed Barcodes"-Section, when the amount of log lines are very high.
For some reason I've got 50k+ entries in my logs.

My fix was that I limited the amount of log lines displayed. For example only the last 50 entries.

my new index.php, lines 498-501:

$logs = array_splice($logs, 0, 50);

foreach ($logs as $log) {

$html->addHtml($log . "<br>");

}

@Forceu
Copy link
Owner

Forceu commented Jul 26, 2024

Thanks for the feedback! Out of interest, how did you end up with 50k+ entries?

@reskes
Copy link
Author

reskes commented Jul 26, 2024

Better not ask 😆
My Barcodebuddy instance seems to lose the connection to Grocy very frequently. And that mainly generates those lines.
Need to investigate more when I got some spare time for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants