Since I have pased to HTTPS and randomly, on any browser I get a page with the background only
and an “error 0” display. Like on below pict.
All pages of the site have been set to “error_reporting(0)”
Whats wrong Doctor…? #-o
Thanks for the help. Regards.
-= Guy =-
I had forgot to add this pict of a part of the script of the index page that appears
when you visit the website. It is NOT the actual script of “index.php”
You’ll need to post your index.php source to have us help resolve this. The problem does not appear to be in top.php or header.php, but likely in index.php itself.
<!-- end of flyout-menu.php CSS definition -->
<!-- World-ML template from http://saratoga-weather.org/wxtemplates/ -->
<!-- end of top -->
<link rel="stylesheet" media="all" type="text/css" href="css/home2.css" />
</head>
<body>
error: 0
The part of the index.php that is responsible for that area is
<link rel="stylesheet" media="all" type="text/css" href="css/home2.css" />
</head>
<body>
<?php
// BEGIN detect if mobile and redirect to cell page if yes.
//if (file_exists('goog_visits/goog_header.php'))
//{ include('goog_visits/goog_header.php'); }
if (file_exists('goog_visits/goog_header.php'))
{ include('goog_visits/goog_header.php'); }
global $K;
// alert ($K['time_lastvisit']);
if(($K['time_lastvisit'] == 0 ) || (time() > $K['time_lastvisit'])) {
//require_once (dirname(__DIR__).'/php/Mobile_Detect.php');
require_once ('php/Mobile_Detect.php');
$detect = new Mobile_Detect();
$layout = ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'mobile') : 'desktop');
// $layout = 'mobile';
// $layout = 'tablet';
// alert ('tertert');
if($layout == 'mobile') { ?>
<script type="text/javascript" >
document.location.href="cell.php";
</script>
<?php }
if($layout == 'tablet') { ?>
<script type="text/javascript" >
document.location.href="wxcell.php";
</script>
<?php }
}
// END detect if mobile and redirect to cell page if yes.
############################################################################
include("header.php");
You didn’t include the two scripts goog_visits/goog_header.php and php/Mobile_Detect.php
does not appear in the output, it is likely that either the goog_header.php or Mobile_Detect.php script is the problem.
Please post them, and I’ll take a look.
’ sequences appear before the ‘Error: 0’, I think that the goog_visits/goog_header.php script lines
echo '
';
// BEGIN google get info
$pos = 'http://maps.googleapis.com/maps/api/geocode/json?latlng='.$K['lat'].','.$K['lon'].'&sensor=true'; //V3
$jsdata = @file_get_contents($pos); //read the HTTP request
are likely the problem.
The URL for $pos should likely be https:// (since when I try it manually in a browser, it does a 302 to the https:// of the URL).