Modify ↓
Opened 10 years ago
Closed 10 years ago
#724 closed Bug/Fehler (fixed)
Probleme bei Einbindung der application_top_export.php
| Reported by: | Torsten Riemer | Owned by: | Gerhard Waldemair |
|---|---|---|---|
| Priority: | hoch | Milestone: | modified-shop-2.0.0.0 |
| Component: | Shop | Version: | 2.0.0.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Durch Zufall ist mir ein Problem bei der Einbindung der "application_top_export.php" aufgefallen.
Im Demoshop 2.00 kann man das Problem hier nachvollziehen: http://demo.modified-shop.org/tags/modified-2.00/export/cao_xtc.php
Inhalt der Log-Dateien:
E_ERROR:
[06-12-2015 11:13:41] E_ERROR : LoggingManager: Call to undefined function xtc_href_link() in File: /templates/tpl_modified/config/config.php on Line: 61
E_USER_WARNING:
[06-12-2015 11:13:41] E_USER_WARNING : LoggingManager: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'PRODUCTS_CONDITIONS_P' at line 11<br/><br/>SELECT p.products_id
FROM products p
JOIN products_description pd
ON p.products_id = pd.products_id
AND trim(pd.products_name) != ''
AND pd.language_id = 0
JOIN specials s
ON p.products_id = s.products_id
AND s.status = '1'
WHERE p.products_status = '1'
PRODUCTS_CONDITIONS_P in File: /inc/db_functions_mysqli.inc.php on Line: 152
[06-12-2015 11:13:41] E_USER_WARNING : LoggingManager: Backtrace #0 - /inc/check_specials.inc.php called at Line 24
[06-12-2015 11:13:41] E_USER_WARNING : LoggingManager: Backtrace #1 - /templates/tpl_modified/config/config.php called at Line 49
[06-12-2015 11:13:41] E_USER_WARNING : LoggingManager: Backtrace #2 - /includes/extra/application_top_export_end/10_smarty.php called at Line 4
[06-12-2015 11:13:41] E_USER_WARNING : LoggingManager: Backtrace #3 - /includes/application_top_export.php called at Line 118
[06-12-2015 11:13:41] E_USER_WARNING : LoggingManager: Backtrace #4 - /export/cao_xtc.php called at Line 152
Attachments (0)
Change History (7)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → accepted |
comment:3 by , 10 years ago
| Owner: | changed from to |
|---|---|
| Status: | accepted → assigned |
comment:6 by , 10 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
cao benötigt die smarty engine, siehe cao_xtc_functions.php
Außerdem wurde in allen Versionen in den application_top_export.php smarty includet.
Das kann man nicht so einfach weglassen.
Note:
See TracTickets
for help on using tickets.

E_ERROR:
Lösung: bei !function_exists ein require_once der Funktionsdatei
E_USER_WARNING:
Komplexer da der Fehler über check_specials() kommt
über die extra Datei 10_smarty laden wir die template config. Ich dieser wird die Funktion check_specials() ausgeführt.
Saubere Lösung wäre das Laden der template config in einer eigenen extra Datei und diese nur in der normalen application_top zu includen