• Resolved X-Raym

    (@x-raym)


    Hi,

    First, thanks for your nice plugin ??

    With qTranslate-X, I get a PHP error:

    WARNING: wp-includes/plugin.php:235 - call_user_func_array() expects parameter 1 to be a valid callback, function 'qtrans_convertURL' not found or invalid function name
    require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/highwind-child/single.php'), get_footer, locate_template, load_template, require_once('/themes/highwind-child/footer.php'), highwind_footer, do_action('highwind_footer'), highwind_footer_widgets, dynamic_sidebar, WP_Widget->display_callback, Related_Widget->widget, Related->show, get_permalink, get_post_permalink, apply_filters('post_type_link')

    It seems that there is a problem in line 265 of related.php

    			if ( is_plugin_active($plugin) || is_plugin_active($q_plugin) || is_plugin_active($m_plugin) ) {
    				add_filter('post_type_link', 'qtrans_convertURL');
    			}

    Any idea on how to fix this a part from deleting it ?

    Thanks for listening !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter X-Raym

    (@x-raym)

    Actually I find the error, by looking at qTranslate-X code,

    you should add a condition to tell that if qTranslate-X then the filter callback is qtranxf_convertURL.

    This will resolve the issue. ??

    • This reply was modified 8 years ago by X-Raym.
    Plugin Author Marcel Pol

    (@mpol)

    Ah, thanks. I never noticed this (I don’t use both plugins together).

    It is fixed in the new version.

    Thread Starter X-Raym

    (@x-raym)

    Thanks Marcel !!

    Cheers ??

    • This reply was modified 8 years ago by X-Raym.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Error: qtrans_convertURL does not exist’ is closed to new replies.