Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by uiui

  1. 36 minutes ago, wbmnfktr said:

    Which version of ProcessWire are you using?
    Which modules do you use?

    Is the 404 page working at all?
    Does the template exist?
    Is there a redirect defined in the template?
    Is it the original 404 page, with ID 27?

    Is there something special with this setup?
    URL segments?
    Any hooks?
    Multilanguage (I guess)?


    Thank you for your response

    1. Processwire 3.0.210
    2. Duplicator
      ProcessWire dev
      ProcessWire master
    3. Yes, with a random URL that isn't linked to any page, it works (or using the URL of a deactivated language)
    4. The 404 template exists
    5. No redirects in the 404 template
    6. Yes, 27
    7. No URL segments
    8. No hooks
    9. One site
    10. Multi-language

    I can't of anything fancy to the configuration that might cause that issue.

  2. How is order of sizes important? Strangely,

    srcset("4096, 2560, 1920, 1600, 1280, 980, 480")

    only renders the first sizes, while

    >srcset("1920, 1600, 1280, 980, 480, 4096, 2560")

    is working as expected.

  3. Hi,

    Locally I'm using Processwire 3.0.164 on MAMP 4.1.0. with ImageMagick 6.8.9.

    The phpinfo lists WEBP under ImageMagick supported format. Nonetheless, ->webp->url is returning a JPG-URL for any image. Why is that?

  4. Hi,

    I have the issue that LanguageSupportPageNames' verifypath corrects the language although it shouldn't.

    A page shares its name among multiple languages and the url only differs in the first section of the path (e.g. /lang1/same and /lang2/same).

    As verifypath seems to only take sections of the path into account independently, line 262, $name === $requestedPart is always true for the second language, although the path of the first language's version was requested.

    Is that a bug or is my site set up erroneously?

  5. I want to replace domain names in my sitemap of a multi-language, multi-domain site. I tried registering a hook in _init.php but it seems like this is not how to do this.

    Where do I need to register a hook for SeoMaestro::sitemapItems?


    Edit: I eventually solved this issue. As the sitemap is only created when requesting an admin page, the webhook needs to be registered in admin.php.

    $wire->addHookAfter('SeoMaestro::sitemapItems', function (HookEvent $event) {
        $sitemapItems = $event->arguments(0);
        foreach($sitemapItems as $item) {
            $alternates = $item->get('alternates');
            foreach(wire("languages") as $lang) {
                $code = $lang->name;
                if($alternates[$code]) {
                    $alternates[$code] = preg_replace("/(?:local\.)domain\.tld/",
                        $lang->domain, $alternates[$code]);
            $item->set('alternates', $alternates);
        $event->return = $sitemapItems;

    The domain for each language is stored in $lang->domain.

  6. On 5/17/2020 at 2:51 PM, uiui said:

    I'd need to change the base url for the alternate link meta tags. Is it true that you can neither work with different domains for multiple languages nor deactivate that functionality to do it yourself?

    To anyone else who runs into this issue: I solved it with a hook like this:

    $wire->addHookAfter('SeoMaestro::renderMetatags', function (HookEvent $event) { 
    	$tags = $event->arguments(0); 
    	$group = $event->arguments(1); 
    	if ($group === null) {
            foreach(wire("languages") as $lang) {
                $code = $lang->name;//$lang->isDefault() ? $defaultLang : $lang->name;
                $tags["link_rel_{$code}"] = preg_replace("/domain.tld/", $lang->domain, $tags["link_rel_{$code}"]);
            $event->return = $tags; 

    $lang->domain stores the domain used for a language.

    • Like 1
  7. I'd need to change the base url for the alternate link meta tags. Is it true that you can neither work with different domains for multiple languages nor deactivate that functionality to do it yourself?

  8. 11 hours ago, Mike Rockett said:


    @uiui – The module supports sites with the multisite and language support modules installed. I haven't tested it it in a while, so if you have any issues, please let me know. ? 

    I didn't see any issues with my multi-language site. But I don't see an option to configure it for multiple domains so that it can be "domainname.fr" for the french-speaking pages and "domainname.de" for the german-speaking ones.

  9. On 1/18/2019 at 1:36 AM, Autofahrn said:

    The benefit of this is, that languages can be added to the site without the need having an associated domain for each. And it does not break old links on my site, which still have the language in the url. So www.domain.com/pagename and www.domain.de/en/pagename still retrieve the same content and another language may be reached through www.domain.de/fr/pagename or www.domain.com/fr/pagename for example.

    Wouldn't you want to not have the same content available multiple times? Shouldn't you rather redirect the old URLs to the new domain?

  10. 7 hours ago, kongondo said:

    I've just tested and it works fine. I have created a menu with 93 items. I started with 87 then added more.

    1. How are you adding the menu items? Asm select / Auto complete / Page List / Selector?
    2. Are the menus nested?

    1. ASM

    2. Yes, two levels.

  11. Just now, kongondo said:

    Hi @uiui. I am afraid I don't follow. Could you please explain what page number 89 is?

    Also, your ProcessWire version please.

    Hi @kongondo,

    I'm working with version 3.0.132.

    The menu that produces this error contains 88 pages and a couple of custom links. As soon as I add a page that is counted as number 89, the menu won't save anymore. The last page added doesn't seem to be the origin of the problem as I tried it with a number of different pages.

  12. Has anyone ever had the issue that changes to a menu won't save anymore? After adding page number 89 moving items isn't possible anymore as the change won't be saved. This is the case independent of the last page I add or where I move that page.

  13. I’m having a hard time getting started with module development in Processwire. I’m trying to implement a schedule for sports teams, which is why I stumbled across this module. The problem is, that I need events to be hierarchical, as an event could as well be a game or a tournament, which would then again consist of multiple games. So far, I wasn’t able to find out how to implement this hierarchy. Or should I rather work with the Admin Custom Pages Module?

    I would be thankful, if someone could point me in the right direction.

  • Create New...