Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #59107
    Josef
    Participant

    Hi all.
    I have searched forum but did not found anything about this error.

    I have bought “Adventurous Pro” Theme but on my site it not working. And problem seems to be with qTranslate Plugin. Although free “Adventorous” works OK with it.

    Pro Theme shows only header and this error:

    Fatal error: Call to undefined function qtrans_convertURL() in /data/web/virtuals/96667/virtual/www/wp-content/themes/adventurous-pro/inc/adventurous-qtranslate.php on line 24

    I have bought Adventurous Pro expecially because you addvertise that it is fully compatible with qTranslate. But somehow it looks like not exactly true.

    My site uses WP 4.2.2, qTranslate-X 3.3, WP SEO & qTranslate-X 1.0.
    I tried also without SEO & qTrans but with the same result.
    Therefore I had to switch back to free version again.

    Thanks
    Josef Machytka
    http://www.galerie-katerina.org

    #59191
    Sakin
    Keymaster

    @Josef: Looks like the issue wtth qTranslate-X. This is new plugin and not qTranslate plugin. Thanks for reporting, we will fix this in new version update.

    For now, open the file adventurous-qtranslate.php and find the following code:

    if ( ! function_exists( 'adventurous_menuitem' ) ) :
    /**
     * Template for Converting Home link in Custom Menu
     *
     * To override this in a child theme
     * simply create your own adventurous_menuitem(), and that function will be used instead.
     *
     * @since Adventurous 1.0
     */
    function adventurous_menuitem( $menu_item ) {
    	// convert local URLs in custom menu items	
    	if ( $menu_item->type == 'custom' && stripos($menu_item->url, get_site_url()) !== false) {
    		$menu_item->url = qtrans_convertURL($menu_item->url);
    	}     
    		return $menu_item;
    } // adventurous_menuitem
    endif;

    Then replace that with the following codeL

    if ( ! function_exists( 'adventurous_menuitem' ) ) :
    /**
     * Template for Converting Home link in Custom Menu
     *
     * To override this in a child theme
     * simply create your own adventurous_menuitem(), and that function will be used instead.
     *
     * @since Adventurous 1.0
     */
    function adventurous_menuitem( $menu_item ) {
    	// convert local URLs in custom menu items	
    	if ( $menu_item->type == 'custom' && stripos($menu_item->url, get_site_url()) !== false && function_exists( 'qtrans_convertURL' ) ) {
    		$menu_item->url = qtrans_convertURL($menu_item->url);
    	}     
    	return $menu_item;
    } // adventurous_menuitem
    endif;
    #59200
    Josef
    Participant

    Yes it works. Great! Thanks. And I will really appreciate if you make changes for this new plugin. Therefore I bought you a “support coffe” as small motivation. Because I really need it. Thanks. 🙂

    #59212
    Sakin
    Keymaster

    @Josef: We will be adding this in new version update. Plugin compatible comes up after users finds problem. Thanks 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘undefined function qtrans_convertURL’ is closed to new replies.