Coder Social home page Coder Social logo

Comments (8)

justlevine avatar justlevine commented on June 2, 2024

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.

jasonbahl avatar jasonbahl commented on June 2, 2024

@omatheusant Any chance you have WPML active? If so, maybe try the suggestion here: #1626 (comment)

from wp-graphql.

omatheusant avatar omatheusant commented on June 2, 2024

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 avatar omatheusant commented on June 2, 2024

@omatheusant Any chance you have WPML active? If so, maybe try the suggestion here: #1626 (comment)

i'll check it out

from wp-graphql.

justlevine avatar justlevine commented on June 2, 2024

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.

justlevine avatar justlevine commented on June 2, 2024

(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.

jasonbahl avatar jasonbahl commented on June 2, 2024

@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:

CleanShot 2024-02-23 at 10 08 36

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.

jasonbahl avatar jasonbahl commented on June 2, 2024

@omatheusant I'm going to close this as it seems related to the environment and not WPGraphQL directly.

from wp-graphql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.