Shape 5

Joomla Templates => University - Club => : edmondo February 12, 2014, 04:02:13 AM



: s5_language_direction
: edmondo February 12, 2014, 04:02:13 AM
How to solve this notice?

Undefined variable: s5_language_direction in /home/italgen/public_html/templates/university/index.php on line 220

Global Configuration > Server > Error Reporting is set to Maximum.


: Re: s5_language_direction
: mikenicoll February 13, 2014, 12:07:14 AM
Hello,

In the index.php you can just remove the language direction call and it won't display the error. That call was made for Templates later on and was probably added during a 3.0 update and just missed.

-Mike


: Re: s5_language_direction
: redco April 28, 2015, 08:23:35 AM
Helo



<link href="<?php echo $LiveSiteUrl;?>templates/university/css/bootstrap/bootstrap-default.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $LiveSiteUrl;?>templates/university/css/bootstrap/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
<?php if($s5_language_direction == "1") { ?>   
<link rel="stylesheet" type="text/css" href="<?php echo $LiveSiteUrl;?>templates/university/css/bootstrap/bootstrap-rtl.css" />
<?php } ?>
<link rel="stylesheet" href="<?php echo $LiveSiteUrl ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $LiveSiteUrl ?>templates/system/css/general.css" type="text/css" />


What is the line of code that I should delete?

Thanks



: Re: s5_language_direction
: mikenicoll April 28, 2015, 09:37:13 PM
Hello,

This code block:

:
<?php if($s5_language_direction == "1") { ?>   
<link rel="stylesheet" type="text/css" href="<?php echo $LiveSiteUrl;?>templates/university/css/bootstrap/bootstrap-rtl.css" />
<?php ?>


: Re: s5_language_direction
: redco April 28, 2015, 11:55:47 PM
Thanks

also must change the following lines
in index.php

Line 392
<?php  $user = & JFactory::getUser();
to:
<?php  $user = JFactory::getUser();

Linea 401
<?php  $user =  & JFactory::getUser();
to:
<?php  $user = JFactory::getUser();


Strict Standards: Only variables should be assigned by reference in /home/xxxxx/public_html/modules/mod_s5_image_and_content_fader/tmpl/default.php on line 52

$doc = & JFactory::getDocument();
to:
$doc = JFactory::getDocument();

Strict Standards: Only variables should be assigned by reference in /home/xxxxxxx/public_html/modules/mod_s5_image_scroller/mod_s5_image_scroller.php on line 159

$mainframe = & JFactory::getDocument();
to:
$mainframe = JFactory::getDocument();



: Re: s5_language_direction
: mikenicoll April 30, 2015, 10:53:25 PM
Hello,

The "Strict Standards" error needs to be fixed on your server as Joomla does not function properly with it enabled. You can have your host edit your PHP.INI file on the server to turn off PHP Strict Standards or turn off Error Reporting.