# Fehler bei PDF Erstellung bzw. Templatebasis funktioniert ni

**URL:** <https://forum.shopware.com/t/fehler-bei-pdf-erstellung-bzw-templatebasis-funktioniert-ni/3401>\
**Category:** Shopware 3.5\
**Tags:** administration\
**Created:** [5. Juli 2011 um 10:14 UTC](https://forum.shopware.com/t/fehler-bei-pdf-erstellung-bzw-templatebasis-funktioniert-ni/3401 "2011-07-05T10:14:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiffani\_ch](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tiffani\_ch](https://forum.shopware.com/u/tiffani_ch)\
**Post date:** [5. Juli 2011 um 10:14 UTC](https://forum.shopware.com/t/fehler-bei-pdf-erstellung-bzw-templatebasis-funktioniert-ni/3401/1 "2011-07-05T10:14:09Z")

</div>

Hallo zusammen, erhalte Fehlermeldung, wenn ich die neue Templatevasis für PDF’s erstellen möchte. Parse error: syntax error, unexpected T\_STRING in /home/micthi37/www/tiffani.ch/engine/Shopware/Controllers/Backend/Document.php on line 344 ` [color=red]Line 342: [/color]$style = "style=\"margin-left:10px;$opacity;cursor:pointer\""; $onclick = "onclick=\"sTranslations('$field','$key','$id','$object','{$language["isocode"]}','$secondkey')\""; [color=red]Line 344:[/color] $element .= " ![]()path."engine/backend/img/default/icons/flags/{$language["flagbackend"]}\" $style $onclick\>"; } return $element; } }` Was kann ich tun? Danke und Gruss Tiffani

---

<div class="post-metadata">

**Author:** ![SebastianKloepper](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sebastiankloepper/32/21435_2.png) [@SebastianKloepper](https://forum.shopware.com/u/SebastianKloepper)\
**Post date:** [5. Juli 2011 um 10:56 UTC](https://forum.shopware.com/t/fehler-bei-pdf-erstellung-bzw-templatebasis-funktioniert-ni/3401/2 "2011-07-05T10:56:03Z")

</div>

Hast du mal die Systemvoraussetzungen geprüft? Evtl. passt eine Einstellung bei deinem Hostingpaket nicht. Sieht schon fast so aus. allow\_url\_fopen PHP-Version usw.

---

<div class="post-metadata">

**Author:** ![tiffani\_ch](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tiffani\_ch](https://forum.shopware.com/u/tiffani_ch)\
**Post date:** [5. Juli 2011 um 17:18 UTC](https://forum.shopware.com/t/fehler-bei-pdf-erstellung-bzw-templatebasis-funktioniert-ni/3401/3 "2011-07-05T17:18:26Z")

</div>

Ist eigentlich eingestellt: PHP max\_execution\_time Maximum execution time of each script, in seconds memory\_limit Maximum amount of memory a script may consume (8MB) register\_globals Whether or not to register the EGPCS variables as global variables. You may want to turn this off if you don’t want to clutter your scripts’ global scope with user data. This makes most sense when coupled with track\_vars - in which case you can access all of the GPC variables through the $HTTP\_\*\_VARS, variables. You should do your best to write your scripts so that they do not require register\_globals to be on; Using form variables as globals can easily lead to possible security problems, if the code is not very well thought of. magic\_quotes\_gpc Magic quotes for incoming GET/POST/Cookie data. upload\_max\_filesize Maximum allowed size for uploaded files. [color=red]allow\_url\_fopen Whether to allow the treatment of URLs (like http:// or ftp://) as files.[/color]

---

<div class="post-metadata">

**Author:** ![SebastianKloepper](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sebastiankloepper/32/21435_2.png) [@SebastianKloepper](https://forum.shopware.com/u/SebastianKloepper)\
**Post date:** [5. Juli 2011 um 17:53 UTC](https://forum.shopware.com/t/fehler-bei-pdf-erstellung-bzw-templatebasis-funktioniert-ni/3401/4 "2011-07-05T17:53:51Z")

</div>

Allow\_URL\_fopen wird benötigt. Wenn das nicht aktiviert ist, kann sich das auf die PDF Erstellung auswirken…

---

<div class="post-metadata">

**Author:** ![tiffani\_ch](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tiffani\_ch](https://forum.shopware.com/u/tiffani_ch)\
**Post date:** [7. Juli 2011 um 15:45 UTC](https://forum.shopware.com/t/fehler-bei-pdf-erstellung-bzw-templatebasis-funktioniert-ni/3401/5 "2011-07-07T15:45:31Z")

</div>

Wenn ich allow\_url\_fopen im mit dem Hauptverzeichnis verlinke, kann ich die ganze Website und Admin nicht mehr aufrufen. Fehlermeldung: Fatal error: Class ‚Enlight\_Hook\_HookManager‘ not found in /home/micthi37/www/tiffani.ch/engine/Enlight/Enlight/Application.php on line 74 Laut Hoster: Dann kann das Problem aber nicht an allow\_url\_fopen liegen sondern muss irgendwo in Ihrer Konfiguration oder dem CMS ein Fehler vorhanden sein. Wer kann helfen? LG;
