php Error

In diesem Forum können Fragen zum OrderSprinter gestellt werden.
Imbiss
Beiträge: 7
Registriert: Sa 20. Jun 2026, 14:58

php Error

Beitrag von Imbiss »

Hallo,

ich nutze den Ordersprinter in Version 2.9.12 und erhalte öfters folgende Meldung.

Fehler
Aufruf: php/contenhandler.php?module = queue&command = addProductListToQueue
Error: Error
Server-Antwort:

Wenn es wieder auftritt versuch ich mal ein Bild zu machen. (könnte sein, dass die obrige Ausgaben nicht 100% korrekt ist, hab leider nur ein schlechtes Bild gemacht gehabt)

Aber falls jemand in die Richtung schon eine Idee hat, was es sein könnte, wäre ich sehr dankbar.

Grüße Daniel

Das wäre der verfügbare Log bisher, vielleicht hilft dies bereits

[Sat Jun 20 02:36:51.820984 2026] [mpm_prefork:notice] [pid 785:tid 785] AH00163: Apache/2.4.66 (Debian) configured -- resuming normal operations
[Sat Jun 20 02:36:51.821033 2026] [core:notice] [pid 785:tid 785] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jun 20 13:05:36.992002 2026] [php:error] [pid 14006:tid 14006] [client 172.0.0.4:62728] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]:
General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0
/var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2
/var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265):
QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5
/var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n thrown in /var/www/html/php/commonutils.php on line 106, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 13:06:17.853634 2026] [php:error] [pid 14432:tid 14432] [client 172.0.0.4:62729] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]:
General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0
/var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2
/var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265):
QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5
/var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n thrown in /var/www/html/php/commonutils.php on line 106, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 13:06:42.472459 2026] [php:error] [pid 18265:tid 18265] [client 172.0.0.4:62735] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]:
General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0
/var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2
/var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265):
QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5
/var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n thrown in /var/www/html/php/commonutils.php on line 106, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 13:30:46.725940 2026] [mpm_prefork:notice] [pid 785:tid 785] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Jun 20 13:31:04.231050 2026] [mpm_prefork:notice] [pid 762:tid 762] AH00163: Apache/2.4.66 (Debian) configured -- resuming normal operations
[Sat Jun 20 13:31:04.242747 2026] [core:notice] [pid 762:tid 762] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jun 20 13:31:04.903762 2026] [php:error] [pid 797:tid 797] [client 172.0.0.4:63046] PHP Fatal error: Uncaught Error: Call to a member function prepare()
on null in /var/www/html/php/admin.php:860\nStack trace:\n#0 /var/www/html/php/admin.php(2156): Admin->getMessage()\n#1 /var/www/html/php/admin.php(446):
Admin->getWaiterMessage()\n#2 /var/www/html/php/contenthandler.php(72): Admin->handleCommand()\n#3 {main}\n thrown in /var/www/html/php/admin.php on line 860,
referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 13:31:04.910510 2026] [php:error] [pid 799:tid 799] [client 172.0.0.4:63068] PHP Fatal error: Uncaught Error: Call to a member function prepare()
on null in /var/www/html/php/products.php:1153\nStack trace:\n#0 /var/www/html/php/products.php(167): Products->getAllGeneralComments()\n#1
/var/www/html/php/contenthandler.php(78): Products->handleCommand()\n#2 {main}\n thrown in /var/www/html/php/products.php on line 1153, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 13:31:04.925574 2026] [php:error] [pid 800:tid 800] [client 172.0.0.4:63069] PHP Fatal error: Uncaught Error: Call to a member function prepare()
on null in /var/www/html/php/tablemap.php:181\nStack trace:\n#0 /var/www/html/php/tablemap.php(433): TableMap::getTableMapPreferences()\n#1 {main}\n thrown in
/var/www/html/php/tablemap.php on line 181, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 13:31:04.954317 2026] [php:error] [pid 801:tid 801] [client 172.0.0.4:63070] PHP Fatal error: Uncaught Error: Call to a member function prepare()
on null in /var/www/html/php/commonutils.php:422\nStack trace:\n#0 /var/www/html/php/queuecontent.php(2099): CommonUtils::getRowSqlObject()\n#1
/var/www/html/php/queuecontent.php(133): QueueContent->getJsonLongNamesOfProdsForTableNotDelivered()\n#2 /var/www/html/php/contenthandler.php(75):
QueueContent->handleCommand()\n#3 {main}\n thrown in /var/www/html/php/commonutils.php on line 422, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 13:31:04.958514 2026] [php:error] [pid 797:tid 797] [client 172.0.0.4:63071] PHP Fatal error: Uncaught Error: Call to a member function prepare()
on null in /var/www/html/php/products.php:1153\nStack trace:\n#0 /var/www/html/php/products.php(167): Products->getAllGeneralComments()\n#1
/var/www/html/php/contenthandler.php(78): Products->handleCommand()\n#2 {main}\n thrown in /var/www/html/php/products.php on line 1153, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 13:31:04.963125 2026] [php:error] [pid 799:tid 799] [client 172.0.0.4:63072] PHP Fatal error: Uncaught Error: Call to a member function prepare()
on null in /var/www/html/php/tablemap.php:181\nStack trace:\n#0 /var/www/html/php/tablemap.php(433): TableMap::getTableMapPreferences()\n#1 {main}\n
thrown in /var/www/html/php/tablemap.php on line 181, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 13:31:04.972604 2026] [php:error] [pid 800:tid 800] [client 172.0.0.4:63073] PHP Fatal error: Uncaught Error: Call to a member function prepare()
on null in /var/www/html/php/commonutils.php:422\nStack trace:\n#0 /var/www/html/php/queuecontent.php(2099): CommonUtils::getRowSqlObject()\n#1
/var/www/html/php/queuecontent.php(133): QueueContent->getJsonLongNamesOfProdsForTableNotDelivered()\n#2 /var/www/html/php/contenthandler.php(75):
QueueContent->handleCommand()\n#3 {main}\n thrown in /var/www/html/php/commonutils.php on line 422, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 13:31:05.054058 2026] [php:error] [pid 801:tid 801] [client 172.0.0.4:63074] PHP Fatal error: Uncaught Error: Call to a member function prepare()
on null in /var/www/html/php/products.php:1153\nStack trace:\n#0 /var/www/html/php/products.php(167): Products->getAllGeneralComments()\n#1
/var/www/html/php/contenthandler.php(78): Products->handleCommand()\n#2 {main}\n thrown in /var/www/html/php/products.php on line 1153, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 14:05:50.905876 2026] [php:error] [pid 905:tid 905] [client 172.0.0.4:64313] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]:
General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0
/var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2
/var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265):
QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5
/var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n thrown in /var/www/html/php/commonutils.php on line 106, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 14:06:33.552141 2026] [php:error] [pid 799:tid 799] [client 172.0.0.4:64329] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]:
General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0
/var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2
/var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265):
QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5
/var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n thrown in /var/www/html/php/commonutils.php on line 106, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 14:10:12.863943 2026] [php:error] [pid 799:tid 799] [client 172.0.0.4:64407] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]:
General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0
/var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2
/var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265):
QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5
/var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n thrown in /var/www/html/php/commonutils.php on line 106, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 14:11:20.240616 2026] [php:notice] [pid 905:tid 905] [client 127.0.0.1:42640] iconv is failing - are the character sets / locals installed?
[Sat Jun 20 14:12:45.404388 2026] [php:notice] [pid 937:tid 937] [client 127.0.0.1:53042] iconv is failing - are the character sets / locals installed?
[Sat Jun 20 14:14:48.070045 2026] [php:error] [pid 877:tid 877] [client 172.0.0.4:64482] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]:
General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0
/var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2
/var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265):
QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5
/var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n thrown in /var/www/html/php/commonutils.php on line 106, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 15:12:54.166363 2026] [php:error] [pid 905:tid 905] [client 172.0.0.4:65230] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]:
General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0
/var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2
/var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265):
QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5
/var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n thrown in /var/www/html/php/commonutils.php on line 106, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 15:13:54.084718 2026] [php:error] [pid 966:tid 966] [client 172.0.0.4:65246] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]:
General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0
/var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2
/var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265):
QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5
/var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n thrown in /var/www/html/php/commonutils.php on line 106, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 15:14:07.707311 2026] [php:error] [pid 3021:tid 3021] [client 172.0.0.4:65266] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]:
General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0
/var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2
/var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265):
QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5
/var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n thrown in /var/www/html/php/commonutils.php on line 106, referer:
http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Sat Jun 20 17:10:04.685302 2026] [php:notice] [pid 876:tid 876] [client 172.0.0.4:51080] closing perf: started:0,transactionstarted:1,cleandone:10,nextclsid
found:10,configread:15,clsinitindb:15,billidsfound:16,billsverified:18,tipscalculated:19,billsclosed:19,gotbillstotake:20,pricesum:20,prevclsfound:20,
workevaled:22,queueitemclsidclosed:24,queueitemscleaned:24,queueitemsdone:25,queueitemsdelivered:27,queueitemsclosed:29,calcnewcash:29,salescalced:30,
cashsumcalced:31,purecashsumcalced:31,cashsumssaved:31,histupdated:34,tsesigned:510,tablesoptimized:520,telemetry:562,versionchecked:575,closingcreated:7938,
referer: http://172.0.0.3/manager.html?v=2.9.12
[Sun Jun 21 00:15:22.631026 2026] [mpm_prefork:notice] [pid 762:tid 762] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jun 21 02:15:20.099555 2026] [mpm_prefork:notice] [pid 768:tid 768] AH00163: Apache/2.4.66 (Debian) configured -- resuming normal operations
[Sun Jun 21 02:15:20.108519 2026] [core:notice] [pid 768:tid 768] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jun 21 02:22:22.960390 2026] [mpm_prefork:notice] [pid 768:tid 768] AH00171: Graceful restart requested, doing restart
pichel
Administrator
Beiträge: 1494
Registriert: So 13. Sep 2015, 19:48
Wohnort: Hamburg
Kontaktdaten:

