Coder Social home page Coder Social logo

Comments (6)

LukasLt avatar LukasLt commented on July 25, 2024 2

ACF pro has renamed admin footer function in 5.3.7

fields/wysiwyg.php:
-       add_action('acf/input/admin_footer_js',     array($this, 'input_admin_footer_js'));
+       add_action('acf/input/admin_footer',    array($this, 'input_admin_footer'));

also

File core/media.php
-       add_action('acf/input/admin_footer_js',     array($this, 'admin_footer_js'));
+       add_action('acf/input/admin_footer',        array($this, 'admin_footer'));

from acf-qtranslate.

funkjedi avatar funkjedi commented on July 25, 2024

If you're not running PHP 5.4+ you need to have short_open_tag enabled to allow the use of the short echo tag (i.e. <?=).

from acf-qtranslate.

runbing avatar runbing commented on July 25, 2024

Oh yeah!!! It's worked!!! Thanks a lot for your help, funkjedi. ^_^

from acf-qtranslate.

Fabiato avatar Fabiato commented on July 25, 2024

Hi funkjedi,

I got the same error.
The short_open_tag is enabled

If I disable the ACF qTranslate the console doesn't show the error.


Wordpress 4.5.2
ACF qTranslate 1.7.9
ACF 5 Pro 5.3.7
qtranslate-X 3.4.6.7

from acf-qtranslate.

shankie-codes avatar shankie-codes commented on July 25, 2024

Likewise @funkjedi I'm having the same problem but on post-new.php (and only when ACF Qtrans is enabled).

Any ideas?


Wordpress 4.5.2
ACF qTranslate 1.7.9
ACF 5 Pro 5.3.8.1
qtranslate-X 3.4.6.8
PHP 5.6.21
short_open_tag = On

from acf-qtranslate.

shankie-codes avatar shankie-codes commented on July 25, 2024

My colleague figured out where the problem is coming from. I can work around it by killing warnings on the prod server, but would still be good to get to the bottom of it. Here's the error:

<b>Warning</b>: call_user_func_array() expects parameter 1 to be a valid callback, class 'acf_qtranslate_acf_5_wysiwyg' does not have a method 'input_admin_footer_js' in <b>/var/www/html/wp-includes/plugin.php</b> on line <b>525</b><br />

from acf-qtranslate.

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.