Projekt

Allgemein

Profil

GX-Bug #69673

Von Carlotta Herrmann vor etwa 2 Jahren aktualisiert

Error Log Einträge beim Erstellen einer Rechnung, wenn das Verzeichnis /PDFCreator/images/ fehlt 

 Kann wie folgt reproduziert werden: 

 1. Shopversion 4.5.2.2 installieren mit PDFCreator 
 2. Eine Testbestellung durchführen 
 3. Im Gambio Admin unter Bestellungen eine Rechnung für die Bestellung erstellen 
 4. Im Log unter "error_handler" wird ein Eintrag erzeugt 

 Erwartetes Ergebnis: 
 Beim Erstellen einer Rechnung sollte kein Eintrag im Error-Log erfolgen 

 Tatsächliches Ergebnis: 
 Es wird jedes Mal wenn eine Rechnung erstellt wird ein Error-Log Eintrag erzeugt, dass ein Verzeichnis nicht gelesen werden konnte 

 (siehe Kommentare) 

 -------------- 

 Error log entries when creating an invoice when the /PDFCreator/images/ directory is missing. 

 Can be reproduced as follows: 

 1. install store version 4.5.2.2 with PDFCreator 
 2. make a test order 
 3. create an invoice for the order in the Gambio Admin under orders 
 4. an entry is created in the log under "error_handler". 

 Expected result: 
 When creating an invoice, there should be no entry in the error log 

 Actual result: 
 An error log entry is created every time an invoice is created that a directory could not be read. 

 (see comment section) 

 ---------- 

 WARNING: file_exists(): open_basedir restriction in effect. File(/usr/local/apache2/htdocs/tcpdf/images/) is not within the allowed path(s): (/:/tmp/) 

 ``` php 
 │   	 $tcpdf_images_dirs = array(K_PATH_MAIN.'examples/images/', K_PATH_MAIN.'images/', '/usr/share/doc/php-tcpdf/examples/images/', '/usr/share/doc/tcpdf/examples/images/', '/usr/share/doc/php/tcpdf/examples/images/', '/var/www/tcpdf/images/', '/var/www/html/tcpdf/images/', '/usr/local/apache2/htdocs/tcpdf/images/', K_PATH_MAIN); 
 │   	 foreach ($tcpdf_images_dirs as $tcpdf_images_path) { 
 ├─  		 if (@file_exists($tcpdf_images_path)) { 
 │   			 define ('K_PATH_IMAGES', $tcpdf_images_path); 
 │   			 break; 

 ``` 

Zurück