Re: php Error

Beitrag von pichel »

Hallo!

So ist es schön, die Fehlertbeschreibung und gleich das Log dazu! Auf diese Weise konnte ich das Problem sofort erkennen und kann eine Lösng anbieten ohne 1001 Rückfragen!

Die Ursache, wie man am Error-log sieht: Ich pflege eine work-Tabelle, in der ich ein paar laufende Werte zwischenspeicher und diese unter anderem für Konsistenzprüfungen verwende. Im Rahmen der GoBD war es wichtig, dass die Software sicherstellt, dass die Daten manipulationssicher gespeichert werden. Dazu hatte ich unter anderem geprüft, ob die Kassenbon-ID fortlaufend vergeben wird. In diese work-Tabelle schreibe ich aber auch viele andere Daten. Während der Rechnungsprozess über eine DB-Transaktion abgesichert ist, sind die anderen Prozesse teils nicht so abgesichert. Das kann dazu führen, dass parallele Aktionen sich gegenseitig behindern. Und genau das ist laut Log hier passiert. Ich nehme an, dass diese Dinge nur dann passieren, wenn parallel viele Mitarbeiter im System arbeiten und die Wahrscheinlichkeit für Kollisionen größer ist.

Da wir aber mittlerweile in Deutschland eine Kassensichv haben, die die Absicherung per TSE vorschreibt, ist die Relevanz meiner Checks nicht mehr so groß. Ich schlage vor, das einfach zu entschärfen durch eine kleine Änderung in der Datei commonutils.php in der Method verifyLastBillId. Statt jetzt für jede Version eine geänderte commonutils.php bereitzustellen, zeige ich, welche Änderungen dort zu machen sind (siehe Attachment).

