• Resolved bdvllrd

    (@bdvllrd)


    I just updated from MSLS 1.1 to 2.0.3. After this update the whole website down.

    It seems that I can’t get the MslsBlogCollection class now.

    debug.log :
    [16-Dec-2018 11:59:40 Europe/Paris] PHP Fatal error: Class ‘MslsBlogCollection’ not found in /home/xxxxxxx/wp-content/themes/cte/header.php on line 53

    Here is the code (from header.php – lines 52 to 56) that runs with the 1.1 version and breaks now with 2.0.3 :

    			<div class="language">
    				<?php $blog = MslsBlogCollection::instance()->get_current_blog(); $language = $blog->get_language();?>
    				<div id="langswitcher" class="bfh-selectbox bfh-languages" data-language="<?php echo $language;?>" data-available="fr_FR,en_GB,de_DE,es_ES" data-flags="true" data-blank="false">
    				</div>
    			</div>

    Any idea to solve this issue ?

    Thanks a lot

    • This topic was modified 6 years, 2 months ago by bdvllrd.
Viewing 1 replies (of 1 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    Version 2 has namespaces classes … lloc\Msls\BlogCollection for example.

    There are also 2 addons that could be interestingfor you: MslsMenu and MslsSekect

Viewing 1 replies (of 1 total)
  • The topic ‘I can’t get the MslsBlogCollection class with 2.0.3 release’ is closed to new replies.