Comments (9)
Could that affect/limit the preview functionality of unpublished pages?
Nah - licensing issues wonโt affect site functionality.
Any chance we could get some Craft control panel and SSH access to that box to poke around a bit? If so, could you send the details over to [email protected] and reference this issue?
from cms.
Hi all
A quick update from my side that the issue all of sudden was resolved and previewing draft or deactivated pages works as expected. Alas, we cannot really comprehend what might have changed by now on our Google Cloud Craft instance. We'll gladly report back if the issue appears again and if we know how to solve it.
from cms.
@slemont3 is it a Cratt-styled 404 response or an nginx/apache styled 404?
Are you accessing the control panel through site.com/admin and the front-end of the site is site.com? Or is control panel access subdomain-based? i.e. cp.site.com and the front-end is site.com
from cms.
Hi @angrybrad , thanks for getting back at this!
It's a Craft-styled 404 response. And the control panel is accessed normally without a subdomain, so for example site.com/admin and the preview url would be: https://site.com/testpage?x-craft-preview=xxx&craft-token=xxxxxxx
Note that the tokenParam config is set to 'craft-token' as we have to use the 'token' query parameter for something else.
from cms.
In addition to the above, we are currently getting the info that our Craft CMS license is invalid since our license is still being used on the live web server we're migrating the website from. Could that affect/limit the preview functionality of unpublished pages?
from cms.
Struggling with the very same issue
from cms.
@Envaya Also on Google Cloud?
from cms.
Not sure if this is related, but I am currently also having an issue with previews: My previous projects used a simple entry query with the x-craft-token set. Now, I need to set "drafts: null" in order to get data for the drafts; e.g.
preview: entry(site: $site, uri: $uri, drafts: null) {
title
uri
}
Is it possible something did break/change from previous version of 4 to 4.9.5?
from cms.
@MilanDeruelle Just tested on 4.9.5 and it worked fine.
I have a preview target set to the URL format graphql-test?entryId={canonicalId}
, and a graphql-test.twig
template with:
<html>
<head>
<title>GraphQL Test</title>
</head>
<body>
{% set entryId = craft.app.request.getQueryParam('entryId') %}
{% set token = craft.app.request.getQueryParam('token') %}
<script type="module" async>
const entryId = {{ entryId|json_encode|raw }};
const token = {{ token|json_encode|raw }};
const response = await fetch('/api', {
method: 'POST',
headers: {
'Content-Type': 'application/graphql',
'X-Craft-Token': token,
},
body: `query {
entry(id: ${entryId}) {
title
}
}`
});
const json = await response.json();
document.write(`<p>${json.data.entry.title}</p>`);
</script>
</body>
</html>
This is using the public schema, which Iโve configured to include all entry queries, but not drafts, revisions, or non-live elements.
from cms.
Related Issues (20)
- [5.x]: Matrix block/entry type for assets or related entries hyperlink issue HOT 1
- [4.x]: 400 Error on "save-user" controller (AJAX) HOT 2
- [4.x]: Characters limit double error messages HOT 3
- [5.x]: Not finding "memo" icon with search terms like "text" or "document" HOT 1
- [5.x]: Extending a non-existent template in an element partial doesn't show a helpful error message HOT 2
- [5.x]: `Element::getIsFresh()` not working in 5.2.0 beta HOT 1
- [4.x] & [5.x]: General config: `backupCommand` setting to `Closure` ineffective HOT 3
- [5.2]: Small styling bugs in collapsed navbar HOT 2
- [5.x]: Cannot query authors via Graphql on Craft Team license HOT 3
- [3.x]: Using SORT filter errors with "Nesting level too deep - recursive dependency" HOT 5
- [5.x]: Field values are lost in an inline-editable nested entry, if the owner entry is saved multiple times without allowing the auto-save to trigger HOT 2
- [5.x]: Field Groups missing HOT 1
- [5.x]: Accessibility Issue - Control Panel Status Color Issue for Live/Disabled HOT 5
- [3.x]: add ownerId Filter to the query with 'not ID'. .ownderId("not 1") for example HOT 3
- [5.x]: Color Selection Improvement for disabled/enabled elements HOT 3
- [5.x]: Email fields aren't showing HOT 3
- craft root files are publicly visible and accessible [4.x]: HOT 4
- [5.x]: UX issue with Password Reset dialog. No way to close dialog box. HOT 2
- [4.x]: cookieValidationKey must be configured with a secret key. HOT 5
- [5.x]: Element chips and cards show other users' provisional drafts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cms.