Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter JacobTheDev

    (@revxx14)

    Putting a WYSIWYG editor in the Options page fixes the issue, if that helps diagnose a proper fix. I’d rather not leave an empty WYSIWYG on the Options page though.

    Plugin Author Corey Worrell

    (@coreyw)

    Thanks for the information revxx14. I’ve released an update that should fix that!

    Thread Starter JacobTheDev

    (@revxx14)

    Fantastic, thanks ??

    Plugin Author Corey Worrell

    (@coreyw)

    I never actually tested on other areas that ACF can be used, so thanks for pointing this out, looks like there are a couple other places that will need fixes as well.

    Thread Starter JacobTheDev

    (@revxx14)

    Quick question, I’m now getting an error:

    Parse error: syntax error, unexpected '[' in /a/server/path/wp-content/plugins/acf-link/src/AcfFieldLink.php on line 19

    Going to try and debug it and report back…

    Thread Starter JacobTheDev

    (@revxx14)

    So here’s the code it doesn’t like:

    $this->defaults = [
        'show_fields' => ['title', 'target'],
    ];

    This was working fine with MAMP, but my guess is that the server I’m running it on may have an older PHP version. Any way I can get this working?

    Plugin Author Corey Worrell

    (@coreyw)

    @revxx14,
    This plugin requires PHP version >= 5.4. It looks like the server could be using an older (no longer supported) version.

    Plugin Author Corey Worrell

    (@coreyw)

    You can manually replace the short array syntax brackets with the old syntax.

    ie:

    $this->defaults = array(
        'show_fields' => array('title', 'target'),
    );
    Thread Starter JacobTheDev

    (@revxx14)

    Options page issue has shown up again, maybe because of a WordPress update?

    Plugin Author Corey Worrell

    (@coreyw)

    @revxx14,

    Hi, have you updated to latest version (1.1.4)? I am testing with WP 4.6.1-alpha and it is working on option pages. Is there possibly another plugin generating a JavaScript error and causing the link field to not work either?

    Thread Starter JacobTheDev

    (@revxx14)

    Weird, WordPress is saying I have 1.1.1 installed, with no updates available.

    Plugin Author Corey Worrell

    (@coreyw)

    Yes that is very weird. Sounds like something is up with the update checker on your install. Manually updating from the wp.org plugin page and uploading new version should fix the options page issue though.

    Thread Starter JacobTheDev

    (@revxx14)

    Not sure what happened but I manually upgraded and it’s working now. Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Can't be used on an Options page’ is closed to new replies.