Du bist nicht angemeldet. Der Zugriff auf einige Boards wurde daher deaktiviert.
Seiten: 1
#1 11. Mai 2012 12:58
- dylan
- kennt CMS/ms
- Ort: Münsterland
- Registriert: 16. Dezember 2010
- Beiträge: 303
Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Ich habe ein merkwürdiges Verhalten bei Modulen.
Als Beispiel das Modul Gallery. Ich installiere es, mache meine Anpassungen, und es fuktioniert wie gewohnt.
Einen Tag später fehlt im Quelltext der Aufruf von CSS und Script. Gleiches habe ich vor einigen Tagen beim Modul Image Picker, und beim Modul Showtime gehabt. Erst funktioniert es, dann werden sie, wie auch immer, im head nicht mehr geladen. Im body hingegen fehlt nichts. Füge ich den code manuell hinzu, laufen die Module problemlos.
Ich habe keine Idee woran es liegt?
Welcher Tag ist im Template für das hinzufügen des codes von Modulen verantwortlich?
Offline
#2 11. Mai 2012 13:06
- NaN
- Moderator
- Ort: Halle (Saale)
- Registriert: 09. November 2010
- Beiträge: 4.437
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Ich habe keine Idee woran es liegt?
Keine Ahnung. Sag Du es uns.
Welcher Tag ist im Template für das hinzufügen des codes von Modulen verantwortlich?
Das macht kein Tag. Das machen die Module selbst.
Module: GBFilePicker, AdvancedContent
Sicherheit: Beispiel .htaccess-Datei
CMSms 1.12 unter PHP 7:
cmsms-1.12.3.zip (inoffiziell - komplett inkl. Installer)
CMSms 1.12 unter PHP 8:
cmsms-1.12.4.zip (inoffiziell - komplett inkl. Installer)
Offline
#3 11. Mai 2012 13:26
- dylan
- kennt CMS/ms
- Ort: Münsterland
- Registriert: 16. Dezember 2010
- Beiträge: 303
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Das macht kein Tag. Das machen die Module selbst.
Ich kann mir kaum vorstellen, das die Module ohne Tag blind ihren code hinzufügen. Wenn es aber so ist (!?), was veranlasst die genannten drei Module 'Gallery, Image Picker und Showtime' dazu, den code erst hinzuzufügen, und dann wieder nicht? Getestet in den Browsern Firefox, Chrome, Safari und Opera.
Es ist eine Neuinstallation von 1.10.3, die Module sind ebenfalls in den aktuellen Versionen über XML-Datei installiert worden. Ich kann natürlich alles manuell laden, ist aber mit anpassen der Pfadangaben nicht ganz so schnell erledigt.
CMS Made Simple 1.10.3
Provider: allinkl
PHP Version 5.3.12-nmm2
MySQL 5.1.43
Offline
#4 11. Mai 2012 13:40
- NaN
- Moderator
- Ort: Halle (Saale)
- Registriert: 09. November 2010
- Beiträge: 4.437
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Ich kann mir kaum vorstellen, das die Module ohne Tag blind ihren code hinzufügen.
Siehst Du in Deinem Template etwa irgendwo einen Tag im Head, der irgendwelche extra Modul-Scripte einfügt? Und? Werden die Scripte trotzdem hinzugefügt?
Das Zauberwort nennt sich Ereignisverwaltung.
Jedes Modul kann unabhängig davon, ob es überhaupt aufgerufen wurde, den HTML Quellcode verändern, bevor er an den Browser gesendet wird.
Und über eben jene Ereignisverwaltung werden durch Module wie Gallery & Co. dem Head evtl. benötigte Scripts etc. hinzugefügt.
Warum sie das manchmal nicht tun, kann ich Dir ohne genauere Fehleranalyse nicht sagen. Hast Du mal versucht die Hinweise zur Fehleranalyse zu befolgen?
Module: GBFilePicker, AdvancedContent
Sicherheit: Beispiel .htaccess-Datei
CMSms 1.12 unter PHP 7:
cmsms-1.12.3.zip (inoffiziell - komplett inkl. Installer)
CMSms 1.12 unter PHP 8:
cmsms-1.12.4.zip (inoffiziell - komplett inkl. Installer)
Offline
#5 11. Mai 2012 14:06
- nockenfell
- Moderator
- Ort: Gontenschwil, Schweiz
- Registriert: 09. November 2010
- Beiträge: 2.934
- Webseite
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Mit was für einem Template wird die Gallery den angezeigt? hat dieses Template das CSS und das Javascript drin?
[dieser Beitrag wurde mit 100% recycled bits geschrieben]
Mein Blog / Diverse Links rund um CMS Made Simple
Module: btAdminer, ToolBox
Offline
#6 11. Mai 2012 14:58
- dylan
- kennt CMS/ms
- Ort: Münsterland
- Registriert: 16. Dezember 2010
- Beiträge: 303
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Mit was für einem Template wird die Gallery den angezeigt? hat dieses Template das CSS und das Javascript drin?
Fancybox ist als Standard definiert. Template, Stylesheet-Template und JavaScript-Template sind drin. Die Daten liegen auch in den im Template verlinkten Modulordner, habe das gerade einmal getestet. Was fehlt, ist der Aufruf im header.
Offline
#7 11. Mai 2012 15:05
- dylan
- kennt CMS/ms
- Ort: Münsterland
- Registriert: 16. Dezember 2010
- Beiträge: 303
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Ich hatte gerade ein Problem an der gleichen Seite mit dem Modul ListIt2. Nic hat geholfen: ListIt2 - Datum Format datepicker.
Nur eine Überlegung, ist es vielleicht möglich das gleich wie bei den Modulen das Schreibrecht im header des Templates fehlt!? Sorry, ich bin kein Programmierer...
Beitrag geändert von dylan (11. Mai 2012 15:06)
Offline
#8 11. Mai 2012 15:16
- NaN
- Moderator
- Ort: Halle (Saale)
- Registriert: 09. November 2010
- Beiträge: 4.437
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Du brauchst Schreibrechte im Verzeichnis modules/gallery/templates
Module: GBFilePicker, AdvancedContent
Sicherheit: Beispiel .htaccess-Datei
CMSms 1.12 unter PHP 7:
cmsms-1.12.3.zip (inoffiziell - komplett inkl. Installer)
CMSms 1.12 unter PHP 8:
cmsms-1.12.4.zip (inoffiziell - komplett inkl. Installer)
Offline
#9 11. Mai 2012 15:38
- dylan
- kennt CMS/ms
- Ort: Münsterland
- Registriert: 16. Dezember 2010
- Beiträge: 303
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Ich habe rekursiv mit allen Unterverzeichnissen 777 vergeben, hat leider nichts gebracht.
Offline
#10 11. Mai 2012 18:14
- NaN
- Moderator
- Ort: Halle (Saale)
- Registriert: 09. November 2010
- Beiträge: 4.437
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Wie sieht denn die Ereignisverwaltung aus? (Erweiterungen -> ... -> ContentPostRender)
Was sagen Debug & Co?
Module: GBFilePicker, AdvancedContent
Sicherheit: Beispiel .htaccess-Datei
CMSms 1.12 unter PHP 7:
cmsms-1.12.3.zip (inoffiziell - komplett inkl. Installer)
CMSms 1.12 unter PHP 8:
cmsms-1.12.4.zip (inoffiziell - komplett inkl. Installer)
Offline
#11 12. Mai 2012 17:08
- dylan
- kennt CMS/ms
- Ort: Münsterland
- Registriert: 16. Dezember 2010
- Beiträge: 303
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
ContentPostRender
2 Gallery
3 TinyMCE
4 Showtime
Debug & Co
Auf allen Seiten:
Notice: Undefined variable: image_name in /www/htdocs/xxxxx/modules/ImagePicker/action.default.php on line 46
News:
Notice: Undefined index: authorname_label in /www/htdocs/xxxxx/tmp/templates_c/News^%%73^732^73273597%%module_db_tpl%3ANews%3BdetailDetail-Templates_Home.php on line 13
Die action.default.php vom ImagePicker habe ich nicht angerührt, was da wohl schief läuft? Die Templates des News Modul habe ich selbst gebaut, sie funktionieren auch wie gewünscht.
News Admin, Editor für die Detail-Templates
Debug Ausgabe unterhalb des Editors:
Debug is on. Redirecting disabled... Please click this link to continue.
http://www.xxxxx.de/admin/moduleinterface.php?mact=News,m1_,defaultadmin,0&_sx_=7da7cbf7&m1_active_tab=detail_template
Debug: (7.9E-5) - (usage: 1763608) - (peak: 1802328)
done loading required files
Debug: (0.006522) - (usage: 1765320) - (peak: 1814904)
loading adodb
Debug: (0.007527) - (usage: 1919672) - (peak: 1953552)
loading page functions
Debug: (0.008951) - (usage: 2208352) - (peak: 2310712)
loading content functions
Debug: (0.00926) - (usage: 2249040) - (peak: 2310712)
loading translation functions
Debug: (0.010184) - (usage: 2429360) - (peak: 2468600)
loading php4 entity decode functions
Debug: (0.011404) - (usage: 2791376) - (peak: 3106840)
done loading files
Debug: (0.011449) - (usage: 2791944) - (peak: 3106840)
Initialize Database
Debug: (0.022156) - (usage: 3859912) - (peak: 3879592)
(mysql): SET NAMES 'utf8'
Debug: (0.022349) - (usage: 3858664) - (peak: 3920768)
Done Initializing Database
Debug: (0.022466) - (usage: 3859016) - (peak: 3920928)
Initialize Smarty
Debug: (0.034685) - (usage: 4665496) - (peak: 4677240)
Loading /www/htdocs/xxxxx/lib/classes/class.Smarty_CMS.php = 804880 bytes for an approximate total of 804880
Debug: (0.036136) - (usage: 4724712) - (peak: 4748392)
Loading /www/htdocs/xxxxx/lib/classes/class.cms_siteprefs.php = 33504 bytes for an approximate total of 838384
Debug: (0.036949) - (usage: 4725216) - (peak: 4779384)
(mysql): SELECT sitepref_name,sitepref_value FROM cms_siteprefs
Debug: (0.039971) - (usage: 4887232) - (peak: 5038584)
Done Initialiing Smarty
Debug display of 'Loading Modules':(0.040175) - (usage: 4897880) - (peak: 5048752)
Debug: (0.041837) - (usage: 5253264) - (peak: 5366304)
Loading /www/htdocs/xxxxx/lib/classes/class.moduleoperations.inc.php = 353824 bytes for an approximate total of 1192208
Debug: (0.042134) - (usage: 5255416) - (peak: 5395328)
(mysql): SELECT * FROM cms_modules ORDER BY module_name
Debug: (0.044305) - (usage: 5589496) - (peak: 5662704)
Loading /www/htdocs/xxxxx/lib/classes/class.contentoperations.inc.php = 293736 bytes for an approximate total of 1485944
Debug: (0.044967) - (usage: 5659016) - (peak: 5737688)
Loading /www/htdocs/xxxxx/lib/classes/class.module_meta.php = 56320 bytes for an approximate total of 1542264
Debug: (0.045974) - (usage: 5721008) - (peak: 5780160)
Loading /www/htdocs/xxxxx/lib/classes/class.cms_utils.php = 39200 bytes for an approximate total of 1581464
Debug: (0.046331) - (usage: 5776936) - (peak: 5835944)
Loading /www/htdocs/xxxxx/lib/classes/class.cms_userprefs.php = 55784 bytes for an approximate total of 1637248
Debug: (0.046635) - (usage: 5779784) - (peak: 5865464)
(mysql): SELECT preference,value FROM cms_userprefs WHERE user_id = '1'
Debug: (0.061704) - (usage: 7000792) - (peak: 7214528)
Loading /www/htdocs/xxxxx/lib/classes/class.CMSModule.php = 570280 bytes for an approximate total of 2207528
Debug: (0.0621) - (usage: 7066112) - (peak: 7214528)
Loading /www/htdocs/xxxxx/modules/CMSMailer/CMSMailer.module.php = 892688 bytes for an approximate total of 3100216
Debug: (0.065197) - (usage: 7229328) - (peak: 7330616)
Loading /www/htdocs/xxxxx/modules/CMSPrinting/CMSPrinting.module.php = 156904 bytes for an approximate total of 3257120
Debug: (0.076049) - (usage: 7673152) - (peak: 7783840)
Loading /www/htdocs/xxxxx/modules/FileManager/FileManager.module.php = 343648 bytes for an approximate total of 3600768
Debug: (0.079723) - (usage: 7851120) - (peak: 7927760)
Loading /www/htdocs/xxxxx/modules/Gallery/Gallery.module.php = 172632 bytes for an approximate total of 3773400
Debug: (0.097684) - (usage: 8709536) - (peak: 8818856)
Loading /www/htdocs/xxxxx/modules/GBFilePicker/GBFilePicker.module.php = 766216 bytes for an approximate total of 4539616
Debug: (0.10145) - (usage: 8846656) - (peak: 8921760)
Loading /www/htdocs/xxxxx/lib/classes/class.useroperations.inc.php = 132440 bytes for an approximate total of 4672056
Debug: (0.102136) - (usage: 8851504) - (peak: 8950280)
(mysql): SELECT ug.user_id FROM cms_user_groups ug
WHERE ug.user_id = '1' AND ug.group_id = 1 LIMIT 1
Debug: (0.102824) - (usage: 8852864) - (peak: 8951456)
(mysql): SELECT DISTINCT permission_name FROM cms_user_groups ug INNER JOIN cms_group_perms gp ON gp.group_id = ug.group_id INNER JOIN cms_permissions p ON p.permission_id = gp.permission_id INNER JOIN cms_groups gr ON gr.group_id = ug.group_id WHERE ug.user_id = '1' AND gr.active = 1
Debug: (0.103495) - (usage: 8852880) - (peak: 8958568)
(mysql): SELECT username, password, active, first_name, last_name, admin_access, email FROM cms_users WHERE user_id = '1'
Debug: (0.10606) - (usage: 8977896) - (peak: 9045464)
Loading /www/htdocs/xxxxx/modules/ImagePicker/ImagePicker.module.php = 125400 bytes for an approximate total of 4797456
Debug: (0.11415) - (usage: 9375664) - (peak: 9429888)
Loading /www/htdocs/xxxxx/modules/ListIt2/ListIt2.module.php = 374848 bytes for an approximate total of 5172304
Debug: (0.12806) - (usage: 9691672) - (peak: 9921616)
Loading /www/htdocs/xxxxx/modules/MenuManager/MenuManager.module.php = 222272 bytes for an approximate total of 5394576
Debug: (0.13464) - (usage: 9866272) - (peak: 10068472)
Loading /www/htdocs/xxxxx/modules/ModuleManager/ModuleManager.module.php = 116800 bytes for an approximate total of 5511376
Debug: (0.139278) - (usage: 10126000) - (peak: 10310616)
Loading /www/htdocs/xxxxx/modules/News/News.module.php = 254200 bytes for an approximate total of 5765576
Debug: (0.152671) - (usage: 10553904) - (peak: 10743792)
Loading /www/htdocs/xxxxx/modules/Search/Search.module.php = 311424 bytes for an approximate total of 6077000
Debug: (0.159199) - (usage: 10732344) - (peak: 10866584)
Loading /www/htdocs/xxxxx/modules/Showtime/Showtime.module.php = 131528 bytes for an approximate total of 6208528
Debug: (0.161992) - (usage: 10856376) - (peak: 10984744)
Loading /www/htdocs/xxxxx/modules/ThemeManager/ThemeManager.module.php = 113736 bytes for an approximate total of 6322264
Debug: (0.169817) - (usage: 11310480) - (peak: 11433064)
Loading /www/htdocs/xxxxx/modules/TinyMCE/TinyMCE.module.php = 448504 bytes for an approximate total of 6770768
Debug display of 'End of Loading Modules':(0.170668) - (usage: 11309904) - (peak: 11468688)
Debug: (0.171884) - (usage: 11354816) - (peak: 11483600)
Loading /www/htdocs/xxxxx/lib/classes/class.CmsRegularTaskHandler.php = 43608 bytes for an approximate total of 6814376
Debug: (0.172172) - (usage: 11266672) - (peak: 11515336)
Session found. Moving on...
Debug: (0.172302) - (usage: 11267120) - (peak: 11515336)
Session found. Moving on...
Debug: (0.178987) - (usage: 12035728) - (peak: 12257600)
Session found. Moving on...
Debug: (0.179066) - (usage: 12036512) - (peak: 12257600)
Session found. Moving on...
Debug: (0.1791) - (usage: 12036624) - (peak: 12257600)
before theme load
Debug: (0.181044) - (usage: 12408664) - (peak: 12515280)
Loading /www/htdocs/xxxxx/lib/classes/class.globalcontentoperations.inc.php = 153728 bytes for an approximate total of 6968104
Debug: (0.181392) - (usage: 12412048) - (peak: 12550552)
(mysql): SELECT htmlblob_id FROM cms_additional_htmlblob_users WHERE user_id = '1'
Debug: (0.181648) - (usage: 12415648) - (peak: 12552680)
(mysql): SELECT group_id FROM cms_user_groups WHERE user_id = '1'
Debug: (0.181897) - (usage: 12414408) - (peak: 12556712)
(mysql): SELECT htmlblob_id FROM cms_additional_htmlblob_users WHERE user_id IN (-1)
Debug: (0.182165) - (usage: 12414080) - (peak: 12558120)
(mysql): SELECT content_id FROM cms_content WHERE owner_id = '1'
Debug: (0.18254) - (usage: 12423176) - (peak: 12558904)
(mysql): SELECT user_id,content_id FROM cms_additional_users
Debug: (0.182969) - (usage: 12425304) - (peak: 12564448)
after theme load
Debug: (0.183055) - (usage: 12426488) - (peak: 12564952)
before populate admin navigation
Debug: (0.183093) - (usage: 12426840) - (peak: 12566048)
before menu items
Debug: (0.212427) - (usage: 12511912) - (peak: 12600904)
after menu items
Debug: (0.214086) - (usage: 12515784) - (peak: 12657856)
before syste modules
Debug: (0.214951) - (usage: 12529296) - (peak: 12699032)
before module menu items
Debug: (0.215719) - (usage: 12540680) - (peak: 12699584)
after module menu items
Debug: (0.221922) - (usage: 12596824) - (peak: 12735944)
after populate admin navigation
Debug: (0.222046) - (usage: 12597184) - (peak: 12776064)
before theme-y stuff
Debug: (0.225856) - (usage: 12597960) - (peak: 12781328)
after theme-y stuff
Debug: (0.226034) - (usage: 12599536) - (peak: 12782424)
before notifications
Debug: (0.226583) - (usage: 12602200) - (peak: 12783496)
(mysql): SELECT version from cms_version LIMIT 1
Debug: (0.227453) - (usage: 12602808) - (peak: 12783592)
after notifications
Debug: (0.229935) - (usage: 12674024) - (peak: 12821272)
Loading /www/htdocs/xxxxx/lib/classes/class.bookmarkoperations.inc.php = 69008 bytes for an approximate total of 7037112
Debug: (0.230475) - (usage: 12678080) - (peak: 12849776)
(mysql): SELECT bookmark_id, user_id, title, url FROM cms_admin_bookmarks WHERE user_id = '1' ORDER BY title
Debug: (0.238003) - (usage: 12768536) - (peak: 12925584)
(mysql): SELECT module_name FROM cms_module_templates WHERE module_name = 'News' and template_name = 'detailSample'
Debug: (0.23955) - (usage: 12778000) - (peak: 12950464)
(mysql): UPDATE cms_module_templates SET content = '<h5 class=\"newsheadline\">{$entry->title}</h5>\r\n{if $entry->postdate}\r\n <div id=\"NewsPostDetailDate\">\r\n {$entry->postdate|cms_date_format}\r\n{/if}\r\n{if $entry->authorname}\r\n {$authorname_label} ({$entry->authorname})\r\n{/if}\r\n</div>\r\n<hr class=\"newsline\" />\r\n<div id=\"NewsPostDetailContent\">\r\n {eval var=$entry->content}\r\n</div>\r\n\r\n{if $entry->extra}\r\n <div id=\"NewsPostDetailExtra\">\r\n {$extra_label} {$entry->extra}\r\n </div>\r\n{/if}\r\n\r\n{if isset($entry->fields)}\r\n {foreach from=$entry->fields item=\'field\'}\r\n <div class=\"NewsDetailField\">\r\n {if $field->type == \'file\'}\r\n {* this template assumes that every file uploaded is an image of some sort, because News doesn\'t distinguish *}\r\n <img src=\"{$entry->file_location}/{$field->value}\"/>\r\n {else}\r\n {$field->name}:&nbsp;{eval var=$field->value}\r\n {/if}\r\n </div>\r\n {/foreach}\r\n{/if}', modified_date = '2012-05-12 17:23:41' WHERE module_name = 'News' AND template_name = 'detailSample'
Debug: (0.254293) - (usage: 12798040) - (peak: 12963120)
Session found. Moving on...
Das News Detail-Template
<h5 class="newsheadline">{$entry->title}</h5>
{if $entry->postdate}
<div id="NewsPostDetailDate">
{$entry->postdate|cms_date_format}
{/if}
{if $entry->authorname}
{$authorname_label} ({$entry->authorname})
{/if}
</div>
<hr class="newsline" />
<div id="NewsPostDetailContent">
{eval var=$entry->content}
</div>
{if $entry->extra}
<div id="NewsPostDetailExtra">
{$extra_label} {$entry->extra}
</div>
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="NewsDetailField">
{if $field->type == 'file'}
{* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
Kann anhand dieser Daten die Fehlersuche eingegrenzt werden?
Offline
#12 12. Mai 2012 18:38
- dylan
- kennt CMS/ms
- Ort: Münsterland
- Registriert: 16. Dezember 2010
- Beiträge: 303
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Habe in den System-Informationen gerade folgendes entdeckt, ein rotes X bei root_path, und ein paar gelbe Rufzeichen:
root_path X /www/htdocs/xxxxx (0750)
Maximale Ausführungszeit (max_execution_time) ! 30
Speicherpfad für Sessions (session_save_path) ! Keine Prüfung, da eine „open basedir“-Beschränkung aktiviert ist
Deaktivierte PHP-Funktionen (disable_functions) ! exec, system, passthru, shell_exec, popen, escapeshellcmd, proc_open, proc_nice
PHP „Open Basedir“ (open_basedir) ! /www/htdocs/w00f3871/:/tmp:/usr/bin:/www/htdocs/xxxxx:/bin:/usr/local/bin:/usr/share/php
Sind vielleicht die 750 im root_path für die Problematik im Template verantwortlich? Oder eines der anderen Hinweise?
Offline
#13 12. Mai 2012 21:35
- nicmare
- Server-Pate
- Registriert: 15. Dezember 2010
- Beiträge: 1.314
- Webseite
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
also das kreuz beim root_path hab ich auch. kann dir da garnicht genau sagen was das zu sagen hat
Meine Projekte:
Dashcam-Test | Babyphone-Testberichte | Türspionkameras
Offline
#14 13. Mai 2012 22:01
- NaN
- Moderator
- Ort: Halle (Saale)
- Registriert: 09. November 2010
- Beiträge: 4.437
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Deine Debug-Ausgabe ist leider unbrauchbar.
Die stammt aus dem Backend.
Damit können wir hier leider nicht viel anfangen, weil der Fehler ja im Frontend auftritt.
Die Notice-Meldungen und deine Zugriffsrechte im Root, dürften hier überhaupt keine Rolle spielen.
Im Frontend sollte eigentlich die Meldung zu sehen sein, dass das Modul Gallery durch Event ContentPostRender ausgeführt wird. (calling module [Modulname] from event [eventname])
Module: GBFilePicker, AdvancedContent
Sicherheit: Beispiel .htaccess-Datei
CMSms 1.12 unter PHP 7:
cmsms-1.12.3.zip (inoffiziell - komplett inkl. Installer)
CMSms 1.12 unter PHP 8:
cmsms-1.12.4.zip (inoffiziell - komplett inkl. Installer)
Offline
#15 13. Mai 2012 08:54
- dylan
- kennt CMS/ms
- Ort: Münsterland
- Registriert: 16. Dezember 2010
- Beiträge: 303
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Sorry, hier die Daten aus dem Frontend:
Generated in 0.79631 seconds by CMS Made Simple using 84 SQL queries and 16357072 bytes of memory (peak memory usage was 17680120)
Debug: (3.9E-5) - (usage: 1830296) - (peak: 1869032)
done loading required files
Debug: (0.017044) - (usage: 1832128) - (peak: 1881592)
loading adodb
Debug: (0.019798) - (usage: 1986608) - (peak: 2020584)
loading page functions
Debug: (0.024365) - (usage: 2275256) - (peak: 2407968)
loading content functions
Debug: (0.025353) - (usage: 2315944) - (peak: 2407968)
loading translation functions
Debug: (0.028388) - (usage: 2496272) - (peak: 2543272)
loading php4 entity decode functions
Debug: (0.031835) - (usage: 2858312) - (peak: 3092952)
done loading files
Debug: (0.031967) - (usage: 2858880) - (peak: 3092952)
Initialize Database
Debug: (0.046161) - (usage: 3926600) - (peak: 3946440)
(mysql): SET NAMES 'utf8'
Debug: (0.046348) - (usage: 3925352) - (peak: 3987616)
Done Initializing Database
Debug: (0.046464) - (usage: 3925704) - (peak: 3987776)
Initialize Smarty
Debug: (0.05729) - (usage: 4732032) - (peak: 4743904)
Loading /www/htdocs/xxxxx/lib/classes/class.Smarty_CMS.php = 804728 bytes for an approximate total of 804728
Debug: (0.058539) - (usage: 4791408) - (peak: 4815472)
Loading /www/htdocs/xxxxx/lib/classes/class.cms_siteprefs.php = 33464 bytes for an approximate total of 838192
Debug: (0.05928) - (usage: 4791912) - (peak: 4846464)
(mysql): SELECT sitepref_name,sitepref_value FROM cms_siteprefs
Debug: (0.06949) - (usage: 4953832) - (peak: 5105288)
Done Initialiing Smarty
Debug display of 'Loading Routes':(0.069971) - (usage: 4958664) - (peak: 5115456)
Debug: (0.071014) - (usage: 4993736) - (peak: 5129032)
Loading /www/htdocs/xxxxx/lib/classes/class.pageinfo.inc.php = 33432 bytes for an approximate total of 871624
Debug: (0.072809) - (usage: 5288120) - (peak: 5396632)
Loading /www/htdocs/xxxxx/lib/classes/class.contentoperations.inc.php = 293704 bytes for an approximate total of 1165328
Debug: (0.07308) - (usage: 5289344) - (peak: 5431880)
(mysql): SELECT content_id,page_url FROM cms_content
WHERE active = 1 AND default_content = 0 AND page_url != ''
Debug display of 'End of Loading Routes':(0.073159) - (usage: 5288224) - (peak: 5433160)
Debug display of 'Loading Modules':(0.073185) - (usage: 5288568) - (peak: 5434496)
Debug: (0.074672) - (usage: 5643760) - (peak: 5745128)
Loading /www/htdocs/xxxxx/lib/classes/class.moduleoperations.inc.php = 353656 bytes for an approximate total of 1518984
Debug: (0.074941) - (usage: 5645648) - (peak: 5773584)
(mysql): SELECT * FROM cms_modules ORDER BY module_name
Debug: (0.076281) - (usage: 5755384) - (peak: 5834120)
Loading /www/htdocs/xxxxx/lib/classes/class.module_meta.php = 56512 bytes for an approximate total of 1575496
Debug: (0.078793) - (usage: 6442440) - (peak: 6481456)
Loading /www/htdocs/xxxxx/lib/classes/class.CMSModule.php = 568456 bytes for an approximate total of 2143952
Debug: (0.078924) - (usage: 6505416) - (peak: 6524328)
Loading /www/htdocs/xxxxx/modules/Gallery/Gallery.module.php = 741016 bytes for an approximate total of 2884968
Debug: (0.079849) - (usage: 6552800) - (peak: 6571968)
Loading /www/htdocs/xxxxx/lib/classes/class.CmsRoute.php = 24880 bytes for an approximate total of 2909848
Debug: (0.080153) - (usage: 6598064) - (peak: 6623240)
Loading /www/htdocs/xxxxx/lib/classes/class.cms_route_manager.php = 43896 bytes for an approximate total of 2953744
Debug: (0.080521) - (usage: 6652704) - (peak: 6674840)
Loading /www/htdocs/xxxxx/lib/classes/class.cms_utils.php = 39176 bytes for an approximate total of 2992920
Debug: (0.088762) - (usage: 7420928) - (peak: 7471264)
Loading /www/htdocs/xxxxx/modules/GBFilePicker/GBFilePicker.module.php = 766320 bytes for an approximate total of 3759240
Debug: (0.091207) - (usage: 7553616) - (peak: 7571472)
Loading /www/htdocs/xxxxx/modules/ImagePicker/ImagePicker.module.php = 125320 bytes for an approximate total of 3884560
Debug: (0.099251) - (usage: 8015688) - (peak: 8031936)
Loading /www/htdocs/xxxxx/modules/ListIt2/ListIt2.module.php = 374640 bytes for an approximate total of 4259200
Debug: (0.105912) - (usage: 8287024) - (peak: 8533344)
Loading /www/htdocs/xxxxx/modules/News/News.module.php = 254264 bytes for an approximate total of 4513464
Debug: (0.107471) - (usage: 8297744) - (peak: 8568312)
(mysql): SELECT news_id,news_url FROM cms_module_news
WHERE status = 'published' AND news_url != '' AND ( IFNULL(start_time, '1970-01-01 01:00:01') < NOW()) AND (( IFNULL(end_time, '1970-01-01 01:00:01') = '1970-01-01 01:00:01') OR (end_time > NOW())) ORDER BY news_date DESC
Debug: (0.108117) - (usage: 8295592) - (peak: 8577288)
(mysql): SELECT content_id FROM cms_content WHERE default_content = 1 LIMIT 1
Debug: (0.111124) - (usage: 8450568) - (peak: 8683448)
Loading /www/htdocs/xxxxx/modules/Showtime/Showtime.module.php = 131512 bytes for an approximate total of 4644976
Debug: (0.117721) - (usage: 8910040) - (peak: 9100728)
Loading /www/htdocs/xxxxx/modules/TinyMCE/TinyMCE.module.php = 448432 bytes for an approximate total of 5093408
Debug display of 'End of Loading Modules':(0.118161) - (usage: 8910392) - (peak: 9136224)
Debug: (0.119279) - (usage: 8955296) - (peak: 9149920)
Loading /www/htdocs/xxxxx/lib/classes/class.CmsRegularTaskHandler.php = 43600 bytes for an approximate total of 5137008
Debug: (0.120874) - (usage: 8959568) - (peak: 9180416)
Loading /www/htdocs/xxxxx/lib/classes/class.cms_content_cache.php = 48424 bytes for an approximate total of 5185432
Debug: (0.121436) - (usage: 8962968) - (peak: 9195120)
(mysql): SELECT * FROM cms_content WHERE content_alias = 'galerie' AND active = 1 LIMIT 1
Debug: (0.134124) - (usage: 9800048) - (peak: 10049504)
Loading /www/htdocs/xxxxx/lib/classes/class.ContentBase.php = 597312 bytes for an approximate total of 5782744
Debug: (0.134501) - (usage: 9859328) - (peak: 10049504)
Loading /www/htdocs/xxxxx/lib/classes/contenttypes/Content.inc.php = 890544 bytes for an approximate total of 6673288
Debug: (0.135966) - (usage: 9927136) - (peak: 10108088)
Loading /www/htdocs/xxxxx/lib/classes/class.ContentProperties.php = 61368 bytes for an approximate total of 6734656
Debug: (0.136504) - (usage: 9964320) - (peak: 10132192)
load from data is loading properties
Debug: (0.137092) - (usage: 9969016) - (peak: 10140376)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '60'
Debug: (0.141831) - (usage: 10182160) - (peak: 10324384)
Loading /www/htdocs/xxxxx/lib/classes/class.templateoperations.inc.php = 161824 bytes for an approximate total of 6896480
Debug: (0.142499) - (usage: 10186352) - (peak: 10353152)
(mysql): SELECT template_id, template_name, template_content, stylesheet, encoding, active, default_template, modified_date FROM cms_templates WHERE template_id = '24' LIMIT 1
Debug: (0.159007) - (usage: 11472248) - (peak: 11585216)
Loading /www/htdocs/xxxxx/lib/classes/class.Events.php = 141472 bytes for an approximate total of 7037952
Debug: (0.159576) - (usage: 11475216) - (peak: 11618008)
(mysql): SELECT eh.tag_name, eh.module_name, e.originator, e.event_name, eh.handler_order, eh.handler_id, eh.removable FROM cms_event_handlers eh
INNER JOIN cms_events e ON e.event_id = eh.event_id
ORDER BY eh.handler_order ASC
Debug display of 'Start Loading Hierarchy Manager':(0.205777) - (usage: 11937184) - (peak: 12199360)
Debug display of 'starting tree':(0.205825) - (usage: 11937688) - (peak: 12199360)
Debug: (0.206104) - (usage: 11940088) - (peak: 12199360)
(mysql): SELECT modified_date FROM cms_content ORDER BY modified_date DESC LIMIT 1
Debug: (0.206262) - (usage: 11939376) - (peak: 12199360)
Content tree file needs loading
Debug: (0.20708) - (usage: 12088232) - (peak: 12273704)
Loading /www/htdocs/xxxxx/lib/classes/class.cms_tree.php = 59128 bytes for an approximate total of 7097080
Debug: (0.207138) - (usage: 12093168) - (peak: 12301792)
Loading /www/htdocs/xxxxx/lib/classes/class.cms_content_tree.php = 130128 bytes for an approximate total of 7227208
Debug display of 'ending tree':(0.207296) - (usage: 12153328) - (peak: 12305816)
Debug display of 'End Loading Hierarchy Manager':(0.207326) - (usage: 12145984) - (peak: 12320568)
Debug: (0.207698) - (usage: 12151208) - (peak: 12320568)
(mysql): SELECT * FROM cms_content WHERE content_id IN (15,56,57,58,59,93,96) AND active = 1 ORDER BY hierarchy
Debug: (0.20853) - (usage: 12343640) - (peak: 12435640)
Loading /www/htdocs/xxxxx/lib/classes/contenttypes/SectionHeader.inc.php = 88072 bytes for an approximate total of 7315280
Debug: (0.210906) - (usage: 12758656) - (peak: 12871200)
Loading /www/htdocs/xxxxx/modules/MenuManager/MenuManager.module.php = 222080 bytes for an approximate total of 7537360
Debug display of 'Start of Menu Manager Display':(0.212454) - (usage: 12891760) - (peak: 13033104)
Debug: (0.213814) - (usage: 12909176) - (peak: 13033104)
(mysql): SELECT * FROM cms_content WHERE content_id IN (61,62,63,64,65,66,67,95) ORDER BY hierarchy
Debug: (0.219249) - (usage: 13283664) - (peak: 13376384)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '15'
Debug: (0.220762) - (usage: 13291840) - (peak: 13417584)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '61'
Debug: (0.222203) - (usage: 13299224) - (peak: 13418464)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '62'
Debug: (0.223652) - (usage: 13310328) - (peak: 13420712)
(mysql): SELECT * FROM cms_content WHERE content_id IN (85,86,89,92,88,91) ORDER BY hierarchy
Debug: (0.22764) - (usage: 13602072) - (peak: 13683152)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '63'
Debug: (0.229169) - (usage: 13610720) - (peak: 13724168)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '85'
Debug: (0.23055) - (usage: 13620800) - (peak: 13725552)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '86'
Debug: (0.231951) - (usage: 13629016) - (peak: 13730872)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '89'
Debug: (0.233302) - (usage: 13636680) - (peak: 13734800)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '92'
Debug: (0.234645) - (usage: 13643904) - (peak: 13740040)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '88'
Debug: (0.235979) - (usage: 13654168) - (peak: 13745072)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '91'
Debug: (0.237324) - (usage: 13659768) - (peak: 13753376)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '64'
Debug: (0.238571) - (usage: 13666080) - (peak: 13759456)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '65'
Debug: (0.2398) - (usage: 13672424) - (peak: 13763064)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '66'
Debug: (0.241085) - (usage: 13678680) - (peak: 13767720)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '67'
Debug: (0.24254) - (usage: 13684992) - (peak: 13772632)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '95'
Debug: (0.244065) - (usage: 13695704) - (peak: 13777632)
(mysql): SELECT * FROM cms_content WHERE content_id IN (68,69,70,71,72,94,73,74) ORDER BY hierarchy
Debug: (0.248997) - (usage: 14082640) - (peak: 14174744)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '56'
Debug: (0.250376) - (usage: 14088992) - (peak: 14215968)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '68'
Debug: (0.251631) - (usage: 14096784) - (peak: 14216936)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '69'
Debug: (0.252852) - (usage: 14103088) - (peak: 14218256)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '70'
Debug: (0.254161) - (usage: 14109400) - (peak: 14220024)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '71'
Debug: (0.255405) - (usage: 14115712) - (peak: 14222096)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '72'
Debug: (0.256631) - (usage: 14122008) - (peak: 14225576)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '94'
Debug: (0.257942) - (usage: 14128360) - (peak: 14229624)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '73'
Debug: (0.259271) - (usage: 14134672) - (peak: 14233664)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '74'
Debug: (0.260518) - (usage: 14137744) - (peak: 14238448)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '57'
Debug: (0.261833) - (usage: 14142968) - (peak: 14242000)
(mysql): SELECT * FROM cms_content WHERE content_id IN (76,77,75) ORDER BY hierarchy
Debug: (0.264275) - (usage: 14291384) - (peak: 14356392)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '58'
Debug: (0.265663) - (usage: 14300048) - (peak: 14397616)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '76'
Debug: (0.266914) - (usage: 14307480) - (peak: 14401016)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '77'
Debug: (0.268216) - (usage: 14313784) - (peak: 14405144)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '75'
Debug: (0.269688) - (usage: 14318920) - (peak: 14409608)
(mysql): SELECT * FROM cms_content WHERE content_id IN (80,78,79,97,81,82,83) ORDER BY hierarchy
Debug: (0.27417) - (usage: 14659296) - (peak: 14745688)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '59'
Debug: (0.275545) - (usage: 14665664) - (peak: 14786808)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '80'
Debug: (0.276805) - (usage: 14673128) - (peak: 14787688)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '78'
Debug: (0.278049) - (usage: 14680056) - (peak: 14789152)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '79'
Debug: (0.279387) - (usage: 14687224) - (peak: 14791664)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '97'
Debug: (0.280748) - (usage: 14694104) - (peak: 14795352)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '81'
Debug: (0.282121) - (usage: 14700432) - (peak: 14799928)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '82'
Debug: (0.283386) - (usage: 14707432) - (peak: 14803952)
(mysql): SELECT * FROM cms_content_props WHERE content_id = '83'
Debug display of 'End of Menu Manager Display':(0.337048) - (usage: 14831392) - (peak: 15173208)
Debug: (0.341596) - (usage: 14756384) - (peak: 15173208)
(mysql): INSERT INTO cms_adminlog (timestamp, user_id, username, item_id, item_name, action, ip_addr) VALUES (1336895104,'1','visualgraphics',-1,'ImagePicker','Module is not properly cleaning input params','217.228.103.128')
Debug: (0.356827) - (usage: 14771944) - (peak: 15173208)
(mysql): select image_file, image_url FROM cms_module_imagepicker where page_id='60' and image_name='headerimage'
Debug: (0.361597) - (usage: 15024984) - (peak: 15173208)
Loading /www/htdocs/xxxxx/modules/Search/Search.module.php = 311480 bytes for an approximate total of 7848840
Debug: (0.372398) - (usage: 15405744) - (peak: 15489608)
(mysql): SELECT * from cms_module_templates WHERE module_name = 'Search' and template_name = 'displaysearch' LIMIT 1
Debug: (0.372976) - (usage: 15403664) - (peak: 15530912)
(mysql): SELECT module_name,template_name,modified_date
FROM cms_module_templates
Debug: (0.384417) - (usage: 15444968) - (peak: 15616592)
Loading /www/htdocs/xxxxx/modules/CMSPrinting/CMSPrinting.module.php = 154064 bytes for an approximate total of 8002904
Debug: (0.389897) - (usage: 15605016) - (peak: 15678520)
(mysql): SELECT * from cms_module_templates WHERE module_name = 'CMSPrinting' and template_name = 'linktemplate' LIMIT 1
Debug: (0.437344) - (usage: 16088368) - (peak: 16336856)
Loading /www/htdocs/xxxxx/modules/Gallery/lib/class.Gallery_utils.php = 258528 bytes for an approximate total of 8261432
Debug: (0.438091) - (usage: 16089512) - (peak: 16336856)
(mysql): SELECT g.*, gp.hideparentlink, gt.templateid, gt.template, gt.thumbwidth, gt.thumbheight, gt.resizemethod, gt.maxnumber, gt.sortitems
FROM cms_module_gallery g
LEFT JOIN cms_module_gallery_props gp
ON g.fileid=gp.fileid
LEFT JOIN cms_module_gallery_templateprops gt
ON gp.templateid=gt.templateid
WHERE g.filename='' AND g.filepath=''
Debug: (0.449772) - (usage: 16093616) - (peak: 16336856)
(mysql): SELECT *
FROM cms_module_gallery_templateprops
WHERE template='Fancybox' OR templateid='Fancybox'
Debug: (0.454947) - (usage: 16172984) - (peak: 16406544)
(mysql): SELECT fd.*, fv.value
FROM cms_module_gallery_fielddefs fd
LEFT JOIN cms_module_gallery_fieldvals fv
ON fd.fieldid = fv.fieldid AND fv.fileid = '1'
WHERE fd.dirfield = 1 AND fd.public = 1 ORDER BY fd.sortorder ASC
Debug: (0.458828) - (usage: 16184904) - (peak: 16406544)
(mysql): SELECT
g1.*, g2.filepath AS thumbpath, g2.filename AS thumbname
FROM
cms_module_gallery g1
LEFT JOIN
cms_module_gallery g2
ON
g1.defaultfile = g2.fileid
WHERE
g1.filepath=''
Debug: (0.460801) - (usage: 16229200) - (peak: 16406544)
(mysql): SELECT fd.*, fv.value
FROM cms_module_gallery_fielddefs fd
LEFT JOIN cms_module_gallery_fieldvals fv
ON fd.fieldid = fv.fieldid AND fv.fileid = '75'
WHERE fd.dirfield = 1 AND fd.public = 1 ORDER BY fd.sortorder ASC
Debug: (0.481715) - (usage: 16234432) - (peak: 16406544)
(mysql): SELECT fd.*, fv.value
FROM cms_module_gallery_fielddefs fd
LEFT JOIN cms_module_gallery_fieldvals fv
ON fd.fieldid = fv.fieldid AND fv.fileid = '204'
WHERE fd.dirfield = 1 AND fd.public = 1 ORDER BY fd.sortorder ASC
Debug: (0.498784) - (usage: 16239600) - (peak: 16406544)
(mysql): SELECT fd.*, fv.value
FROM cms_module_gallery_fielddefs fd
LEFT JOIN cms_module_gallery_fieldvals fv
ON fd.fieldid = fv.fieldid AND fv.fileid = '190'
WHERE fd.dirfield = 1 AND fd.public = 1 ORDER BY fd.sortorder ASC
Debug: (0.506057) - (usage: 16244744) - (peak: 16406544)
(mysql): SELECT fd.*, fv.value
FROM cms_module_gallery_fielddefs fd
LEFT JOIN cms_module_gallery_fieldvals fv
ON fd.fieldid = fv.fieldid AND fv.fileid = '151'
WHERE fd.dirfield = 1 AND fd.public = 1 ORDER BY fd.sortorder ASC
Debug: (0.520043) - (usage: 16249912) - (peak: 16406544)
(mysql): SELECT fd.*, fv.value
FROM cms_module_gallery_fielddefs fd
LEFT JOIN cms_module_gallery_fieldvals fv
ON fd.fieldid = fv.fieldid AND fv.fileid = '278'
WHERE fd.dirfield = 1 AND fd.public = 1 ORDER BY fd.sortorder ASC
Debug: (0.54294) - (usage: 16255032) - (peak: 16406544)
(mysql): SELECT fd.*, fv.value
FROM cms_module_gallery_fielddefs fd
LEFT JOIN cms_module_gallery_fieldvals fv
ON fd.fieldid = fv.fieldid AND fv.fileid = '220'
WHERE fd.dirfield = 1 AND fd.public = 1 ORDER BY fd.sortorder ASC
Debug: (0.555815) - (usage: 16260256) - (peak: 16406544)
(mysql): SELECT fd.*, fv.value
FROM cms_module_gallery_fielddefs fd
LEFT JOIN cms_module_gallery_fieldvals fv
ON fd.fieldid = fv.fieldid AND fv.fileid = '250'
WHERE fd.dirfield = 1 AND fd.public = 1 ORDER BY fd.sortorder ASC
Debug: (0.573188) - (usage: 16265440) - (peak: 16406544)
(mysql): SELECT fd.*, fv.value
FROM cms_module_gallery_fielddefs fd
LEFT JOIN cms_module_gallery_fieldvals fv
ON fd.fieldid = fv.fieldid AND fv.fileid = '331'
WHERE fd.dirfield = 1 AND fd.public = 1 ORDER BY fd.sortorder ASC
Debug: (0.586594) - (usage: 16270584) - (peak: 16406544)
(mysql): SELECT fd.*, fv.value
FROM cms_module_gallery_fielddefs fd
LEFT JOIN cms_module_gallery_fieldvals fv
ON fd.fieldid = fv.fieldid AND fv.fileid = '116'
WHERE fd.dirfield = 1 AND fd.public = 1 ORDER BY fd.sortorder ASC
Debug: (0.653405) - (usage: 16334712) - (peak: 16422456)
(mysql): SELECT * from cms_module_templates WHERE module_name = 'Gallery' and template_name = 'Fancybox' LIMIT 1
Debug: (0.682083) - (usage: 16321024) - (peak: 16646248)
(mysql): SELECT * from cms_module_templates WHERE module_name = 'Gallery' and template_name = 'Fancybox'
Debug: (0.684565) - (usage: 16126952) - (peak: 16646248)
(mysql):
SELECT count(mn.news_id) as count
FROM cms_module_news mn
LEFT OUTER JOIN cms_module_news_categories mnc
ON mnc.news_category_id = mn.news_category_id
LEFT OUTER JOIN cms_users u
ON u.user_id = mn.author_id
WHERE
status = 'published'
AND
( IFNULL(start_time, '1970-01-01 01:00:01') < '2012-05-13 09:45:04') AND (( IFNULL(end_time, '1970-01-01 01:00:01') = '1970-01-01 01:00:01') OR (end_time > '2012-05-13 09:45:04')) LIMIT 1
Debug: (0.687349) - (usage: 16214672) - (peak: 16646248)
(mysql):
SELECT
mn.*,
mnc.news_category_name,
mnc.long_name,
u.username,
u.first_name,
u.last_name
FROM cms_module_news mn
LEFT OUTER JOIN cms_module_news_categories mnc
ON mnc.news_category_id = mn.news_category_id
LEFT OUTER JOIN cms_users u
ON u.user_id = mn.author_id
WHERE
status = 'published'
AND
( IFNULL(start_time, '1970-01-01 01:00:01') < '2012-05-13 09:45:04') AND (( IFNULL(end_time, '1970-01-01 01:00:01') = '1970-01-01 01:00:01') OR (end_time > '2012-05-13 09:45:04')) ORDER BY news_date desc LIMIT 0, 3
Debug: (0.687747) - (usage: 16235672) - (peak: 16646248)
(mysql): SELECT A.value,B.id,B.name,B.type FROM cms_module_news_fieldvals A, cms_module_news_fielddefs B WHERE A.fielddef_id = B.id AND B.public = 1 AND A.news_id = '3' ORDER BY B.item_order
Debug: (0.689284) - (usage: 16243944) - (peak: 16693992)
(mysql): SELECT A.value,B.id,B.name,B.type FROM cms_module_news_fieldvals A, cms_module_news_fielddefs B WHERE A.fielddef_id = B.id AND B.public = 1 AND A.news_id = '2' ORDER BY B.item_order
Debug: (0.692018) - (usage: 16383704) - (peak: 16698672)
Loading /www/htdocs/xxxxx/modules/News/lib/class.news_ops.php = 137528 bytes for an approximate total of 8398960
Debug: (0.692598) - (usage: 16380168) - (peak: 16698672)
(mysql):
SELECT news_category_id, news_category_name, hierarchy, long_name
FROM cms_module_news_categories
WHERE hierarchy not like ''
ORDER by hierarchy
Debug: (0.693877) - (usage: 16388592) - (peak: 16698672)
(mysql): SELECT COUNT(news_id) as cnt FROM cms_module_news WHERE news_category_id='1' AND (( IFNULL(end_time, '1970-01-01 01:00:01') = '1970-01-01 01:00:01') OR (end_time > '2012-05-13 09:45:04')) AND status = 'published'
Debug: (0.695698) - (usage: 16436304) - (peak: 16698672)
(mysql): SELECT * from cms_module_templates WHERE module_name = 'News' and template_name = 'summarySample' LIMIT 1
Debug display of 'Start of Menu Manager Display':(0.723987) - (usage: 16379592) - (peak: 16901728)
Debug: (0.72925) - (usage: 16411856) - (peak: 16901728)
(mysql): SELECT * from cms_module_templates WHERE module_name = 'MenuManager' and template_name = 'domain_footermenu' LIMIT 1
Debug display of 'End of Menu Manager Display':(0.747778) - (usage: 16368584) - (peak: 16901728)
Debug: (0.748285) - (usage: 16283256) - (peak: 16901728)
start global_content_get_template
Debug: (0.751273) - (usage: 16439488) - (peak: 16901728)
Loading /www/htdocs/xxxxx/lib/classes/class.globalcontentoperations.inc.php = 154576 bytes for an approximate total of 8553536
Debug: (0.752014) - (usage: 16443568) - (peak: 16901728)
(mysql): SELECT htmlblob_id, htmlblob_name, html, owner, use_wysiwyg, description, modified_date FROM cms_htmlblobs WHERE htmlblob_name = 'footer' LIMIT 1
Debug: (0.752465) - (usage: 16442920) - (peak: 16901728)
end global_content_get_template
Debug: (0.752613) - (usage: 16443360) - (peak: 16901728)
start global_content_get_timestamp
Debug: (0.752762) - (usage: 16443896) - (peak: 16901728)
end global_content_get_timestamp
Debug: (0.759628) - (usage: 16878088) - (peak: 17074064)
Loading /www/htdocs/xxxxx/modules/CMSMailer/CMSMailer.module.php = 324968 bytes for an approximate total of 8878504
Debug: (0.765464) - (usage: 17230840) - (peak: 17438184)
Loading /www/htdocs/xxxxx/modules/FileManager/FileManager.module.php = 343632 bytes for an approximate total of 9222136
Debug: (0.768033) - (usage: 17355208) - (peak: 17528584)
Loading /www/htdocs/xxxxx/modules/ModuleManager/ModuleManager.module.php = 116808 bytes for an approximate total of 9338944
Debug: (0.770421) - (usage: 17476136) - (peak: 17645176)
Loading /www/htdocs/xxxxx/modules/ThemeManager/ThemeManager.module.php = 113704 bytes for an approximate total of 9452648
Debug: (0.773111) - (usage: 17344328) - (peak: 17680120)
Loading /www/htdocs/xxxxx/lib/classes/class.usertagoperations.inc.php = 73032 bytes for an approximate total of 9525680
Debug: (0.773709) - (usage: 17344864) - (peak: 17680120)
(mysql): SELECT * FROM cms_userplugins ORDER BY userplugin_name
Debug: (0.792915) - (usage: 17115672) - (peak: 17680120)
calling module Gallery from event ContentPostRender
Debug: (0.793549) - (usage: 17123168) - (peak: 17680120)
calling module TinyMCE from event ContentPostRender
Debug: (0.794723) - (usage: 17125056) - (peak: 17680120)
calling module Showtime from event ContentPostRender
calling module Gallery from event ContentPostRender
Debug: (0.793549) - (usage: 17123168) - (peak: 17680120)
ist ziemlich am Ende der Liste.
Offline
#16 13. Mai 2012 13:19
- NaN
- Moderator
- Ort: Halle (Saale)
- Registriert: 09. November 2010
- Beiträge: 4.437
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
Okay, dann wissen wir zumindest, dass eigentlich alles nach Plan verlaufen sollte.
Die Modulfunktionen, die beim Event ContentPostRender ausgeführt werden, sind alle ähnlich und arbeiten auch zuverlässig. Der Ablauf ist folgendermaßen: diese Funktionen fügen dem Head des Templates etwas hinzu, was vorher beim tatsächlichen Aufruf des Moduls im Template vorbereitet wurde.
D.h. die Module werden ausgeführt, ermitteln Stylesheets und Javascripts, speichern das in einer Variable und am Ende, wenn sie durch die Ereignisverwaltung erneut ausgeführt werden, nehmen sie diese Variable und packen ihren Inhalt in den Head.
Soviel zur Theorie.
Fehlerquellen können sein:
1. dass die Module die Daten für den Head nicht finden
2. dass diese Daten leer sind
3. dass sie die falschen Daten finden
4. dass es im Template kein </head gibt (genau davor werden nämlich die Daten eingefügt)
5. dass diese Daten von anderen Aufrufen des selben Moduls überschrieben werden.
Letzteres kann bei keinem der Module passieren. Beim Showtime Modul kann es lediglich passieren, dass nur die Daten des ersten Modulaufrufs eingefügt werden. Ich weiß allerdings nicht, ob das bei diesem Modul eine große Rolle spielt.
zu 1.:
Hast Du beim Debuggen auch mal einen Blick in den HTML Code geworfen?
Stehen da evtl. im Head noch weitere Fehlermeldungen?
(Nicht im Firebug schauen. Der verschluckt da manchmal Dinge, die ihm nicht gefallen.)
zu 2.:
Lässt sich leicht prüfen.
Existiert das Gallery-Template, welches im Frontend verwendet wird?
Wenn ja, was steht dort drin?
Wenn nein, welches ist das Standard-Template und was steht dort drin?
(Hast Du ja eigentlich schon beantwortet)
Punkt 3 ist schwierig, zumal die Ursache dafür kompliziert sein dürfte. Ohne genaue Analyse der Datenbank wird man das nicht klären können.
zu 4.:
Ist einfach zu prüfen: Schau einfach nochmal ganz genau ins Seiten-Template bzw. Globale Inhaltsblöcke.
Module: GBFilePicker, AdvancedContent
Sicherheit: Beispiel .htaccess-Datei
CMSms 1.12 unter PHP 7:
cmsms-1.12.3.zip (inoffiziell - komplett inkl. Installer)
CMSms 1.12 unter PHP 8:
cmsms-1.12.4.zip (inoffiziell - komplett inkl. Installer)
Offline
#17 13. Mai 2012 15:52
- dylan
- kennt CMS/ms
- Ort: Münsterland
- Registriert: 16. Dezember 2010
- Beiträge: 303
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
1. dass die Module die Daten für den Head nicht finden
<head></head> ist vorhanden. Laut W3C validator ist die Seite valide. Keine wirklich prägnante Aussage, aber immerhin ein Hinweis das die Seite nicht völlig daneben ist.
2. dass diese Daten leer sind
Das ist mein Fancybox Template (Standard-Template). Die Thumbs werden aufgebaut, Titel etc. angezeigt. Wenn ich ein Thumb zum vergrößern anklicke wird das Bild als JPEG im Browser geöffnet, CSS und scripts fehlen im header.
<div class="gallery">
{if !empty($module_message)}<h4>{$module_message|escape}</h4>{/if}
{if !empty($gallerytitle)}<h3>{$gallerytitle}</h3>{/if}
{if !empty($gallerycomment)}<div class="gallerycomment">{$gallerycomment}</div>{/if}
{if $imagecount > 1}
<p>{$imagecount}</p>
{/if}
<div class="pagenavigation">
{if $pages < 1}
<div class="prevpage">{$prevpage}</div>
<div class="nextpage">{$nextpage}</div>
{/if}
{if !$hideparentlink && !empty($parentlink)}<div class="parentlink">{$parentlink}</div>{/if}
{if $pages > 1}<div class="pagelinks">{$pagelinks}</div>{/if}
</div>
{foreach from=$images item=image}
<div class="img">
{if $image->isdir}
<a href="{$image->file}" title="{$image->titlename}"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" /></a><br />
{$image->titlename}
{else}
<a class="group" href="{$image->file|escape:'url'|replace:'%2F':'/'}" title="{$image->titlename}" rel="gallery-{$galleryid}"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" /></a>
{/if}
</div>
{/foreach}
<div class="galleryclear"> </div>
</div>
3. dass sie die falschen Daten finden
Dann werde ich mit meinen bescheidenen Kenntnissen hier nicht viel erreichen können.
4. dass es im Template kein </head gibt (genau davor werden nämlich die Daten eingefügt)
Der head. Zwei jQuery scripts sind manuell hinzugefügt: Fontscale und Hover event on the iPad/iPhone/iPod, ich hoffe nicht das diese für die Misere verantwortlich sind?
{process_pagedata}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta name="MSSmartTagsPreventParsing" content="true" />{metadata}<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="keywords" lang="de" content="" />
<meta name="description" content="" />
<title>{sitename} - {title}</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" media="screen,projection" href="layout.css" />
<link rel="stylesheet" media="print, embossed" href="print.css" />
<!--[if lte IE 8]>
<style type="text/css">
@import url(layout_ie.css);
</style>
<![endif]-->
{cms_jquery exclude='jquery.ui.nestedSortable-1.3.4.js,jquery-ui-1.8.14.min.js,jquery.json-2.2.js'}
<script type="text/javascript" src="cookie.js"></script>
<script type="text/javascript" src="fontscale.js"></script>
{* fontscale *}
{literal}
<script type="text/javascript">
$(document).ready(function(){
$(".up").fontscale(".content, .sidebar","up",{unit:"em",increment:1});
$(".down").fontscale(".content, .sidebar","down",{unit:"em",increment:1});
$(".reset").fontscale(".content, .sidebar","reset");
});
</script>
{/literal}
{* /fontscale *}
{* iOS jQuery hover fix *}
{literal}
<script type='text/javascript'>
$(document).ready(function(){
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
$("#primary-nav li a").click(function(){ // Update class to point at the head of the list
});
}
});
</script>
{/literal}
{* /iOS jQuery hover fix *}
</head>
5. dass diese Daten von anderen Aufrufen des selben Moduls überschrieben werden.
Die Galerie wird simpelst in einer Seite aufgerufen: {Gallery}, da das Standard-Template (oben) definiert ist, war kein Anlass für weitere Parameter.
Danke, dylan
Offline
#18 16. Mai 2012 12:08
- dylan
- kennt CMS/ms
- Ort: Münsterland
- Registriert: 16. Dezember 2010
- Beiträge: 303
Re: Welcher Tag ist für das hinzufügen von code im header verantwortlich?
So, nun weiß ich wo das Problem mit dem header liegt. Showtime
Das Modul Showtime 3.2 ist für die Misere verantwortlich. Ich habe es installiert, da es für meinen Einsatz aber nicht flexibel genug war, wieder (über den Modul-Manager) deinstalliert und gelöscht.
Danach war der Zugriff aller Module auf den header nicht mehr möglich. Die Galerie funktioniert nicht mehr, und und und
Ab zur nächsten Neuinstallation, diesmal ohne das Modul Showtime
Gibt es vielleicht Alternativen zu Showtime?
Offline
Seiten: 1