qtranslate / qtranslate-xt

qTranslate-XT (eXTended) - reviving qTranslate-X multilingual plugin for WordPress. A new community-driven plugin soon. Built-in modules for WooCommerce, ACF, slugs and others.
GNU General Public License v2.0
553 stars 104 forks source link

error when I upgrade to latest version #1357

Open Ajre-it opened 1 year ago

Ajre-it commented 1 year ago

Describe the bug I Faced an issue when I upgrade form Version 3.11.4 to Version 3.15.2 the error is from this line of code `<?php if(qtranxf_getLanguage() == 'en'): if(is_404()) $url = get_option('home'); else $url = ''; ?>

                    <li><a href="<?php echo qtranxf_convertURL($url, 'ar', false, true); ?>" class="lang">العربية</a></li>
                    <?php else: ?>
                    <li><a href="<?php echo qtranxf_convertURL($url, 'en', false, true); ?>" class="lang">Eng</a></li>
                    <?php endif; ?>`

once I remove it the website will work but without language switcher

please fix the above code also note that above code is working fine in Version 3.11.4

Best regards