Viel Erfolg!!

Viele Grüße,

Stefan
Dateianhänge
ChangesInCommonUtils.png
ChangesInCommonUtils.png (254.32 KiB) 660 mal betrachtet
Stefan Pichel
Entwickler der Kassensoftware OrderSprinter (http://www.ordersprinter.de)
Gast

Re: php Error

Beitrag von Gast »

Hallo Stefan,

kannst du den Code auch zum kopieren bereitstellen.
Beim abtippen kann man ja Fehler machen. 😁

Gruß
Thorsten
Imbiss
Beiträge: 7
Registriert: Sa 20. Jun 2026, 14:58

Re: php Error

Beitrag von Imbiss »

Hallo,

vorab ich bin alleine :-) Also keine Überschneidung von mehreren Geräten. Netzwerk habe ich inzwischen vollständig auf Kabel umgestellt und ohne Switch...

Ich hoffe dass ich spätestens morgen dazu kommen die Änderung durchzuführen, um es dann Testen zu können.

Danke schon mal für die Rückmeldung.

Grüße Daniel
pichel
Administrator
Beiträge: 1494
Registriert: So 13. Sep 2015, 19:48
Wohnort: Hamburg
Kontaktdaten:

Re: php Error

Beitrag von pichel »

Hallo Daniel,

im Error_log ist folgende Aussage das Entscheidende: "Record has changed since last read in table 'os_work' "

Das kommt so zustande (vereinfacht erklärt):

1. Prozess A liest einen Datensatz aus os_work.
2. Prozess B ändert denselben Datensatz.
3. Prozess A versucht nun auf Basis seiner alten Daten zu schreiben.
4. Die Datenbank erkennt, dass sich der Datensatz inzwischen geändert hat und wirft Fehler 1020.

Das nennt man einen Concurrency-/Race-Condition-Fehler.

Die Wahrscheinlichkeit für so eine Race Condition nimmt mit der Anzahl der Prozesse, die meist im gleichen Maß wie die Anzahl der aktiven Nutzer wächst, zu. Natürlich reden wir von Wahrscheinlichkeiten, d.h. es kann auch bei einem einelnen Nutzer passieren (in die Work-Tabelle werden auch regelmäßig die Ergebnisse vom Printercheck usw. eingetragen).

Wenn aber dieser Fehler häufiger auftritt, du aber stets der einzige Nutzer bist, würde ich auf ein konzeptuelles Problem tippen ("Bug"). Allerdings habe ich diesen Fehler bisher so nicht berichtet bekommen (wobei die meisten Fehlerreports leider keine error_logs enthalten).

Nun zu den Änderungen: Du musst nicht jede Zeile eintippen. Nur die mit dunkelgrüner Hintergrundfarbe markierten Zeilen sind neu, davon sind die meisten Zeilen mit // beginnend nur Kommentare, die ich zum besseren Verständnis eingefügt habe. Die hellgrünen Zeilen sind nur Einrückungen. Aber wenn es hilft, hier die Funktion als Text:

Code: Alles auswählen

	function verifyLastBillId($pdo,$nextIdToUse) {
		if ($nextIdToUse == 1) {
			return true;
		}
		if (is_null($pdo)) {
			$pdo = $this->dbutils->openDbAndReturnPdo();
		}
		$nextIdToUse = intval($nextIdToUse);

		$lastBillInc = null;
		try {
			$sql = "SELECT value,signature FROM %work% WHERE item=?";
			$stmt = $pdo->prepare($this->dbutils->resolveTablenamesInSqlString($sql));
			$stmt->execute(array("lastbillid"));
			$row =$stmt->fetchObject();
			$lastBillid = intval($row->value);
			$lastBillInc = $lastBillid+1;
		} catch (Exception $ex) {
			// there are potential parallel write accesses to work table not secured by
			// serialized transactions, so getting the billid may go wrong. This check is 
			// not that important anymore because of signature process via TSE. So just log it!
			error_log("Checking last used billid in work table went wrong: " . $ex->getMessage());
		}
		
		if (!is_null($lastBillInc) && ($lastBillInc != $nextIdToUse)) {
			return false;
		} else {
			// is id already used in bill table?
			$sql = "SELECT id FROM %bill% WHERE id=?";
			$stmt = $pdo->prepare($this->dbutils->resolveTablenamesInSqlString($sql));
			$stmt->execute(array($nextIdToUse));
			if ($stmt->rowCount() > 0) {
				return false;
			} else {
				// is there a gap or does the previous id exist?
				$sql = "SELECT id FROM %bill% WHERE id=?";
				$stmt = $pdo->prepare($this->dbutils->resolveTablenamesInSqlString($sql));
				$stmt->execute(array($nextIdToUse - 1));
				if ($stmt->rowCount() != 1) {
					return false;
				} else {
					return true;
				}
			}
		}
	}
