Forum Support

Shape 5
March 29, 2024, 01:25:13 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: s5_language_direction  (Read 4495 times)
edmondo
Jr. Member
**
Offline Offline

Posts: 55



« on: 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.
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #1 on: 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
Logged

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
redco
Jr. Member
**
Offline Offline

Posts: 4



« Reply #2 on: 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

Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #3 on: April 28, 2015, 09:37:13 PM »

Hello,

This code block:

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

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
redco
Jr. Member
**
Offline Offline

Posts: 4



« Reply #4 on: 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();

Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #5 on: 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.
Logged

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.