VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

Error jf_salina/error.php on line 310
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Error jf_salina/error.php on line 310

Error jf_salina/error.php on line 310 18 Sep 2016 20:13 #9446

Hello,
I've found on my server this kind of error:
[Sun Sep 18 07:17:10.719290 2016] [:error] [pid 1724] [client IP] PHP Fatal error: Call to a member function get() on a non-object in /var/www/hell/templates/jf_salina/error.php on line 310

At line 310 I find this: <?php if ($this->params->get('logoOption') == 1){ ?>


(function($) {
$(document).on("click", '.navbar-toggle', function(e) {
$( "#main-navigation" ).toggleClass("open");
e.preventDefault();
});
if($(window).width() <= 768){
$(document).on("click", '#main-navigation li.parent a', function(e) {
if( $(this).attr( "href" ) == "#" || $(this).attr( "href" ) == "" ){
$( this ).parent().toggleClass("open");
e.preventDefault();
}
});
}
if($(window).width() < 767)
$("a.brand img").attr("src", "<?php echo $logoScroll; ?>");
$( window ).resize(function() {
if($(window).width() < 767)
$("a.brand img").attr("src", "<?php echo $logoScroll; ?>");
else
$("a.brand img").attr("src", "<?php echo $logo1; ?>");
});
$(window).scroll(function() {
($(window).scrollTop() >= 300 ) ? $('.navbar-default').addClass('navbar-shrink') : $('.navbar-default').removeClass('navbar-shrink');
<?php if ($this->params->get('logoOption') == 1){ ?>
if($(window).width() > 767){
if( $(window).scrollTop() >= 300)
$("a.brand img").attr("src", "<?php echo $logoScroll; ?>");
else
$("a.brand img").attr("src", "<?php echo $logo1; ?>");
}

<?php } ?>
($(window).scrollTop() >= 300 ) ? $('#back-to-top').addClass('show') : $('#back-to-top').removeClass('show');
});
})(jQuery);


What is the problem?

  • Posts:4
  • Rufy
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Error jf_salina/error.php on line 310 19 Sep 2016 02:52 #9447

Try to modify this line to:
<?php if ($params->get('logoOption') == 1){ ?>

joomfreak

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.45 seconds
Friday 26 April 2024

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.