Gruß,

Stefan
Stefan Pichel
Entwickler der Kassensoftware OrderSprinter (http://www.ordersprinter.de)
Imbiss
Beiträge: 7
Registriert: Sa 20. Jun 2026, 14:58

Re: php Error

Beitrag von Imbiss »

Hallo,

leider das selbe Problem, eher sogar noch öfters. Code in der commonutils.php habe ich nach den Vorgaben geändert.

Code: Alles auswählen

[Wed Jun 24 00:08:09.460527 2026] [mpm_prefork:notice] [pid 799:tid 799] AH00163: Apache/2.4.66 (Debian) configured -- resuming normal operations
[Wed Jun 24 00:08:09.460563 2026] [core:notice] [pid 799:tid 799] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 24 00:15:00.814457 2026] [mpm_prefork:notice] [pid 799:tid 799] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Jun 24 02:15:20.501797 2026] [mpm_prefork:notice] [pid 794:tid 794] AH00163: Apache/2.4.66 (Debian) configured -- resuming normal operations
[Wed Jun 24 02:15:20.502863 2026] [core:notice] [pid 794:tid 794] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 24 02:15:23.510021 2026] [php:error] [pid 810:tid 810] [client 127.0.0.1:58376] PHP Fatal error:  Uncaught Error: Call to a member function prepare() on null in /var/www/html/php/commonutils.php:568\nStack trace:\n#0 /var/www/html/php/commonutils.php(579): CommonUtils::getTableValue()\n#1 /var/www/html/php/printqueue.php(780): CommonUtils::getConfigValue()\n#2 /var/www/html/php/printqueue.php(122): PrintQueue->getReceiptConfig()\n#3 /var/www/html/php/contenthandler.php(93): PrintQueue->handleCommand()\n#4 {main}\n  thrown in /var/www/html/php/commonutils.php on line 568
[Wed Jun 24 02:15:23.531054 2026] [php:error] [pid 811:tid 811] [client 127.0.0.1:58390] PHP Fatal error:  Uncaught Error: Call to a member function prepare() on null in /var/www/html/php/commonutils.php:568\nStack trace:\n#0 /var/www/html/php/commonutils.php(579): CommonUtils::getTableValue()\n#1 /var/www/html/php/printqueue.php(780): CommonUtils::getConfigValue()\n#2 /var/www/html/php/printqueue.php(122): PrintQueue->getReceiptConfig()\n#3 /var/www/html/php/contenthandler.php(93): PrintQueue->handleCommand()\n#4 {main}\n  thrown in /var/www/html/php/commonutils.php on line 568
[Wed Jun 24 10:33:51.681057 2026] [php:warn] [pid 823:tid 823] [client 172.0.0.246:60418] PHP Warning:  Undefined array key "arg" in /var/www/html/php/utilities/osqrcode.php on line 46, referer: http://172.0.0.3/preferences.html?v=2.9.12
[Wed Jun 24 10:46:17.508153 2026] [php:notice] [pid 14893:tid 14893] [client 172.0.0.4:58492] Checking last used billid in work table went wrong: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:46:17.525109 2026] [php:error] [pid 14893:tid 14893] [client 172.0.0.4:58492] PHP Fatal error:  Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`ordersprinter`.`os_billproducts`, CONSTRAINT `os_billproducts_ibfk_1` FOREIGN KEY (`queueid`) REFERENCES `os_queue` (`id`)) in /var/www/html/php/queuecontent.php:2803\nStack trace:\n#0 /var/www/html/php/queuecontent.php(2803): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#2 /var/www/html/php/queuecontent.php(1265): QueueContent->addProductListToQueueCore()\n#3 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#4 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#5 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 2803, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:46:28.463925 2026] [php:notice] [pid 14453:tid 14453] [client 172.0.0.4:58498] Checking last used billid in work table went wrong: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:46:28.479914 2026] [php:error] [pid 14453:tid 14453] [client 172.0.0.4:58498] PHP Fatal error:  Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`ordersprinter`.`os_billproducts`, CONSTRAINT `os_billproducts_ibfk_1` FOREIGN KEY (`queueid`) REFERENCES `os_queue` (`id`)) in /var/www/html/php/queuecontent.php:2803\nStack trace:\n#0 /var/www/html/php/queuecontent.php(2803): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#2 /var/www/html/php/queuecontent.php(1265): QueueContent->addProductListToQueueCore()\n#3 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#4 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#5 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 2803, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:47:25.795362 2026] [php:notice] [pid 14436:tid 14436] [client 172.0.0.4:58513] Checking last used billid in work table went wrong: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:47:25.808945 2026] [php:error] [pid 14436:tid 14436] [client 172.0.0.4:58513] PHP Fatal error:  Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`ordersprinter`.`os_billproducts`, CONSTRAINT `os_billproducts_ibfk_1` FOREIGN KEY (`queueid`) REFERENCES `os_queue` (`id`)) in /var/www/html/php/queuecontent.php:2803\nStack trace:\n#0 /var/www/html/php/queuecontent.php(2803): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#2 /var/www/html/php/queuecontent.php(1265): QueueContent->addProductListToQueueCore()\n#3 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#4 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#5 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 2803, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:48:25.271191 2026] [php:notice] [pid 14816:tid 14816] [client 172.0.0.4:58529] Checking last used billid in work table went wrong: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:48:25.284149 2026] [php:error] [pid 14816:tid 14816] [client 172.0.0.4:58529] PHP Fatal error:  Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`ordersprinter`.`os_billproducts`, CONSTRAINT `os_billproducts_ibfk_1` FOREIGN KEY (`queueid`) REFERENCES `os_queue` (`id`)) in /var/www/html/php/queuecontent.php:2803\nStack trace:\n#0 /var/www/html/php/queuecontent.php(2803): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#2 /var/www/html/php/queuecontent.php(1265): QueueContent->addProductListToQueueCore()\n#3 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#4 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#5 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 2803, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:49:58.398404 2026] [php:notice] [pid 14453:tid 14453] [client 172.0.0.4:58547] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:49:58.402730 2026] [php:error] [pid 14453:tid 14453] [client 172.0.0.4:58547] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:50:09.062217 2026] [php:notice] [pid 15327:tid 15327] [client 172.0.0.4:58562] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:50:09.068597 2026] [php:error] [pid 15327:tid 15327] [client 172.0.0.4:58562] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:50:10.878703 2026] [php:notice] [pid 816:tid 816] [client 172.0.0.4:58564] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:50:10.884713 2026] [php:error] [pid 816:tid 816] [client 172.0.0.4:58564] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:50:16.052985 2026] [php:notice] [pid 15212:tid 15212] [client 172.0.0.4:58561] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:50:16.058529 2026] [php:error] [pid 15212:tid 15212] [client 172.0.0.4:58561] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:50:17.052942 2026] [php:notice] [pid 14627:tid 14627] [client 172.0.0.4:58566] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:50:17.057406 2026] [php:error] [pid 14627:tid 14627] [client 172.0.0.4:58566] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:50:19.552075 2026] [php:notice] [pid 14436:tid 14436] [client 172.0.0.4:58568] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:50:19.559326 2026] [php:error] [pid 14436:tid 14436] [client 172.0.0.4:58568] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:53:35.156354 2026] [php:notice] [pid 15212:tid 15212] [client 172.0.0.4:58621] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:53:35.162378 2026] [php:error] [pid 15212:tid 15212] [client 172.0.0.4:58621] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:54:00.326932 2026] [php:notice] [pid 14436:tid 14436] [client 172.0.0.4:58641] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:54:00.333117 2026] [php:error] [pid 14436:tid 14436] [client 172.0.0.4:58641] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:54:02.212481 2026] [php:notice] [pid 810:tid 810] [client 172.0.0.4:58654] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:54:02.219886 2026] [php:error] [pid 810:tid 810] [client 172.0.0.4:58654] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:54:04.123602 2026] [php:notice] [pid 816:tid 816] [client 172.0.0.4:58656] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:54:04.128145 2026] [php:error] [pid 816:tid 816] [client 172.0.0.4:58656] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:54:07.463908 2026] [php:notice] [pid 14810:tid 14810] [client 172.0.0.4:58655] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:54:07.471118 2026] [php:error] [pid 14810:tid 14810] [client 172.0.0.4:58655] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:54:08.466485 2026] [php:notice] [pid 15464:tid 15464] [client 172.0.0.4:58657] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:54:08.473717 2026] [php:error] [pid 15464:tid 15464] [client 172.0.0.4:58657] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:54:09.486195 2026] [php:notice] [pid 14847:tid 14847] [client 172.0.0.4:58658] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 10:54:09.494041 2026] [php:error] [pid 14847:tid 14847] [client 172.0.0.4:58658] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Wed Jun 24 11:02:45.825900 2026] [php:warn] [pid 15716:tid 15716] [client 172.0.0.246:64798] PHP Warning:  Undefined array key "arg" in /var/www/html/php/utilities/osqrcode.php on line 46, referer: http://172.0.0.3/preferences.html?v=2.9.12
Zuletzt geändert von Imbiss am Mi 24. Jun 2026, 11:38, insgesamt 1-mal geändert.
pichel
Administrator
Beiträge: 1494
Registriert: So 13. Sep 2015, 19:48
Wohnort: Hamburg
Kontaktdaten:

