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?