Home Forums Backend Issues (wp-admin) ACF not loading in post-new.php


ACF not loading in post-new.php

  • Hi there,

    Since updating to ACF and the to WP3.5.2, my ACF fields don’t show up after selecting a category anymore. They only appear after saving a draft.

    These are my errors from my Console:
    SyntaxError: illegal character
    ajaxurl : \’\’,
    post-new.php (regel 81, kol 11)

    ReferenceError: acf is not defined
    acf.screen = {
    ajax.j… (regel 13)

    ReferenceError: acf is not defined
    acf.post_id = 1286;
    post-new.php (regel 81)

    Also my WYSIWYG editors from ACF dont seem to work anymore. (but i posted this in another thread)

    Thank you in advance!

  • Hi @PixCompany

    I am unable to replicate this issue on my end.

    Are you able to downgrade to ACF 4.1.6?

    Does the issue continue to exist?

    Perhaps the issue stems from another plugin / theme code?

  • I dont have 4.1.6 in my possesion anymore. Is there a way to download it somewhere maybe?

  • Am having the same issue, but from a new install.

    WP 3.5.2
    (also have Repeaters 1.0.1 but deactivating makes no difference)

    I also have no other plugins activated.

    Chrome is picking this up as an “Unexpected token ILLEGAL” input.php: line 10.

    Have re-chmod’d all folders to 755 and files to 644: no change.

  • Hi @boswall

    Can you try editing the file ‘/js/input/actions.js’ on line 10?

    Perhaps even comment the line out. Does this fix the issue?

  • Seems to be a MEMORY_LIMIT issue. When reverting to my testserver, all works well. Increase the limit and it should work again i guess.

    It’s not likely that is has to do anything with older versions of PHP? Testserver uses 5.3 and production server is running on 5.2.3.

  • @elliot commenting out line 10 just causes the error to move to line 11.

    I notice that the quote marks are being escaped. So ajaxurl : '', is ajaxurl : \'\' in the browser.

    Not sure if it’s a MEMORY_LIMIT issue, I’m on a shared host and have asked to be put on as high a limit as possible (which is 96M for my server)

  • Hi @boswall

    Thanks mate, I’ll do some testing

  • Hi @boswall

    Do you know why the ajax url is not being populated? Is there something ‘special’ about your WP setup that I should know about?

  • @elliot nothing particularly different about it. Is just my dev server. I haven’t use ACF on this here before though. Oh – apart from that I have to use define(‘CONCATENATE_SCRIPTS’, false); or the admin area refuses to load correctly.

    PHPinfo is here

    Was a totally vanilla WP 3.5.2 install. No other plugins.

    Have tried earlier versions of ACF with no change.

    Looks like the ajaxurl isn’t being populated because the (‘)s for the whole JS file are being escaped and causing a Syntax Error.

  • Hi @boswall

    Sounds like the issue stems from a CORE WP scripts issue.

    If you can get that fixed, ACF will work correctly.

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘ACF not loading in post-new.php’ is closed to new replies.