View Full Version : Solved Translated pages blank - not redirecting to translated URL

13-12-13, 03:18
After updating to 4.2.2 I'm getting blank translated pages. I believe this is because the translated URL's are not properly redirecting. The behavior is different when logged in vs not logged in.

For example: http://cellphoneforums.net/sports/t84541-hockey-soccer.html
Translated page is blank when logged in: http://cellphoneforums.net/es/sports/t84541-hockey-soccer.html
When not logged in translated page is redirected to: http://cellphoneforums.net/es/sports/t84541-hockey-o-el-f%C3%BAtbol.html
If page is accessed directly when logged in, it works.
If not logged in you cannot access original English page when clicking on flag: http://cellphoneforums.net/sports/t84541-hockey-o-el-f%C3%BAtbol.html

Marcin Kalak
13-12-13, 21:02
The issue is integration vBET with vBSEO.
To fix this:

Open file /vbseo/includes/functions_vbseo_url.php
Find code:

if (isset($_REQUEST['language'])) {
require_once(DIR. '/includes/vbenterprisetranslator_functions_url_tracking.php');
$fulluri = vbet_createURLForAddressNoReplace($_REQUEST['language'], $fulluri);

PUT AFTER it this code:

header ("Location: $fulluri");

Save the file.

13-12-13, 21:07
Ah, it's always something simple. Thanks! :D

Marcin Kalak
16-12-13, 14:45
I'm glad I could help you.

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Languages translations delivered by vBET 4.9.99