-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asPreview started to return null when ID Type is URI. Works for ID Type DABASE_ID #3225
Comments
Hey @JorgeSivil That video you share isn't loading for me (tried laptop and desktop) just 20 second of black. Do you mind resharing? Regarding your second issue, an Once you've shared that, we should be able to see the culprit and provide you with next steps. |
This is the result for the URI ID type
This is for the other, DATABASE_ID
Re-attaching the video Screencast.from.07-11-24.19.03.08.webm |
@justlevine uri property does work when all plugins are disabled, I guess we can leave that out "uri": "/?post_type=neighborhoods&p=21350" This is a new never-published post. It has a URL in theory. I'm wondering if the URI is a missmatch (provided the value returned above) because it was never published. Once I publish it, the URI ID starts working. After I move it back to draft. It keeps working One extra thing to note: I edit the title, click "Preview" (not Save Draft) Re-run the query, and it still says "isPreview": false, while showing the 33 that I just added |
Description
I implemented this Preview feature in the site I'm working on some months ago, on 8/8/2024. It was working.
I don't know what happened but now it doesn't work anymore.
I found the same issue in another different site that I was tasked on implementing preview (I copied some things from the original work since it was working, and on this site I found out this issue and this workaround). Now the same is happening
Steps to reproduce
Create a draft.
Run the following query
Change id type for URI and $uri param accordingly.
Screencast.from.07-11-24.19.03.08.webm
Additional context
No response
WPGraphQL Version
Version 1.28.0
WordPress Version
6.6.1
PHP Version
8.2.24 (Supports 64bit values)
Additional environment details
Server architecture Linux 6.1.85+ x86_64
Web server nginx
PHP version 8.2.24 (Supports 64bit values)
PHP SAPI fpm-fcgi
PHP max input variables 10000
PHP time limit 43300
PHP memory limit 512M
Max input time -1
Upload max filesize 50M
PHP post max size 100M
cURL version 7.81.0 OpenSSL/3.0.2
Is SUHOSIN installed? No
Is the Imagick library available? Yes
Are pretty permalinks supported? Yes
.htaccess rules Your .htaccess file contains only core WordPress features.
Current time 2024-11-07T22:11:50+00:00
Current UTC time Thursday, 07-Nov-24 22:11:50 UTC
Current Server time 2024-11-07T22:11:39+00:00
Please confirm that you have searched existing issues in the repo.
Please confirm that you have disabled ALL plugins except for WPGraphQL.
The text was updated successfully, but these errors were encountered: