Jump to content

Brett

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Brett

  1. 21 minutes ago, Miguel Scaramozzino said:

    Yes, this is the problem clearly. I've tried $input->post->query but that won't work cause it's not form-data but a json body. So I've tried file_get_contents("php://input") and it comes up empty. There must be something wrong with my PW installation, cause I've created REST APIs in the past parsing json data from php://input with no issues at all. I will try to downgrade the PW core and see what happens.

    Make sure you check nginx/apache and PHP logs as well. If memory serves me correctly, I had a similar issue do to something was blocking because of XSS. There was a server change I had to make, so keep a close eye on those logs and the developer tools on your browser.

  2. On 1/15/2020 at 6:53 AM, dadish said:

    Hello @Brett.

    Thank you for your feedback! I was able to reproduce your issue and hopefully tracked down the bug. Please, install the latest version and give it a try. Let me know if the issue is resolved for you.

    New Release 1.1.3

    - Fixed bug with FieldtypePage returning only single value.

    I can confirm that 1.1.4 fixed the issue we were having. Thank you for getting back so quickly. ?

    • Like 1
  3. dadish,

    First, thank you for this wonderful module, it's been awesome working with GraphQL.

    The problem: I have a field where the type is "Page Reference" and the input field type is "Page Auto Complete". In the details tab, the "Multiple pages PageArray" is selected.

    If I only have one page reference, then it will return the result as expected using the "list". However, if I have multiple page references, then it will not display any results at all. Can you let me know if there is something I am doing wrong or is this is a bug/feature that needs to be worked?

    All the best!

    • Like 1
  4. Hello!

    I am trying to get multiple comment submission forms onto the same page using the standard renderForm().

    <?php
    // Begin the project loop
    $projects = $pages->find("template=project-page, sort=-modified");
    foreach ($projects as $project) {
    ?>
    // A WHOLE bunch of code, but basically has this as well:
    <?php echo $project->comments->renderForm(); ?>
    <?php
    // End the project loop
    }
    ?>

    The problem is that the first page that the array returns is always the one that gets the updated comment no matter what you actually comment on.

    I have tried to copy+paste the HTML code specifically for each of the comment forms on each of the items, but that has not worked either.  Any insight would be greatly appreciated!

×
×
  • Create New...