Support » Plugins » wp-syntax plugin undefined function: do_action_ref_array

  • When I install and activate wp-syntax I see;

    Fatal error: Call to undefined function: do_action_ref_array() in /usr/local/apache2/htdocs/blog/wp-content/plugins/wp-syntax/wp-syntax.php

    I grepped for do_action_ref_array() and found a definition of it in
    wp-syntax/test/index.php

    but I guess this is not the one.

    My best guess is that WordPress 2.0.5 is not compatible with wp-syntax, although the documentation says that 2.0 and above should be ok.

    Am I missing something obvious ? I have googled and not found an answer.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I resolved by upgrading to WordPress Version 2.6. Easier than I thought. WordPress is great and so is wp-syntax.

    But the release notes for wp-syntax might be wrong about the plugin working with WordPress 2.0.5.

    I’m currently using WordPress 2.0.11 — simply because my webhost won’t support PHP 4.3 or MySQL version 4.0 … I know, I’m about to move to another host who realises that it’s 2009!

    Anyway, using wp-syntax 0.9.2 if you open wp-syntax.php change line 106 from:

    do_action_ref_array('wp_syntax_init_geshi', array(&$geshi));

    to

    do_action('wp_syntax_init_geshi', array(&$geshi));

    the plugin works for me (although I haven’t done any extensive testing) without the “Call to undefined function” error. I found details about the function in the Codex:

    http://codex.wordpress.org/Function_Reference/do_action_ref_array

    Hope that helps.

    Gareth

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp-syntax plugin undefined function: do_action_ref_array’ is closed to new replies.