We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19388
    • 297 Posts
    Hi ppl,
    Hi had a problem that I solved while I was writing this posts. Maybe it will be usefull for someone else.

    I was using ajaxSearch 1.9b ( the problem was with 1.8.4 too ) with this call:
    [!AjaxSearch? &ajaxSearch=`0` &landingPage=`121` &showResults=`0` &showIntro=`0`   !]


    I tried this too:
    [!AjaxSearch? &ajaxSearch=`0` &landingPage=`121` &showResults=`0` &showIntro=`0`  &extract=`1:content,description,introtext` !]


    But in some results, I get mixed some placeholders and other code:

    Testimonios [+as.extractShow:is=`1`:then=`
    
    ...nish` ]] Mostrando testimonios de a . Exiten testimonios del programa de Estudios Universitarios en total | Página de ...
    `+] 
    


    I was thinking what could be wrong, bugs? Wrong parameters? PHx conflict? But it was easier.
    I had a few pages wich were listing news or other articles using ditto. Ditto needs some placeholders in page content to do pagination, and those placeholders were in conflict with ajaxSearch, being shown between the search results.

    The fix is easy: make the document as "non searcheable". Will be possible to fix it in ajaxSearch and omit reading placeholders and other code?

    I hope this information could be usefull.

      • 5811
      • 1,717 Posts
      Ditto needs some placeholders in page content to do pagination, and those placeholders were in conflict with ajaxSearch, being shown between the search results
      Could you precise which placeholders are in conflict ?

      Could you send by Personal Message a link to a page and a search term I can use to analyse this issue ? Thanks
        • 5811
        • 1,717 Posts
        Do you have lot of placeholders on your page ?

        Because the broken placeholders may be are the consequence of the limits of the parser.
        Look at this post, to know these limitations : http://modxcms.com/forums/index.php/topic,42498.msg254593.html#msg254593

        Put
        pcre.backtrack_limit=200000
        in your php_init file and redo the test, may be this will correct your issue.
          • 19388
          • 297 Posts
          Hi coroico,
          I cannot send you any link yet, sorry. But the output is just what I posted here.
          I will take a look to the limits on the parser. This kind of problem has happened before in other website with PHx and Maxigallery and now you mention the placeholder limits, I think it can be related...