Jump to content

aComAdi

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by aComAdi

  1. OK. After upgrading to the latest version of PW I managed to make it work by adding the namespace to each tempalte. But this still seems strange, as we have an identical installation which works fine without having to add the pw namespace manually to tempaltes.
  2. Thanks. In the _main.php template that should not be a possibility. But considering nothing else is working, I added the namespace to the template. No change. I also upgraded PW to 3.0.235. But still no luck. Any other ideas how to resolve this.
  3. I just checked server settings and changed the PHP version from 7.4 to 7.3 to match the working installation. Without any success.
  4. Hi, We have been using string translations in our sites for a while. Usually without much of a problem. I did notice an inconsistency before in that sometimes we would have to use _("string") and at other times __("string"). Event though they were the same template (in other installations). Now we have an installation, where no configuration works: __("string") Error in front-end Call to undefined function __(), did you mean _()? _("string") In this case the translation is not detected. No error in front-end $this->_("string") Translation is detected in the back-end Front-End does not display the translation Here some example codes. From a working installation: <p><span id="fzgVB"></span> <?php echo __("von"); ?> <span id="fzgTotal"></span> </p> From the broken installation with the above issues: <p><span id="fzgVB"></span> <?php echo $this->_("von"); ?> <span id="fzgTotal"></span> </p> This is the translation file: { "file": "site\/templates\/webKitLagerAuto.php", "textdomain": "site--templates--webkitlagerauto-php", "translations": { "99fa307ec57145b928f70f1bf9a6b0f9": { "text": "de" }, "399a817877af458537114697dbdcd1ec": { "text": "Trier par :" }, "f85a094911f1791512a9c6c340af8501": { "text": "Les v\u00e9hicules sont charg\u00e9s :" }, "ceab854bab8563c4c37d5411abf61119": { "text": "Rechercher un v\u00e9hicule" }, "17a1115519a7d611cea6663f039fc617": { "text": "Tous les types de v\u00e9hicules" }, "05db64b63f46a0d66ebaf9b6c52640da": { "text": "Tous les types de v\u00e9hicules" }, "ca4c95edfc1cb0bb7834c03181db5db3": { "text": "Toutes les marques" }, "d14ce9b3f96539a2b0cddce3f3d10964": { "text": "Tous les mod\u00e8les" }, "7ba626b3662c671ae1649986cb0d2946": { "text": "Tous les types de carrosserie" }, "cd9454ac308cd2e6664aa6a05bf8ebe6": { "text": "Tous les carburants" }, "2f43b4b9f99a34adbbc4c2dce12bdbf0": { "text": "Toutes les ann\u00e9es" }, "3551dcebb592af19007be6dccbe904cb": { "text": "Tous les entra\u00eenements" }, "02355d02162809861896c8c313d038cb": { "text": "Tous les engrenages" }, "4474fbc0115b236a45eb9573889b2653": { "text": "Rechercher" } } } Noteworthy: We use markup regions and this installation is ProcessWire 3.0.229. $config->useMarkupRegions = true; $config->appendTemplateFile = '_main.php'; In a different template, where the subtemplate is loaded with required_once(), this works: <h3><?php echo __("Kontaktinformationen"); ?></h3> https://www.autowag.ch/neu2024/fr/contact/ I am thoroughly confused.
  5. Oh sorry, only saw now that this was within the Tracy branch. Upgraded Tracy to 4.25.13. That resolved the error output by Tracy. (But not my original issue that I was researching.)
  6. HI Bernhard, Have you found some explanation/resolution to this issue. We just installed a 3.0.229 instance and have noticed the same error in Tracey. Simultaniously we see the following notice on pages (in the backend) which we have never seen persiting before. FieldtypeImage: Settings have not yet been committed. Please review the settings on this page and save once more (even if you do not change anything) to confirm you accept them. We obviously saved the page and also checked the template and all associated image fields. All seems normal. Actually editing the page works correctly as well, as does the front-end. It's just confusing and we don't want to run into problems down the road with this installation.
  7. Bumping this thread. It's an issue that has been brought up by clients, especially those with larger site structures. Selecting a page in the PageField set to "Tree View" is no problem. However, on edits its hard to identify if the correct page has been selected or which page has been selected altogether. A suggest improvement would be: Field Option: Tree Open/Closed This would improve UX of the field significantly.
  8. Next lockup with log panels disabled.
  9. First report: Been working for an hour with Tracy on (iMac, Chrome Version 88.0.4324.192, PW 3.0.165, Tracy ). In my case it's not connected to images. At the time that the 'lockup' happened, I had both the backend and frontend open in the same browser. Reloaded a page (with almost no content whatsoever) to test something. Then the endless load started. No missing images on this page. Note, that I currently have three bd-dumps on this page: 1 array, two booleans.
  10. No worries. We greatly appreciate Tracy. I will work on a client site over the weekend and test these variations.
  11. I figured, I will post the update: Turns out the culprit is Tracey Debugger. Once turned off, this phenomenon does not happen anymore. Luckily we only need it during installation and development of new modules really. All editors are now working with Tracey off and the problem has disappeared.
  12. Hi, Sorry for the late reply. First case of Corona in the company. All sorts of emergency actions necessary. I will check @dragan's suggestions. @flydev ??Relatively sure no NGINX involved in any of the incidences this occured. Will report back if I find anything.
  13. Hi, I am aware that this is a very broad description of a problem - but that's because I could not narrow it down so far. I just wanted to see if others have made that exprience or if this is even a known issue. On a regular basis, when logged into Processwire, the CMS and the front-end becomes nonresponsive. What happens is usually: User works for a while logged into the CMS and has another tab open, where she previews changes At some point, during a refresh/load of a new page IN THE CMS, the site is in an endles loading loop. When this happens, reloading the page, klicks on menu items, nothing responds. Closing the tab and and reopening in the same browser again results in endless loading loop (and eventual time out). When this happens, the front-end also cannot be loaded anymore in that browser. It's noteworthy that: Opening the site in another browser works Logging into Processwire in another browser works This happens regularly across various setups: Different browsers (Chrome, Firefox - haven't seen on Safari yet, because that's usually the last one I use to keep edition after Chrome and Firefox are 'locked') Different servers Different PHP versions (most installs are on 7.2.) Different versions of PW. I had it on 3.0.128 up to 3.0.165 now. Having site in debug mode or not Having cache activate or not Common to the installations is usually: Tracey Debugger RepeaterMatrix Rockmigrations Has anybody experience this? I haven't had any complaints from the clients yet - but that doesn't mean it does not happen to them. Internally this does happen regularly. Almost during every longer work session. Thanks for any insight. Adrian
  14. The error has disappeared, but the actual label is still displaying. ? https://www.garage-fischer.ch/kontakt/kontakt/
  15. Hi Moritz, We would lek to start working with hCaptcha for our Processwire client sites using Form Builder. Ran into the following issue. Hiding the field label causes 500 Internal Error. I've attached the the error as a screenshot. The environment is: PW 3.0.123 Formbuilder 0.3.9 PHP Version 7.3.16 Not a biggie, but might be an issue on some implementations.
  16. Hi, I have a question regarding the pagination (MarkupPagerNav). I have it setup for a news page and it works fine (currently set to Limit 1 for testing): http://www.odermatt-luzern.ch/neu2020/neuigkeiten/ Question: Change URL segment It's a German language site. Therefore I would like the pager URL segment from page1, page2, page3, etc. to Seite1, Seite2, Seite3, etc. I didn't see this to be possible in the settings or the API. Can this be achieved? Thanks in advance for any tips and hints. Adrian
  17. We use RockMigrations regularly for adding custom functionality, pages, templates and fields to new projects and update the existing sites modules. Works a treat.
  18. I wiped the installation and started new. I am ending up at the same place. The RepeaterMatrix simply drops the fields of type Image. That's the setup with a different item, but essentially having the same process as the original post above. Just replace wk_inhalt_start_links_bild with wk_inhalt_bilder : Here I fill the fields successfully: And when I dump the RepeaterMatrix item in the front-end, it's missing the image fields (wk_inhalt_bilder, wkinhaltbilder): Starting to get desperate here.
  19. Hi @Gideon So, Indeed I have. As a matter of fact, that is the intended setting, as only one image is allowed for the posting. In this case when I dump the field, the response is Null bd($inhaltszeile->wk_inhalt_start_links_bild); If I switch Max Image settings to 0 (for debugging purposes), then I do recieve the above posted object back, but no images. I honestly consider wiping the whole installation and starting new. Somethings is fishy here. I have also compared the settings of working vs non-working image fields. They seem identical: { "wk_slider_bild": { "id": 179, "type": "FieldtypeImage", "flags": 0, "name": "wk_slider_bild", "label": "Slider/Banner-Bild", "columnWidth": 50, "description": "Bnnerbild", "entityencodedesc": 1, "extensions": "gif jpg peg png", "adminThumbs": 1, "maxFiles": 1, "fileSchema": 6, "outputFormat": 0, "outputString": "", "defaultValuePage": "", "textformatters": "", "entityEncode": "", "useTags": 0, "tagsList": "", "inputfieldClass": "InputfieldImage", "collapsed": 0, "showIf": "", "themeOffset": "", "themeBorder": "", "themeColor": "", "required": "", "requiredIf": "", "unzip": "", "overwrite": "", "descriptionRows": 1, "noLang": "", "gridMode": "grid", "focusMode": "on", "maxWidth": "", "maxHeight": "", "resizeServer": 0, "maxSize": "", "clientQuality": 90, "maxReject": "", "minWidth": "", "minHeight": "", "dimensionsByAspectRatio": "" } } { "wk_inhalt_start_links_bild": { "id": 211, "type": "FieldtypeImage", "flags": 0, "name": "wk_inhalt_start_links_bild", "label": "Start Intro Links: Bild", "extensions": "gif jpg jpeg png", "maxFiles": 1, "outputFormat": 0, "defaultValuePage": "", "useTags": 0, "inputfieldClass": "InputfieldImage", "descriptionRows": 1, "gridMode": "grid", "focusMode": "on", "resizeServer": 0, "clientQuality": 90, "maxReject": "", "dimensionsByAspectRatio": "", "fileSchema": 6, "collapsed": 0, "columnWidth": 50, "outputString": "", "textformatters": "", "entityEncode": "", "tagsList": "", "showIf": "", "themeOffset": "", "themeBorder": "", "themeColor": "", "required": "", "requiredIf": "", "unzip": "", "overwrite": "", "noLang": "", "maxWidth": "", "maxHeight": "", "maxSize": "", "minWidth": "", "minHeight": "" } } Somewhere along the way, something went wrong with the installation and there's an issue with either permissions on the RepeaterMatrix level or the Templates.
  20. Update: manually created a new RepeaterMatrix and new image fields. Same results: the object returned does not contain the uploaded image.
  21. The object output I posted above, is from the dumping of the images field with Tracey Debugger: bd($inhaltszeile->wk_inhalt_start_links_bild); Regarding the weird output with the image tag: must have made a c&p mistake while trying to debug this issue. Has nothing to do with the problem at hand. Fixed the html issue though. (See screeshot attached.) Here's a compacted version of the code which leads to the issue. Code processing the RepeaterMatrix foreach($page->wk_inhalt_zeile as $inhaltszeile) { switch ($inhaltszeile->repeater_matrix_type) { case '2': bd($inhaltszeile->wk_inhalt_start_links_bild); require $_SERVER['DOCUMENT_ROOT'].$config->urls->templates.'_inhalt_occneu.php'; break; } } Code processing the RepeaterMatrix item in question, including the images: <section class="about-us-section section-padding"> <div class="container"> <div class="section-header text-center"> <h2><?php echo $inhaltszeile->wk_inhalt_titel; ?></h2> <?php echo $inhaltszeile->wk_inhalt_text1; ?> <div class="row"> <div class="col-lg-6 col-sm-6"> <div class="looking-car"> <div class="looking-cat-image"> <img src="<?php echo $inhaltszeile->wk_inhalt_start_links_bild->url; ?>" alt="<?php echo $inhaltszeile->wk_inhalt_start_links_titel; ?>" /></div> <div class="looking-car-content"> <h3><?php echo $inhaltszeile->wk_inhalt_start_links_titel; ?></h3> <?php echo $inhaltszeile->wk_inhalt_start_links_text; ?> <a href="<?php echo $inhaltszeile->wk_inhalt_start_links_link; ?>" class="btn"><?php echo __('Anzeigen'); ?><i class="fa fa-chevron-circle-right" aria-hidden="true"></i></a> </div> </div> </div> <div class="col-lg-6 col-sm-6"> <div class="looking-car"> <div class="looking-cat-image"> <img src="<?php echo $inhaltszeile->wk_inhalt_start_rechts_bild->url; ?>" alt="<?php echo $inhaltszeile->wk_inhalt_start_rechts_titel; ?>" /> </div> <div class="looking-car-content"> <h3><?php echo $inhaltszeile->wk_inhalt_start_rechts_titel; ?></h3> <?php echo $inhaltszeile->wk_inhalt_start_rechts_text; ?> <a href="<?php echo $inhaltszeile->wk_inhalt_start_rechts_link; ?>" class="btn"><?php echo __('Anzeigen'); ?><i class="fa fa-chevron-circle-right" aria-hidden="true"></i></a> </div> </div> </div> </div> </div> </section> Notes: Same code works as expected on other installations Images are uploaded and visible in RepeaterMatrix Item in CMS The RepeaterMatrix item is processed as expected in the front-end, with the exception of the image fields Image fields in other RepeaterMatrix Types in the front-end are also not working correctly. I have the suspicion, that this is an issue with the RepeaterMatrix, although all settings of the field are identical to other installations. Still appreciating ideas on where to dig with this. In the meantime, I will manually setup a new RepeaterMatrix.
  22. Follow-up: I just ran a test with a different row type in that RepeaterMatrix and have the same issue: images can be uploaded, appear in the CMS, are up on the server...but are not displayed.
×
×
  • Create New...