Jump to content

Gideon So

Members
  • Posts

    516
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Gideon So

  1. Hi @AndZyk You are not alone. Same here. Uninstall and install the module again helps. Gideon
  2. Hi all, Does anybody notice this with 3.0.260? It happens when wire folder in the root installation folder is a symlink to other folder. Gideon
  3. Hi all, SYMPTOM When creating or editing a page with Chinese characters in the page name (e.g., 關於我們) while $config->pageNameCharset = "UTF8" and $config->pageNameWhitelist = "" (empty), a fatal error occurs: Fatal Error: Uncaught ValueError: idn_to_ascii(): Argument #1 ($domain) must not be empty in Sanitizer.php:1138 Environment PHP 8.4 ProcessWire 2.6.260 I create an bug report in github https://github.com/processwire/processwire-issues/issues/2215 By the help of AI, I found the root cause. 1. The pageNameHasConflict() method in PagesNames.php calls $sanitizer->pageName($name, Sanitizer::toAscii) to convert the UTF-8 name to ASCII for duplicate name checking. 2. Sanitizer::pageName() triggers punyEncodeName() to encode the Chinese characters using Punycode. 3. Inside punyEncodeName() (line 1085), when $version > 1, each character of the name is checked against $config->pageNameWhitelist. 4. When pageNameWhitelist is empty (""), every Chinese character fails the whitelist check and gets replaced with "-" (hyphen). 5. After collapsing consecutive hyphens and trimming leading/trailing hyphens, the result is an EMPTY STRING "". 6. The empty string is then passed to PHP's idn_to_ascii() function (line 1158), which throws ValueError because it requires a non-empty $domain argument. Gideon
  4. Gideon So

    I'm back

    Welcome back.Soma. So nice to have you around again. Gideon
  5. Looks like this is a good one that never comes to fruitful....what a pity. @kongondo Any plan to release this one even if it is not perfect?
  6. @adrian I only have prove that all my family members don't have it install in our phones. Gideon
  7. Hi @teppo This module is wonderful. I wonder is it possible to change the data stored in the database? If possible, is there a hookable method I can use to edit the data? Thanks. Gideon
  8. Hi @hellomoto Thanks for the solution. I will try your solutions later. Gideon
  9. @Juergen Installed to one of my clients site. He said it is very funny. Thanks for sharing. Gideon
  10. Hi @olafgleba If you are talking about the language when a visitor first visit the site. Take a look at the following. I have just changed the default language of my site. https://processwire.recipes/recipes/change-homepages-default-language/ Gideon
  11. Hi @Richard Jedlička What I think is the module extends FieldtypeFile and FieldtypeFile supports custom file. So I think fieldtypePdf would be able to add custom field to it. In fact there is section in field settings that allow me to add custom filed to it but no custom field render in the page edit screen. Gideon
  12. Hi @Richard Jedlička Does this module support custom field? Gideon
  13. I have a Tinymce textarea field reside in a repeater. I want to insert an image to the editor and I click the insert image button. It open a modal show images from the current repeater item page. Of course there is no images inside the page. I need to click the "change" link and then find the page I have the image, Is it possible to make the Tinymce insert image plugin to show repeater forPage? Gideon
  14. Hi @matjazp By the way, would you update the github repository? Gideon
  15. Hi @matjazp Thanks for quick response. I guess the same.😊 Gideon
  16. Hi @ I have just installed the forked version of this module. I get the below whenever I try to clear cache in the module setting page. Any hints? Fatal Error: Uncaught Error: Call to undefined method AllInOneMinify::getDirContents() in site/modules/AllInOneMinify/AllInOneMinify.module:1216 Fatal Error: Uncaught Error: Call to undefined method AllInOneMinify::getDirContents() in site/modules/AllInOneMinify/AllInOneMinify.module:1216 Thanks. Gideon
  17. Hi @gebeer While I understand your concern about blocking AI bots but what I get from Ryan's post is that he doesn't completely cut off AI bots. It is because they come too often. He just want to limit their visit rate. I think it is ok because I don't think the document part changes every few seconds. Gideon
  18. Hi, Normally the multi-language url of ProcessWire is domain.tld/{language}/page but I have a special requirement from my client. They want the url would be like domain.tld/page1/{language}/page2. Is there any way I can achieve this? Any help is welcome/ Gideon
  19. Hi @FlorianA Just access your site. There should be some error messages on the screen. Gideon
  20. Hi @Tiberium Just a guess. Did you check the permission of the folder to see if the web server has the right to create folders / files within the logs folder? Gideon
  21. Hi @FlorianA Looks like there is some endless loop issue in your php that consume all the memory you allocate to PHP. The first thing I would do is enable PorcessWire debug mode. You can edit your site config.php to enable it by adding this line $config->debug = true You will have more info about what is going wrong.
  22. Hi @tires Please go to modules > Core > Page List and check this box. Gideon
  23. Hi @bernhard This is one of the greatest quote I have ever quoted.😄
  24. Hi @GaryW I don't think it is possible to search all file contents with the ProcessWire selector function. Gideon
  25. Hi @kuba2 You should update the ProcessWire core. The PHP function get_magic_quotes_gpc() was deprecated in PHP 7.4 and removed in PHP 8. The latest core does not use it anymore. Gideon
×
×
  • Create New...