GithubHelp home page GithubHelp logo

Comments (3)

andrew-boyd avatar andrew-boyd commented on May 25, 2024 3

@jmikrut Our team ran into the same issue. Our attempt to address it can be seen in PR #3

from acf-to-rest-api-recursive.

adamk22 avatar adamk22 commented on May 25, 2024

I ran into an issue where my rest api would give a SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data wp rest response.

The page gave the following error:

<br />
<b>Fatal error</b>:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in <b>/srv/www/test-wp/public_html/wp-content/plugins/acf-to-rest-api-recursive-master/library/class-acf-to-rest-api-recursive.php</b> on line <b>56</b><br />
<br />
<b>Fatal error</b>:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in <b>/srv/www/test-wp/public_html/wp-includes/wp-db.php</b> on line <b>1889</b><br />

The fix @andrew-boyd supplied in his Pull Request solved this issue.

from acf-to-rest-api-recursive.

Kohrak avatar Kohrak commented on May 25, 2024

Hi, thanks for this plugin - it's simple and super helpful.

One thing I noticed is that if an admin on a WP site using this plugin accidentally adds an ACF Relationship field to the same post that they are working with, the REST API response breaks and runs into an infinite loop situation.

Should be a similar fix I'd imagine to make sure that this is avoided. If I have time I will try to crack in and make a pull request. In the meantime I thought I'd let you know!

Can I ask you how did you manage to set it up? @jmikrut

from acf-to-rest-api-recursive.

Related Issues (8)

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.