Support

Account

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

Solved

ACF not loading in post-new.php

  • Hi there,

    Since updating to ACF 4.1.8.1 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…4.1.8.1 (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!

    • Elliot

    • July 12, 2013 at 5:55 pm

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

    • Elliot

    • July 14, 2013 at 4:22 pm

    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?

    • Elliot

    • July 14, 2013 at 4:23 pm

    Hi @pixcompany

    You can find previous versions here:

    http://wordpress.org/plugins/advanced-custom-fields/developers/

  • 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)

    • Elliot

    • July 18, 2013 at 3:19 pm

    Hi @boswall

    Thanks mate, I’ll do some testing

    • Elliot

    • July 18, 2013 at 3:21 pm

    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?

    • boswall

    • July 19, 2013 at 12:42 am

    @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 http://www.winkreative.stage.glaikit.co.uk/test.php

    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.

    • Elliot

    • July 20, 2013 at 12:07 pm

    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)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.