Comments (8)
Hey @omatheusant
What do you see in the network response?
An error message like the one you're receiving is usually an indication of a Fatal PHP Error happening somewhere else in WordPress (custom code, plugin), that is getting printed to the response instead of caught.
Any other information you can provide to help us debug and replicate would allow us to resolve this for you faster.
from wp-graphql.
@omatheusant Any chance you have WPML active? If so, maybe try the suggestion here: #1626 (comment)
from wp-graphql.
Hey @omatheusant
What do you see in the network response?
An error message like the one you're receiving is usually an indication of a Fatal PHP Error happening somewhere else in WordPress (custom code, plugin), that is getting printed to the response instead of caught.
Any other information you can provide to help us debug and replicate would allow us to resolve this for you faster.
I'm a kinda new to Wordpress. This appears in my network response:
<html>
<body>
<script type="text/javascript" src="/aes.js"></script>
<script>
function toNumbers(d) {
var e = [];
d.replace(/(..)/g, function(d) {
e.push(parseInt(d, 16))
});
return e
}
function toHex() {
for (var d = [], d = 1 == arguments.length && arguments[0].constructor == Array ? arguments[0] : arguments, e = "", f = 0; f < d.length; f++)
e += (16 > d[f] ? "0" : "") + d[f].toString(16);
return e.toLowerCase()
}
var a = toNumbers("f655ba9d09a112d4968c63579db590b4")
, b = toNumbers("98344c2eee86c3994890592585b49f80")
, c = toNumbers("935e6ea1c28b63c1ced7f4c257624e22");
document.cookie = "__test=" + toHex(slowAES.decrypt(c, 2, a, b)) + "; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/";
location.href = "http://matheusant.lovestoblog.com/index.php?graphql&i=1";
</script>
<noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript>
</body>
</html>
I dont know if is that, but in my headers, the Url request is ending with /index.php?graphql
, but i have change the permalinks and still the same.
from wp-graphql.
@omatheusant Any chance you have WPML active? If so, maybe try the suggestion here: #1626 (comment)
i'll check it out
from wp-graphql.
This appears in my network response.
That code looks to be a poor implementation of a robots mitigation script and not part of WordPress or WPGraphQL.
If you indeed disabled all other plugins like you indicated in the issue description, and it's not coming from custom code or your theme, then I suggest you contact your host and see how they change it so it only injects on actual frontend views and not API requests.
from wp-graphql.
(labeling as invalid
- this indeed is a real problem, it's just not something caused by or addressable in WPGraphQL's codebase. Leaving open for now)
from wp-graphql.
@omatheusant I'm able to visit your endpoint directly and query it: http://matheusant.lovestoblog.com/index.php?graphql&query={posts{nodes{id}}}
And I'm able to use the GraphiQL IDE Chrome Extension to query your endpoint as well:
Did you perhaps address the robots mitigation script that @justlevine pointed out? Or take some other action? Is the GraphiQL IDE in your WordPress Dashboard working now or are you still experiencing issues?
from wp-graphql.
@omatheusant I'm going to close this as it seems related to the environment and not WPGraphQL directly.
from wp-graphql.
Related Issues (20)
- Querying Page by URI doest require correct URI field HOT 16
- Update WPGraphQL Mutations Guide HOT 1
- Automate Release Cycles (Implement Changesets or other relevant solution) HOT 5
- WPGraphQL Extensions Page HOT 1
- Introduce support for the @oneOf GraphQL Directive HOT 2
- Can't move attendees in Events Calendar due to fatal errors caused by $hook_suffix type
- Tests failing due to WPBrowser breaking change HOT 1
- Avatar URLs are included in responses when Show Avatars setting is disabled HOT 2
- Introduce `register_graphql_connection_where_arg` API
- Wrong field name
- Expose hasPassword as a queryable field instead of just as an argument
- query with language parameter HOT 4
- Upgrade webonyx/graphql-php to 15.x HOT 2
- Unable to Make Menus and Menu Items public HOT 6
- v2.0 Roadmapping
- Missing avatar or icon in GraphQL IDE UI HOT 9
- Introduce actions/filters for the `register_graphql_admin_notice` API
- DX: Can't narrow down interface subtypes on an implementing object with `register_graphql_field()` HOT 2
- Add WordPress new `Site Icon` feature to generalSettings. HOT 2
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 wp-graphql.