Re: php Error

Beitrag von pichel »

Hi,

aber das ist doch jetzt eine ganz andere fehlermeldung. diese fehlermeldung beschreibt, dass der Zugriff auf die Datenbank nicht funktioniert.

magst du mir mal deine telefonnummer per PN schicken?

Gruß,

Stefan
Stefan Pichel
Entwickler der Kassensoftware OrderSprinter (http://www.ordersprinter.de)
Imbiss
Beiträge: 7
Registriert: Sa 20. Jun 2026, 14:58

Re: php Error

Beitrag von Imbiss »

Das würde ich gern...

Leider bist du nicht berechtigt, diese Funktion zu nutzen. Du hast dich vermutlich erst vor kurzem registriert und musst dich noch mehr an Diskussionen im Board beteiligen, damit du diese Funktion nutzen kannst.

Grüße Daniel
pichel
Administrator
Beiträge: 1494
Registriert: So 13. Sep 2015, 19:48
Wohnort: Hamburg
Kontaktdaten:

Re: php Error

Beitrag von pichel »

dann gibt es da wahrscheinlich irgendwo eine Einstellung, die ich nicht kenne oder übersehen habe. vielleicht kannst Du mir an s.pichel@ordersprinter.de schreiben
Stefan Pichel
Entwickler der Kassensoftware OrderSprinter (http://www.ordersprinter.de)
Imbiss
Beiträge: 7
Registriert: Sa 20. Jun 2026, 14:58

Re: php Error

Beitrag von Imbiss »

Hey ho,

so weiter gehts. Habe ein Backup eingespielt, welches nach der Installation erstellt wurde. Habe lediglich Artikel angelegt, so dass ich es für mich nutzen kann. Und hatte trotzdem weiterhin den Fehler. Die Änderung in der Commonutils.php habe ich mit dem Einspielen des Backups noch nicht geändert...also alles noch im "Urzustand"

Code: Alles auswählen

root@kasse:/var/log/apache2# cat error.log
[Fri Jun 26 00:10:19.393585 2026] [mpm_prefork:notice] [pid 770:tid 770] AH00163: Apache/2.4.66 (Debian) configured -- resuming normal operations
[Fri Jun 26 00:10:19.393635 2026] [core:notice] [pid 770:tid 770] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jun 26 00:15:11.857946 2026] [mpm_prefork:notice] [pid 770:tid 770] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 26 02:15:20.073265 2026] [mpm_prefork:notice] [pid 791:tid 791] AH00163: Apache/2.4.66 (Debian) configured -- resuming normal operations
[Fri Jun 26 02:15:20.073959 2026] [core:notice] [pid 791:tid 791] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jun 26 10:00:35.624144 2026] [php:notice] [pid 900:tid 900] [client 172.0.0.4:60945] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiter.html?v=2.9.12
[Fri Jun 26 10:00:35.629381 2026] [php:error] [pid 900:tid 900] [client 172.0.0.4:60945] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiter.html?v=2.9.12
[Fri Jun 26 10:00:49.420970 2026] [php:notice] [pid 13616:tid 13616] [client 172.0.0.4:60950] Error in creation of cancel print job: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work', referer: http://172.0.0.3/waiter.html?v=2.9.12
[Fri Jun 26 10:00:49.429271 2026] [php:error] [pid 13616:tid 13616] [client 172.0.0.4:60950] PHP Fatal error:  Uncaught PDOException: There is no active transaction in /var/www/html/php/queuecontent.php:1989\nStack trace:\n#0 /var/www/html/php/queuecontent.php(1989): PDO->commit()\n#1 /var/www/html/php/queuecontent.php(141): QueueContent->removeProductFromQueue()\n#2 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#3 {main}\n  thrown in /var/www/html/php/queuecontent.php on line 1989, referer: http://172.0.0.3/waiter.html?v=2.9.12
[Fri Jun 26 10:58:21.878090 2026] [php:error] [pid 14750:tid 14750] [client 172.0.0.4:62048] PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0 /var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2 /var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265): QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n  thrown in /var/www/html/php/commonutils.php on line 106, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Fri Jun 26 10:59:26.906666 2026] [php:error] [pid 15340:tid 15340] [client 172.0.0.4:62058] PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0 /var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2 /var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265): QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n  thrown in /var/www/html/php/commonutils.php on line 106, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Fri Jun 26 11:00:46.922390 2026] [php:error] [pid 14759:tid 14759] [client 172.0.0.4:62105] PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0 /var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2 /var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265): QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n  thrown in /var/www/html/php/commonutils.php on line 106, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Fri Jun 26 11:35:49.781403 2026] [php:error] [pid 16720:tid 16720] [client 172.0.0.4:63124] PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0 /var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2 /var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265): QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n  thrown in /var/www/html/php/commonutils.php on line 106, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Fri Jun 26 11:36:11.598554 2026] [php:error] [pid 16450:tid 16450] [client 172.0.0.4:63129] PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0 /var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2 /var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265): QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n  thrown in /var/www/html/php/commonutils.php on line 106, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Fri Jun 26 11:36:32.389633 2026] [php:error] [pid 16721:tid 16721] [client 172.0.0.4:63144] PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0 /var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2 /var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265): QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n  thrown in /var/www/html/php/commonutils.php on line 106, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Fri Jun 26 11:38:49.065936 2026] [php:error] [pid 16692:tid 16692] [client 172.0.0.4:63191] PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0 /var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2 /var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265): QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n  thrown in /var/www/html/php/commonutils.php on line 106, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
[Fri Jun 26 11:39:06.820758 2026] [php:error] [pid 16451:tid 16451] [client 172.0.0.4:63210] PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'os_work' in /var/www/html/php/commonutils.php:106\nStack trace:\n#0 /var/www/html/php/commonutils.php(106): PDOStatement->execute()\n#1 /var/www/html/php/queuecontent.php(2735): CommonUtils->verifyLastBillId()\n#2 /var/www/html/php/queuecontent.php(1644): QueueContent->declarePaidCreateBillReturnBillId()\n#3 /var/www/html/php/queuecontent.php(1265): QueueContent->addProductListToQueueCore()\n#4 /var/www/html/php/queuecontent.php(91): QueueContent->addProductListToQueue()\n#5 /var/www/html/php/contenthandler.php(75): QueueContent->handleCommand()\n#6 {main}\n  thrown in /var/www/html/php/commonutils.php on line 106, referer: http://172.0.0.3/waiterdesktop.php?v=2.9.12
Antworten