Jump to content

joe_g

Members
  • Content Count

    175
  • Joined

  • Last visited

Everything posted by joe_g

  1. Yeah, I can see how things leans towards twig and similar. What I run into with twig and the likes is lots of small annoying exceptions: Like, I have to do something with the second last item in a list, for example. My sites are usually quite simple, mostly pulling stuff from the API and showing it. So there isn't enough actual 'logic' to warrant MVC, only simpler "layout logic" (like re-order, truncate, etc). This is why I'm mourning the loss of the (to me) perfect solution of <?foreach():?> One confusing thing is that quite a lot of hosts still allow shorttags with php 7+, just not all..... I'm sure there is a discussion somewhere about shorttags, but it seems it's not 100% consensus that they need to go. But I should probably just get used to some MVC templating 🙂
  2. Yes, it's not finished. My point is the syntax. I'm looking for a way to avoid having html inside php. In other words avoid this $imgOrCount = '<img src="'. $project->iconimage->size(800,800,['upscaling'=>false, 'cropping'=>false]). '">'; for me personally, this way of writing makes it a bit harder to spot errors (like forgetting a ", or similar). It's just that <?php foreach($projects as $project):?> is a lot less readable than <?foreach($projects as $project):?> if you write a lot of this type of statements
  3. I'm currently doing this. But it makes my eyes bleeeeed. On top of that, sublime can't handle the tabulation properly with this syntax 😮 <div class="projects"> <?php foreach($projects as $project):?> <div class="project"> <?php if($project->iconimage):?> <?php $thumb = $project->iconimage->size(800,800,['upscaling'=>false, 'cropping'=>false]); ?> <img src="<?=$thumb->url?>"> <?php else:?> <?php $total = count($pages->get('/missingimages')->missingimages); ?> <img src="<?=$thumb->url?>"> <?php endif;?> </div> <?php endforeach;?> </div>
  4. Hi everyone, I just wanted to see what your opinions were on this matter. I'm a big fan of php's template syntax: <?foreach():?> <?endforeach?> It produces nice HTML highlighting. I've notices that some hosting companies removing the support for short tags while upgrading to PHP 7. This makes the template syntax a lot less attractive. What do you use? Am I stuck in the past? Should I just use twig? thank you, j
  5. thanks! yes indeed — very sharp-eyed — that seemed to be causing the problem. not sure i understand fully what you mean with created and saved vs. added. But the created date is used on purpose so that it only happens once.
  6. Hi there, I have the following hook that loops through and overloads a date. It's a template type book page. This page also has the field image. My problem is, with this code I need to save the book page twice for an image thumbnail to be generated - even there is no mentioning of the image field in the code. (I need to press publish, then save). If I only press "publish" once, the 'book' page will not get an image thumbnail. In some way the code below cancels the image generation for this page, but I can't figure out why - or how it's connected..? $pages->addHookAfter('saveReady', function($event) { $p = $event->arguments(0); if($p->template->name == 'book') { $lastcreated = $parent->lastcreated; if($p->created > $lastcreated) { $p->parent->lastcreated = $p->created; } $p->parent->save(); } });
  7. Hi, is there a way I can do something like? $p->find->('sort=-children:eq(0).created,limit='.$limit); In other words, sort by the first childs value of a field. thanks, J
  8. Interesting! times is a repeater with "startdate" (date) "enddate" (date) and "occasion" (string). My function above loops through them to get the earliest start date and latest enddate, and store them in the parent page event, The clients adds a bunch of times (repeater), saves the "event", and then the times are gone. They would have to enter the times again. Now after testing a bunch of times, it does seem to relate to required field: If i skip the required startdate, create 3 times, and press save one of the times was missing. But this only happened twice, then not at all when trying to 10 times more ! Strange, but not the end of the world. But it does seem that the required error message does affect saving a bit.....
  9. tx I'll try that and see if it helps!
  10. Hi there, I have "events" with lots of children "times", to make some queries possible, I copy the earliest / latest time-child into the parent event with this code: This works MOST of the time (99.9%), but the client has been complaining for a long time that this sometimes fails. I've been quite a lot with trying to reproduce the error with no luck. It's maybe because I don't know exactly how hooks work. So, my question is, is this a safe way to do this? Or is it a bad idea to modify a page while saving, like this? $time->startdate is mandatory, but the enddate isn't. Thats why I copy startdate to enddate, if enddate is empty. thanks! $pages->addHook('saveReady', function($event) { $p = $event->arguments(0); if($p->template->name == 'event') { $p->of(false); $enddate = 0; $startdate = 2147483646; foreach($p->times as $time) { if(!$time->enddate) { $time->enddate = $time->startdate; } if($time->enddate > $enddate) $enddate = $time->enddate; if($time->startdate < $startdate) $startdate = $time->startdate; } $p->enddate = $enddate; $p->startdate = $startdate; } });
  11. So I ran into this peculiarity: If I put this piece of code at the end of my 'util.php' (included first on my head.php) — then things work: <? function totallyRandomFunctionName() { /* wire('pages');*/ } ?> Note how wire('pages') is commented out, but it still somehow does the job. Now, if I remove the commented line: <? function totallyRandomFunctionName() { } ?> Then I get this error earlier in util.php, suddenly the wire function isn't existing...: Uncaught Error: Call to undefined function wire() in /xx/util.php:86 Line 86 has: "wire('config')->urls->root" in it. I'm quite curious what goes on here!
  12. "Page::addable", that is what I was looking for - thank you.
  13. Hi there, I'm trying to limit a specific user can only add pages as a child (under) a page created by themselves. The discussion in this thread gets close, it's a working solution on how to only allow editing on pages you created yourself. I'm using this and it works well. But I'm not sure how to modify this for my purposes. I'm suspecting I need to do to something like $this->addHookBefore("Page::added", $this, 'added'); then in "added" check if parent is created by the current user. But I'm a bit lost on how exactly to do this. thank you! /J
  14. After spending another day on this: It's the theme. The old theme (that comes along in the upgrade) can't display the page list in the backend. But still, seemingly it only works if you do it via the site exporter, and not upgrade the usual way by replacing the wire/index/htaccess..
  15. Hello again, Thanks for you answer but my problem isn't related to the namespace. If i try to go from 2.5 to 2.8 I get the same problem: No pages (screenshot). It would be the same if i upgraded directly to v.3. I'm not sure how to start debugging this. Thank you!
  16. I fixed this issue in a different way: I saw the ajax request printed a warning "Cannot set max execution time limit due to system policy", so I commented out line 955 in core/ImageSizerEngine.php seems to work j
  17. Hi there, I've got an old site with tons of content written in markdown. Wysiwyg editing has matured a bit since 2010 and the client would like to change to ckedit. The question is what to do with all the old markdown, can it be converted somehow? Did anyone do this? Any tips? – thanks!
  18. thank you!, I realise things has improved with v.3. It seems I can also do: $result = $pages->get('/all')->children('tags!=[name=xx],limit=10');
  19. hi, i came across something that is possibly a bug, (or maybe something I'm not understanding): I have several /thing under /things, so like /things/things1. "Thing" contains a page field "tags". Tags is a list of checkboxes. $pages->get('/things')->children('tags.name!=xx,limit=10') My problem is that this query doesn't return the children with no (0) 'tags' checked (it's a page field, checkboxes, for tagging). I'd like to create a query that returns all the pages that doesn't have the tag "xx", regardless if no tags or some tags have been selected. thanks!
  20. amazing, thank you! Horst, that looks perfect - will try that one
  21. Hi, is there a way to move the position of a page to first with the API? I ran into an old problem: I'd like new pages to appear first, instead of last, but still retain manual drag-drop order – discussed in 2013: I figure I could do a save hook that moves the page to the top, if there is a way via the API..
  22. thank you, Is there anything else I can try to make the 2.7 -> 2.8 work?
  23. Aha, more info: going from 2.7 -> 2.8 seems to be the problem, when viewing the upgraded backend in debug=true mode shows this, instead of the page tree. Does this help somehow? I tried to anonymize the info If I missed something, please let me know. ID Path Type Loader 1 / Page 2 /processwire/ Page 28 /processwire/access/ Page 29 /processwire/access/users/ Page 30 /processwire/access/roles/ Page 37 /processwire/access/roles/guest/ Role 38 /processwire/access/roles/superuser/ Role 40 /processwire/access/users/guest/ User 41 /processwire/access/users/admin-bsb/ User 22 /processwire/setup/ Page 1008 /processwire/setup/languages/ Page 1009 /processwire/setup/languages/default/ Language 1011 /processwire/setup/languages/nl/ Language 1012 /processwire/setup/languages/fr/ Language 1016 /processwire/setup/languages/en/ Language 31 /processwire/access/permissions/ Page 32 /processwire/access/permissions/page-edit/ Permission 34 /processwire/access/permissions/page-delete/ Permission 35 /processwire/access/permissions/page-move/ Permission 36 /processwire/access/permissions/page-view/ Permission 50 /processwire/access/permissions/page-sort/ Permission 51 /processwire/access/permissions/page-template/ Permission 52 /processwire/access/permissions/user-admin/ Permission 53 /processwire/access/permissions/profile-edit/ Permission 54 /processwire/access/permissions/page-lock/ Permission 42423 /processwire/access/permissions/batcher/ Permission 145383 /processwire/access/permissions/changelog/ Permission 145384 /processwire/access/permissions/page-lister/ Permission 145387 /processwire/access/permissions/page-edit-recent/ Permission 149496 /processwire/access/permissions/logs-view/ Permission 149497 /processwire/access/permissions/logs-edit/ Permission 3 /processwire/page/ Page 21 /processwire/module/ Page 11 /processwire/setup/template/ Page 16 /processwire/setup/field/ Page 42422 /processwire/setup/batcher/ Page 145379 /processwire/setup/procache/ Page 145382 /processwire/setup/changelog/ Page 149495 /processwire/setup/logs/ Page API Variables (29) Name Class $adminTheme AdminThemeBeurs $cache WireCache $classLoader WireClassLoader $config Config $database WireDatabasePDO $datetime WireDateTime $db DatabaseMysqli $fieldgroups Fieldgroups $fields Fields $fieldtypes Fieldtypes $files WireFileTools $hooks WireHooks $input WireInput $languages Languages $log WireLog $mail WireMailTools $modules Modules $notices Notices $page Page $pages Pages $permissions Permissions $process ProcessPageView $roles Roles $sanitizer Sanitizer $session Session $templates Templates $user User $users Users $wire ProcessWire Session (7) Key Value ProcessPageView Array ( [loginRequestPageID] => 2 ) ProcessLogin Array ( [beforeLoginChecks] => 1 ) _user Array ( [id] => 41 [ts] => 1486124294 [challenge] => jw4R99kCvYWmfC/Hx3SMUYb3lgYQSjxxx [fingerprint] => d4054ce271e6335dacae6d16351xxx ) hidpi touch SessionCSRF Array ( [name] => TOKEN1405053845X1486124218 [TOKEN1405053845X1486124xxx] => H7qEEaTSf58pM2.bKYhPF.q9RDdlHxxx ) ModulesUninstalled Array ( [0] => AdminThemeDefault [1] => AdminThemeReno [2] => CommentFilterAkismet [3] => FieldtypeComments [4] => FieldtypeNotifications [5] => FieldtypeOptions [6] => FieldtypePageTable [7] => FieldtypeSelector [8] => FileCompilerTags [9] => Helloworld [10] => ImageSizerEngineIMagick [11] => InputfieldCommentsAdmin [12] => InputfieldPageTable [13] => LanguageFieldTabs [14] => LanguageSupportPageNames [15] => LanguageTabs [16] => LazyCron [17] => MarkupCache [18] => MarkupPageFields [19] => MarkupRSS [20] => PageFrontEdit [21] => PagePathHistory [22] => PagePaths [23] => ProcessCommentsManager [24] => ProcessForgotPassword [25] => ProcessPageClone [26] => ProcessSessionDB [27] => SessionHandlerDB [28] => SystemNotifications [29] => TextformatterNewlineBR [30] => TextformatterNewlineUL [31] => TextformatterStripTags ) Modules Loaded (25/86) Class Version Title PageRender 105 Page Render PagePermissions 105 Page Permissions ProcessPageSearch 106 Page Search InputfieldSelector 27 Selector MarkupPageArray 100 PageArray Markup FieldtypeFieldsetOpen 100 Fieldset (Open) FieldtypeFieldsetTabOpen 100 Fieldset in Tab (Open) FieldtypePassword 101 Password FieldtypeRepeater 105 Repeater FieldtypeCheckbox 101 Checkbox FieldtypeFieldsetClose 100 Fieldset (Close) FieldtypeTextareaLanguage 100 Textarea (Multi-language) FieldtypePageTitleLanguage 100 Page Title (Multi-Language) FieldtypeTextLanguage 100 Text (Multi-language) LanguageSupport 103 Languages Support LanguageSupportFields 100 Languages Support - Fields JqueryUI 196 jQuery UI JqueryCore 183 jQuery Core SystemUpdater 15 System Updater PageReferenceLink 1 Page Reference Link FieldtypeColorPicker 201 ColorPicker TemplateDecorator 104 Template Decorator AdminThemeBeurs 1 Default Admin Theme PageListImageLabel 103 Page List Image Label FieldtypeRangeSlider 103 Range Slider 25 modules loaded / 86 not loaded Hooks (50) When Method::object Visited by Type Priority after Languages->added() LanguageSupportFields::hookLanguageAdded() instance method 100.0 after Languages->deleted() LanguageSupportFields::hookLanguageDeleted() instance method 100.0 after Pages->added() LanguageSupport::hookPageAdded() instance method 100.0 after Pages->delete() FieldtypePage::hookPagesDelete() instance method 100.0 after Pages->delete() PageRender::clearCacheFile() instance method 100.1 after Pages->deleteReady() FieldtypeRepeater::hookPagesDelete() instance method 100.0 after Pages->deleteReady() LanguageSupport::hookPageDeleteReady() instance method 100.1 after Pages->save() PageRender::clearCacheFile() instance method 100.0 after Pages->saveReady() anonymous function() instance method 100.0 after WireDatabasePDO->unknownColumnError() Languages::hookUnknownColumnError() instance method 100.0 after Field::getInputfield() LanguageSupport::hookFieldGetInputfield() class method 100.0 before Fieldtype::formatValue() LanguageSupportFields::hookFieldtypeFormatValue() class method 100.0 after FieldtypeLanguageInterface::getConfigInputfields() LanguageSupportFields::fieldtypeGetConfigInputfields() class method 100.0 after FieldtypeLanguageInterface::loadPageField() LanguageSupportFields::fieldtypeLoadPageField() class method 100.0 before FieldtypeLanguageInterface::sleepValue() LanguageSupportFields::fieldtypeSleepValue() class method 100.0 after FieldtypeLanguageInterface::wakeupValue() LanguageSupportFields::fieldtypeWakeupValue() class method 100.0 before Inputfield::processInput() LanguageSupport::hookInputfieldBeforeProcessInput() class method 100.1 after Inputfield::processInput() LanguageSupport::hookInputfieldAfterProcessInput() class method 100.0 before Inputfield::render() LanguageSupport::hookInputfieldBeforeRender() class method 100.0 after Inputfield::render() LanguageSupport::hookInputfieldAfterRender() class method 100.1 before Inputfield::renderValue() LanguageSupport::hookInputfieldBeforeRender() class method 100.0 after Inputfield::renderValue() LanguageSupport::hookInputfieldAfterRender() class method 100.1 after InputfieldAsmSelect::render() PageReferenceLink::renderASMSelect() class method 100.0 after InputfieldPageListSelectMultiple::render() PageReferenceLink::renderMultiple() class method 100.0 after Page::addable() PagePermissions::addable() class method 100.0 after Page::deletable() PagePermissions::deleteable() class method 100.0 after Page::deleteable() PagePermissions::deleteable() class method 100.0 after Page::editable() PagePermissions::editable() class method 100.0 after Page::getLanguageValue() LanguageSupport::hookPageGetLanguageValue() class method 100.0 after Page::listable() PagePermissions::listable() class method 100.0 after Page::moveable() PagePermissions::moveable() class method 100.0 after Page::publishable() PagePermissions::publishable() class method 100.0 after Page::render() PageRender::renderPage() class method 100.0 after Page::setLanguageValue() LanguageSupport::hookPageSetLanguageValue() class method 100.0 after Page::sortable() PagePermissions::sortable() class method 100.0 after Page::trashable() PagePermissions::trashable() class method 100.0 after Page::viewable() PagePermissions::viewable() class method 100.0 after PageArray::render() MarkupPageArray::renderPageArray() class method 100.0 after PageArray::renderPager() MarkupPageArray::renderPager() class method 100.0 before PageFinder::getQuery() LanguageSupportFields::pageFinderGetQuery() class method 100.0 before PageFinder::getQuery() FieldtypeRepeater::hookPageFinderGetQuery() class method 100.1 after ProcessField::fieldAdded() FieldtypeFieldsetTabOpen::hookFieldAdded() class method 100.0 after ProcessField::fieldDeleted() FieldtypeFieldsetTabOpen::hookFieldDeleted() class method 100.0 after ProcessPageEdit::buildForm() TemplateDecorator::hookPageEditForm() class method 100.0 before ProcessPageListRender::getPageLabel() PageListImageLabel::addImageLabel() class method 100.0 after ProcessPageListRender::getPageLabel() TemplateDecorator::hookPageLabel() class method 100.1 after ProcessTemplate::buildEditForm() TemplateDecorator::hookAddForm() class method 100.0 before ProcessTemplate::executeSave() TemplateDecorator::hookSaveForm() class method 100.0 after ProcessTemplate::fieldAdded() FieldtypeFieldsetTabOpen::hookTemplateFieldAdded() class method 100.0 after ProcessTemplate::fieldRemoved() FieldtypeFieldsetTabOpen::hookTemplateFieldRemoved() class method 100.0 PDO Queries ($database) (46) 0 SELECT name, data FROM caches WHERE (name=:name1 OR name=:name2 OR name=:name3 OR name=:name4) AND (expires>=:now OR expires<=:never) -- cache.get(Modules.info|ModulesVersions.info|Modules.wire/modules/|Modules.site/modules/, null) 1 SELECT * FROM modules ORDER BY class -- modules.loadModulesTable() 2 SELECT fields.id,fields.type,fields.flags,fields.name,fields.label,fields.data FROM `fields` ORDER BY fields.name 3 SELECT fieldgroups.id,fieldgroups.name,fieldgroups_fields.fields_id,fieldgroups_fields.data FROM `fieldgroups` LEFT JOIN fieldgroups_fields ON fieldgroups_fields.fieldgroups_id=fieldgroups.id ORDER BY sort 4 SELECT templates.id,templates.name,templates.fieldgroups_id,templates.flags,templates.cache_time,templates.data FROM `templates` ORDER BY templates.name 5 SELECT id, templates_id FROM pages WHERE id IN(1,2,28,29,30,37,38,40) 6 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, pages_sortfields.sortfield, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren,field_title.data AS `title__data` FROM `pages` LEFT JOIN pages_sortfields ON pages_sortfields.pages_id=pages.id LEFT JOIN field_title ON field_title.pages_id=pages.id WHERE pages.templates_id=1 AND pages.id IN(1) GROUP BY pages.id 7 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, pages_sortfields.sortfield, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren,field_title.data AS `title__data`,field_process.data AS `process__data` FROM `pages` LEFT JOIN pages_sortfields ON pages_sortfields.pages_id=pages.id LEFT JOIN field_title ON field_title.pages_id=pages.id LEFT JOIN field_process ON field_process.pages_id=pages.id WHERE pages.templates_id=2 AND pages.id IN(2,28,29,30) GROUP BY pages.id 8 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, pages_sortfields.sortfield, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren FROM `pages` LEFT JOIN pages_sortfields ON pages_sortfields.pages_id=pages.id WHERE pages.templates_id=4 AND pages.id IN(37,38) GROUP BY pages.id 9 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, pages_sortfields.sortfield, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren,field_email.data AS `email__data` FROM `pages` LEFT JOIN pages_sortfields ON pages_sortfields.pages_id=pages.id LEFT JOIN field_email ON field_email.pages_id=pages.id WHERE pages.templates_id=3 AND pages.id IN(40) GROUP BY pages.id 10 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren,field_email.data AS `email__data` FROM `pages` LEFT JOIN field_email ON field_email.pages_id=pages.id WHERE pages.parent_id=29 AND pages.templates_id=3 AND pages.id IN(41) GROUP BY pages.id 11 SELECT field_roles.data AS `roles__data` FROM `field_roles` WHERE field_roles.pages_id='41' ORDER BY sort 12 SELECT * FROM pages WHERE id=:id 13 SELECT pages.id,pages.parent_id,pages.templates_id FROM `pages` WHERE (pages.parent_id=1008) AND (pages.templates_id=45) GROUP BY pages.id ORDER BY pages.sort 14 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren FROM `pages` WHERE pages.parent_id=1008 AND pages.templates_id=45 AND pages.id IN(1009,1011,1012,1016) GROUP BY pages.id 15 SELECT id, templates_id FROM pages WHERE id=1008 16 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, pages_sortfields.sortfield, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren FROM `pages` LEFT JOIN pages_sortfields ON pages_sortfields.pages_id=pages.id WHERE pages.templates_id=2 AND pages.id IN(1008) GROUP BY pages.id 17 SELECT id, templates_id FROM pages WHERE id=22 18 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, pages_sortfields.sortfield, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren FROM `pages` LEFT JOIN pages_sortfields ON pages_sortfields.pages_id=pages.id WHERE pages.templates_id=2 AND pages.id IN(22) GROUP BY pages.id 19 SELECT field_language.data AS `language__data` FROM `field_language` WHERE field_language.pages_id='41' ORDER BY sort 20 SELECT pages.id,pages.parent_id,pages.templates_id FROM `pages` WHERE (pages.id>0) AND (pages.parent_id=31) AND (pages.templates_id=5) GROUP BY pages.id ORDER BY pages.name 21 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren FROM `pages` WHERE pages.parent_id=31 AND pages.templates_id=5 AND pages.id IN(42423,145383,149497,149496,34,32,145387,145384,54,35,50,51,36,53,52) GROUP BY pages.id 22 SELECT id, templates_id FROM pages WHERE id=31 23 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, pages_sortfields.sortfield, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren FROM `pages` LEFT JOIN pages_sortfields ON pages_sortfields.pages_id=pages.id WHERE pages.templates_id=2 AND pages.id IN(31) GROUP BY pages.id 24 SELECT pages.id,pages.parent_id,pages.templates_id FROM `pages` JOIN pages AS parent2 ON (pages.parent_id=parent2.id AND (parent2.name='processwire')) JOIN pages AS rootparent ON (parent2.parent_id=rootparent.id AND rootparent.id=1) WHERE pages.name='page' AND (pages.status<9999999) GROUP BY pages.id LIMIT 0,1 25 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, pages_sortfields.sortfield, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren,field_title.data AS `title__data`,field_title.data1011 AS `title__data1011`,field_title.data1012 AS `title__data1012`,field_title.data1016 AS `title__data1016`,field_process.data AS `process__data` FROM `pages` LEFT JOIN pages_sortfields ON pages_sortfields.pages_id=pages.id LEFT JOIN field_title ON field_title.pages_id=pages.id LEFT JOIN field_process ON field_process.pages_id=pages.id WHERE pages.templates_id=2 AND pages.id IN(3) GROUP BY pages.id 26 SELECT field_admin_theme.data AS `admin_theme__data` FROM `field_admin_theme` WHERE field_admin_theme.pages_id='41' 27 SELECT field_title.data AS `title__data`,field_title.data1011 AS `title__data1011`,field_title.data1012 AS `title__data1012`,field_title.data1016 AS `title__data1016` FROM `field_title` WHERE field_title.pages_id='1009' 28 SELECT field_title.data AS `title__data`,field_title.data1011 AS `title__data1011`,field_title.data1012 AS `title__data1012`,field_title.data1016 AS `title__data1016` FROM `field_title` WHERE field_title.pages_id='2' 29 SELECT name, data FROM caches WHERE (name LIKE :name1) AND (expires>=:now OR expires<=:never) -- cache.get(FileCompiler__*, null) 30 SELECT name, data FROM caches WHERE (name=:name1) AND (expires>=:now OR expires<=:never) -- cache.get(FileCompiler__f375a31bff7620db7f2fdea380b89b69, null) 31 SELECT data FROM modules WHERE id=:id -- modules.getConfig(ProcessPageList) 32 SELECT pages.id,pages.parent_id,pages.templates_id FROM `pages` WHERE (pages.id=1) AND (pages.status<9999999) GROUP BY pages.id LIMIT 0,1 33 SELECT name, data FROM caches WHERE (name=:name1) AND (expires>=:now OR expires<=:never) -- cache.get(FileCompiler__e75b90ad837770f70969d2ebc9929c5d, null) 34 SELECT data FROM modules WHERE id=:id -- modules.getConfig(ProcessPageSearch) 35 SELECT pages.id,pages.parent_id,pages.templates_id FROM `pages` WHERE (pages.parent_id=2) AND (pages.status<1024) GROUP BY pages.id ORDER BY pages.sort 36 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, pages_sortfields.sortfield, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren,field_title.data AS `title__data`,field_title.data1011 AS `title__data1011`,field_title.data1012 AS `title__data1012`,field_title.data1016 AS `title__data1016`,field_process.data AS `process__data` FROM `pages` LEFT JOIN pages_sortfields ON pages_sortfields.pages_id=pages.id LEFT JOIN field_title ON field_title.pages_id=pages.id LEFT JOIN field_process ON field_process.pages_id=pages.id WHERE pages.parent_id=2 AND pages.templates_id=2 AND pages.id IN(21) GROUP BY pages.id 37 SELECT pages.id,pages.parent_id,pages.templates_id FROM `pages` WHERE (pages.parent_id=22) AND (pages.status<1024) GROUP BY pages.id ORDER BY pages.sort 38 SELECT false AS isLoaded, pages.templates_id AS templates_id, pages.*, pages_sortfields.sortfield, (SELECT COUNT(*) FROM pages AS children WHERE children.parent_id=pages.id) AS numChildren,field_title.data AS `title__data`,field_title.data1011 AS `title__data1011`,field_title.data1012 AS `title__data1012`,field_title.data1016 AS `title__data1016`,field_process.data AS `process__data` FROM `pages` LEFT JOIN pages_sortfields ON pages_sortfields.pages_id=pages.id LEFT JOIN field_title ON field_title.pages_id=pages.id LEFT JOIN field_process ON field_process.pages_id=pages.id WHERE pages.parent_id=22 AND pages.templates_id=2 AND pages.id IN(11,16,42422,145379,145382,149495) GROUP BY pages.id 39 SELECT field_title.data AS `title__data`,field_title.data1011 AS `title__data1011`,field_title.data1012 AS `title__data1012`,field_title.data1016 AS `title__data1016` FROM `field_title` WHERE field_title.pages_id='22' 40 SELECT field_title.data AS `title__data`,field_title.data1011 AS `title__data1011`,field_title.data1012 AS `title__data1012`,field_title.data1016 AS `title__data1016` FROM `field_title` WHERE field_title.pages_id='1008' 41 SELECT pages.id,pages.parent_id,pages.templates_id FROM `pages` WHERE (pages.parent_id=28) AND (pages.status<1024) GROUP BY pages.id ORDER BY pages.sort 42 SELECT field_title.data AS `title__data`,field_title.data1011 AS `title__data1011`,field_title.data1012 AS `title__data1012`,field_title.data1016 AS `title__data1016` FROM `field_title` WHERE field_title.pages_id='28' 43 SELECT field_title.data AS `title__data`,field_title.data1011 AS `title__data1011`,field_title.data1012 AS `title__data1012`,field_title.data1016 AS `title__data1016` FROM `field_title` WHERE field_title.pages_id='29' 44 SELECT field_title.data AS `title__data`,field_title.data1011 AS `title__data1011`,field_title.data1012 AS `title__data1012`,field_title.data1016 AS `title__data1016` FROM `field_title` WHERE field_title.pages_id='30' 45 SELECT field_title.data AS `title__data`,field_title.data1011 AS `title__data1011`,field_title.data1012 AS `title__data1012`,field_title.data1016 AS `title__data1016` FROM `field_title` WHERE field_title.pages_id='31' Timers (16) boot 0.1767 - includes all boot timers boot.load 0.1320 - includes all boot.load timers boot.load.modules 0.0530 boot.load.fields 0.0358 boot.modules.autoload.init 0.0221 boot.load.fieldgroups 0.0170 boot.modules.autoload.ready 0.0134 boot.load.templates 0.0079 boot.load.pages 0.0073 ProcessPageView.getPage() 0.0059 - /processwire/page/ ProcessPageList.execute() 0.0054 boot.load.fieldtypes 0.0004 boot.load.roles 0.0002 boot.load.permissions 0.0002 boot.load.users 0.0001 boot.load.session 0.0000 To add more timers here… Debug::timer('timer-name'); // start timer, you make up the name execute_some_code(); // any amount of code you want to time Debug::saveTimer('timer-name', 'optional notes'); // stop and save timer User (admin-bsb) Current User Roles guest superuser Current User Permissions batcher changelog logs-edit logs-view page-delete page-edit page-edit-recent page-lister page-lock page-move page-sort page-template page-view profile-edit user-admin Current User Permissions on this page batcher changelog logs-edit logs-view page-delete page-edit page-edit-recent page-lister page-lock page-move page-sort page-template page-view profile-edit user-admin $input->cookie (4) Key Value _gat 1 _ga GA1.2.2125748746.1484908207 wire qphahfv8q532uv5d7d01apsxxx wire_challenge jw4R99kCvYWmfC/Hx3SMUYb3lgYQSxxx Cache (7/0/7) Modules.wire/modules/ type string expires never size 5 kB Modules.site/modules/ type string expires never size 633 bytes ModulesUninstalled.info type array (33 items) expires never size 11 kB ModulesVersions.info type array (14 items) expires never size 135 bytes Permissions.names type array (15 items) expires never size 266 bytes Modules.info type array (110 items) expires never size 13 kB ModulesVerbose.info type array (110 items) expires never size 14 kB Autoload (7) Class File/Details InputfieldText Handled by modules loader (via InputfieldPassword) InputfieldPassword Handled by modules loader FieldtypeTextarea Handled by modules loader FieldtypeFile Handled by modules loader FieldtypePageTitle Handled by modules loader PagefilesManager /wire/core/PagefilesManager.php PageAccess /wire/core/PageAccess.php
×
×
  • Create New...