Jump to content

Gideon So

Members
  • Posts

    516
  • Joined

  • Last visited

  • Days Won

    1

Gideon So last won the day on June 29 2022

Gideon So had the most liked content!

Profile Information

  • Gender
    Male

Recent Profile Visitors

7,592 profile views

Gideon So's Achievements

Hero Member

Hero Member (6/6)

322

Reputation

  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
×
×
  • Create New...