Jump to content

Krlos

Members
  • Posts

    197
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Krlos

  1. Hi @da², The provider confirms that the cookie has not changed. We have found that in the normal flow it gives us the mentioned error, but if we force delete the cookies using "clear browser cookies" in the network tab of the chrome inspector and I hit submit the form again then everything works.
  2. Hello, This may not have to do with processwire, but I have a website built with processwire that was working normally. There is a form where users download xray scans, the user enters his ID and an id code for the exam, then using curl we call an api to authenticate and serve the pdf file. Now when filling out the form, the result of the call to the server where the API is located returns: {"statusCode":400,"error":"Bad Request","message":"Invalid cookie value"} The strange thing is some combinations of browser - operating system the error does not appear, but in most it does. Any ideas that help me to be able to solve this problem are very, very grateful.
  3. Hello, A client informed me that his website was giving error, I went to check and everything was ok. I then went to check the processwire logs and found the following: Many of this: 1 hora antes 27-06-2023 12:59:48 - ? SQLSTATE[HY000]: General error: 1021 Disk full (/tmp/#sql-temptable-3dd889-8a7ab0-0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") In /wire/core/WireSaveableItemsLookup.php line 68 And many of this: 1 hora antes 27-06-2023 13:04:32 - ? SQLSTATE[08004] [1040] Too many connections In /wire/core/ProcessWire.php line 494 About 50 Exceptions in a 2 hours span. Then I checked if there was space in Cpanel and there was no hard drive problem in cpanel. What has happened here?
  4. Hi @nbcommunication, yes I'm using: <section class="about-section pt-48 pb-48" style="background-image: url(<?php echo $page->images->render(); ?>); background-repeat: no-repeat; background-size: cover; background-position: center;"> I'm doing it wrong? I thought it was enough to define the sizes in the module configuration.
  5. Hi, @Stefanowitsch, can you please explain how you managed to use the module for background images? I have tried to use, but I only get the code for <img> and I'm trying to add my background images using inline css to make it work with Tailwindcss. Thank you.
  6. Hola, puedes postear el código? para poder ayudarte.
  7. Same as you, deploy and forget. I've noticed that when hosting providers update something, the log file starts growing with warning logs. I usually realize months later. I love PW?
  8. I'm trying to use Urlsegment + combo field, but have this problem I can't solve: I have a combo field with some fields and one category field based on a page reference field. When I try to filter content using the first url segment urlSegment1, I get no data, but if I use the page reference page ID it works. Code to filter: $segmento1 = $input->urlSegment1; (in this case "domo") $filter = $pages->find("template=alojamiento, alojamiento_combo=$segmento1, sort=random, limit=20"); This wont work: template=alojamiento, sort=random, alojamiento_combo=domo, limit=20 This works: 1184 being the ID of the page reference field. template=alojamiento, sort=random, alojamiento_combo=1184, limit=20 I also tried, but don't work: template=alojamiento, sort=random, alojamiento_combo.categoria=domo, limit=20 Any help is appreciated.
  9. Hello, I'm updating a Processwire 3.0.85 version to 3.0.210. In my hosting is running PHP 7.0. (I know...) I'm installing in my local Mampro running PHP 8.1.13 and 8.2.0 and in both version I get this error: Deprecated: PDO::quote(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/XXX/Documents/Sitios/msonline/wire/core/WireDatabasePDO.php on line 1564 The site is working fine, but I can't log into the admin backend, I get a 404 error and the error above. Any help is very welcome.
  10. Merry Christmas @ryan, and all the Processwire community!
  11. I was testing TinyMCE 6 with tailwindcss and everything works perfect, I tried the tailwindcss prose plugin by simply adding a wrapping div <div class="prose"> and boom... all the text was styled perfectly. Better yet, the classes are not removed, as many times I had to battle with ckeditor not to remove the classes from the source code. Thank you for all the hard work @ryan
  12. Also, <?php echo $pages->get(1210)->url; ?> 1210 being the page ID. <a href="<?php echo $pages->get(1210)->url; ?>">Products</a>
  13. Krlos

    SeoMaestro

    Hi, I was using this code: <?php $wire->addHookAfter('SeoMaestro::renderMetatags', function (HookEvent $event) { $tags = $event->arguments(0); $group = $event->arguments(1); if ($group === null) { unset($tags['meta_generator']); $event->return = $tags; } }); To hide generator from SEO Maestro, but with the last version is not working anynore. Thx in advance ?
  14. Yes!, this happened to me, I forgot to add </body> and </html> tags.
  15. I can confirm it works in LiteSpeed, at least in my hosting (Knownhost)
  16. Hey @Guy Incognito Thankyou for your comment, that was the approach i followed. In the end I listened to @bernhard's advice. And so far it has been very successful for my use case.
  17. Hey @Nicolas and @Zeka. Thanks, I'm not php savy, but I will try those sugestions.
  18. Hi, I need to place an icon or label in some pages in my tree. I found that page list label allows to change the format for the label like this: {categories.title} {title} How can turn that into this: That label is page reference. Thanks in advance.
  19. Hey @bernhard, sorry to revive a thread of 5 years ago, but i'm working on a site with a lot of different type of data, and I'm having a hard time deciding how to organize the tree for easy administratation. But how to keep a visual hierarchy of pages inside the tree? For example: |__Lodging |__Hotels |__ Hotel 1 |__ Hotel 2 |__ Hotel 3 |__Hostels |__ Hostel 1 |__ Hostel 2 |__ Hostel 3 |__Cabins |__ Cabin 1 |__ Cabin 2 |__ Cabin 3 vs |__Lodging |__ Hotel 1 |__ Hotel 2 |__ Hotel 3 |__ Hostel 1 |__ Hostel 2 |__ Hostel 3 |__ Cabin 1 |__ Cabin 2 |__ Cabin 3 Wouldn't it be a bit tricky to have hundreds of items in the same page tree? What if you need to add 3 hotels, then 1 cabin, then 2 hostels? everything starts to mix. And how do you identify which are hotels and which are hostels. And how to avoid ending up with dozens of templates for each subcategory? I would like to know your experience with such a case. Thank you
  20. Hi @MarkE, Thankyou for your help, I will try your suggestion. Where should I put that code you posted?, before every hanna code block? This: $php = '<' . '?php'; $openPHP = $php; $openPHPNS = "$php namespace ProcessWire;"; $firstLine = 'if(!defined("PROCESSWIRE")) die("no direct access");'; if(strpos($code, 'namespace') && preg_match('/(namespace\s+ProcessWire(?:;|\s*;))/', $code, $matches)) { $openPHP = $openPHPNS; $code = str_replace($matches[1], '', $code); } if(strpos($code, $openPHP) !== 0 && strpos($code, $php) !== 0) { // prepend open PHP tag to code if not already present $code = "$openPHPNS\n$firstLine\n$code"; } else { // otherwise insert our $firstLine security check $code = str_replace($php, "$openPHPNS\n$firstLine\n", $code); } I don't understand this code: \ProcessWire\_(“….”) Should I replace that for this? <?php namespace ProcessWire; ?> Thankyou
  21. I think I will have to wait to fix this, I'm not php savy. Someone else might know a solution.
  22. Hi @adrian, Can you please elaborate your answer a little further, I have never used Profields Table field, and I have some doubts about how to use it for translations. Thank you.
  23. Hi Ivan, yes, I have this on my Hanna code PHP <?php namespace ProcessWire; ?> <?php $alojamiento = $pages->find("template=alojamiento, limit=10"); foreach ($alojamiento as $a): ?> ... More HTML and PHP code <a><?php echo __("Ver detalle"); ?></a> the last part with the a tag is throwing the error.
  24. Hi, I'm trying to use hanna code with translations but it gives me an error: Oh no… Fatal Error: Uncaught Error: Call to undefined function __() in site/assets/cache/HannaCode/guia_turistico_hanna.php I'm using: <?php echo __("Ver detalles"); ?> for translations output. Thanks in advance.
×
×
  • Create New...