PDA

View Full Version : Sitemap issue



Ionut Barabasa
November 1, 2023, 07:30 PM
I installed the new sitemap ( 3.2.2) and i have one big issue with it.
Is not generating listings1.xml and plugins1.xml in files/sitemap/

In error_log i get the message that is a problem with includes/classes/rlLang.class.php more exactly with this line:


// Phrase by requested language
if ($params['lang'] && RL_LANG_CODE != $params['lang']) {

I switched back to 8.0 and 7.4 and problem is still present

Is there a fix for this?

Rudi
November 1, 2023, 08:49 PM
Hello,

Can you create a ticket for this problem?

Lomanero22
December 9, 2023, 10:02 PM
I have similar problem:

<b>Fatal error</b>: Uncaught Error: Undefined constant RL_LANG_CODE in /var/www/vhosts/scentofgirls.com/httpdocs/includes/classes/rlLang.class.php:508

Lomanero22
December 9, 2023, 10:34 PM
I have solved.

in rlSitemap.class.php init() function move this code:



if ($config['lang']) {
if (!$lang) {
$lang = $GLOBALS['rlLang']->getLangBySide('frontEnd', $config['lang']);
}
if (!defined('RL_LANG_CODE')) {
define('RL_LANG_CODE', $config['lang']);
}
}


just above this code:



$this->languages = $this->getActiveLanguages();
$this->languagesCount = count($this->languages);
$this->basePath = RL_URL_HOME;