Jump to content

MichaPau

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by MichaPau

  1. Do you mean Fields -> Edit Field -> Visibility -> Presentation -> [ComboBox select] -> Hidden (not show in the editor) ? [Edit] Yes, that worked actually, thanks again. Any idea what would happen if I set `Edit Field -> Details -> maximum files allowed` to some number (it is 0=no limit in the moment) ? --- Still, I can't really imagine why this happens. A field type->images on the homepage template with ~500 entries should not hang the server for so long. The database doesn't even store the image data, only path, description, title etc.. But yes hidding this field let me save the page with all its other fields..
  2. Thank you for an answer, Yes, I do have access via this cPanel->phpMyAdmin interface. (I guess it is a shared hosting) information-schema -> GLOBAL_VARIABLES -> WAIT_TIMEOUT = 40 still, they don't have thousands of images on their Home page, but only a few hundreds...(although some are quit big ) I guess there is no way to disable temporarily a field in the processwire backend on save, to debug which one makes it hang and timeout, right? Another question is if it would be save to simply delete entries from the field table directly in the db (because it is not possible anymore from the backend, which timeouts) - Can't find a site/ready.php file on the server, did you mean site/config.php ?
  3. Hello On an old page from friends they get this error trying to edit the home page. (No error viewing the published page) All other pages are working. (Editing and viewing). The only difference I see is that the Home page is using a module called ImageExtra which is no longer maintained. ProcessWire version is 3.0.62., PHP version: 8.3.12 Full error message on Save: Anyone has an idea how to investigate this error further? [Edit] I guess this means that there is some timeout. Can it be that they are using too many, too big images ? The template has an image field with no limitations. I tried to set max_execution_time to 300 for the php but it still hangs an save. This error started suddenly without any modifications to the processwire files, templates etc...
  4. I have a sudden problem with this module. The "Image extra fields" don't show up any more. Not on the Edit Page template, nor on the published page itself. There is the caption field enabled and two extra TextInputs. (see the attached image_extra_field_details.png) but they are not visible. I have done this page for a library more than a year ago and they used it without a problem since then. On the Page > Home -> Content -> Edit (an item) which uses this module: there is only the image and a description field (like a normal image field) the other TextInputs are simply gone. (see the image_extra_field_page_edit.png). Nobody has changed anything what so ever, I have checked the logs to be sure. The page uses the Image Extra Module 1.0.0 and ProcessWire version 3.0.27 Any idea what the reason could be? Thanks for any feedback. P.S. When I enable debug mode the only notice I get is : Undefined index: vitrineimages in /home/bla/public_html/wire/modules/ImageExtra.module on line 826 but no error The Admin->Modules->ImageExtra->Module information page shows: Title Image Extra Class ImageExtra File /wire /modules /ImageExtra.module Version 1.0.0 Installed 1 year ago Summary Adds custom fields to image fields (including multi-language support) Hooks To after.InputfieldImage::getConfigInputfields(), after.InputfieldImage::renderItem(), before.ProcessField::executeSave() More Information https://github.com/justonestep/processwire-imageextra
  5. Hello I am using a dynamically created Pagination like: $allImages = $page->VitrineImages; $limit = $page->VitrineImageCount; $start = ($input->pageNum - 1) * $limit; $images = $page->VitrineImages->slice($start, $limit); $total = count($page->VitrineImages); $a = new PageArray(); foreach($images as $unused) $a->add(new Page()); $a->setTotal($total); $a->setLimit($limit); $a->setStart($start); this works fine in the template file to create Pagination in relation to the number of images for that field in the page. But I have problems to include that inside a sitemap template (I am using the code from here -> https://processwire.com/talk/topic/3846-how-do-i-create-a-sitemapxml/?page=1 ) It doesn't create anything when I use the same code in the sitemap.php only replacing the $page variable with $homepage which is defined in _init.php (which is prepended for the sitemap template - and it's inside the $homepage page where I use the pagination in that way) It seems I am missing something (kind of new to processwire) because $a is always 0 when using this code in my sitemap.php file...
  6. Hi Adrian, thx a lot for your answer. That works. TracyDebugger is definitely very useful! (I just had to figure out that I have to enable it for the backend...)
  7. Hello ProcessWire Community, I'm new to processwire. I trying to find the corresponding code for certain backend pages. For example where is the code for the myDomain/processwire/access/users/edit/?id=[someUserId] page located ? My first attempt was to look in wire/core/ but there's so much files inside that I don't know where to start to look. I am just playing around on localhost with the MultiLang profile installation. In my case I would like to change the password field restrictions in Access->Users->add/edit User. Although I can locate the wire/modules/Inputfield/InputfeldPassword code, I don't think it's the right place to change something there. Perhaps I am wrong but I guess I can declare the requirements and complexityFactor for that field somewhere in the code for that special page?,I mean in the template file for that page ? But I can't locate it. How is a certain url in the backoffice linked to the file structure? I am conscious that on a production server I would not want to change that, but I try to understand how processwire is constructed. Any directions appreciated...
×
×
  • Create New...