Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 PHP-generated text missing from site
Previous Page
Author « Topic »
Page: of 2

Jan Andrea
Advanced Member

USA
468 Posts

Pre-sales questions only
(More Details...)

Posted - 03/10/2019 :  13:32:49  
No, it's just meta stuff for the header, no other includes. This is the complete code:

[code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<?php
session_cache_limiter('none');
session_start();
ob_start(); ?>
<html>
<head>
<title>sleeping baby productions | <?php echo PAGENAME ?></title>
<meta name="keywords" content="ring sling, sleeping baby productions, sleeping baby slings, sbp slings, jan andrea, baby sling, sling, baby carrier, overlapping pleats, pleated sling, easy baby carrier, best baby sling, best baby ring sling">
<meta name="description" content="sleeping baby productions offers custom hand-sewn slings in a variety of fabrics, sizes, and prices to fit every parent's need. Create your own sling, whose style will be just your own.">
<meta name="revisit-after" content="30 days">
<meta http-equiv="imagetoolbar" content="no">
<meta name="robots" content="index,follow">
<meta property="og:url" content="http://www.sleepingbaby.net/" />
<meta property="og:image" content="http://www.sleepingbaby.net/sbp_logo.jpg" />
<meta property="og:description" content="quietly delivering quality since 2001 -- maker of custom-sewn ring slings that are truly your own." />
<meta property="og:title" content="sleeping baby productions LLC" />
<meta property="og:type" content="website" />
<?php print $metaogimage;?>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=1.0, initial-scale=1" />
<script src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/ectcart.js"></script>
<link href="https://fonts.googleapis.com/css?family=Hind" rel="stylesheet">
<link href="/css/ectcart.css" rel="stylesheet" type="text/css" />
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<link href="/css/slider3.css" rel="stylesheet" type="text/css" />
<link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '103561893693012'); // Insert your pixel ID here.
fbq('track', 'PageView');
</script>
<!-- PayPal BEGIN --> <script> ;(function(a,t,o,m,s){a[m]=a[m]||[];a[m].push({t:new Date().getTime(),event:'snippetRun'});var f=t.getElementsByTagName(o)[0],e=t.createElement(o),d=m!=='paypalDDL'?'&m='+m:'';e.async=!0;e.src='https://www.paypal.com/tagmanager/pptm.js?id='+s+d;f.parentNode.insertBefore(e,f);})(window,document,'script','paypalDDL','a5395232-bfe6-11e7-a6b0-95d1d3998580'); </script> <!-- PayPal END -->
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=103561893693012&ev=PageView&noscript=1"
/></noscript>
<!-- DO NOT MODIFY -->
<!-- End Facebook Pixel Code -->

</head>[/code]

http://www.sleepingbaby.net/
Using ECT 7.0.3

Andy
ECT Moderator

95440 Posts

Posted - 03/10/2019 :  13:59:10  
So, do you then have this duplicated

<?php
session_cache_limiter('none');
session_start();
ob_start(); ?>

On the page and again in the include page?

Andy

Please feel free to review / rate our software

Jan Andrea
Advanced Member

USA
468 Posts

Pre-sales questions only
(More Details...)

Posted - 03/10/2019 :  14:16:59  
Which include page? includes.php? Right now I've only got it calling the session start once, at the top of each page, unless it's duplicated in incfunctions.php

http://www.sleepingbaby.net/
Using ECT 7.0.3

Edited by - Jan Andrea on 03/10/2019 14:17:44

Andy
ECT Moderator

95440 Posts

Posted - 03/11/2019 :  01:16:52  
That really needs to be like this

<?php
session_cache_limiter('none');
session_start();
ob_start(); ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

so the session code is at the top of page with nothing before it. My question before was whether both proddetail.php and metatop.php start with

<?php
session_cache_limiter('none');
session_start();
ob_start(); ?>

as that would be a problem if that was on both pages.

Andy


Please feel free to review / rate our software

Jan Andrea
Advanced Member

USA
468 Posts

Pre-sales questions only
(More Details...)

Posted - 03/11/2019 :  07:36:23  
I've reordered the html and PHP code on metatop.php

proddetail.php does not have the session start code. It begins with

[code]<?php
define('PAGENAME', 'product detail');
include('metatop.php');
?>[/code]
and has some scripts that are detail-page specific (the size calculator) and then this:

[code]<?php include "left_top.php";
include "vsadmin/inc/incproddetail.php";
include "bottom.php"; ?>[/code]

http://www.sleepingbaby.net/
Using ECT 7.0.3

Jan Andrea
Advanced Member

USA
468 Posts

Pre-sales questions only
(More Details...)

Posted - 03/11/2019 :  07:38:49  
Reordering the html and php seems to have made a difference!
This is why I'm not a coder, I guess. Why would declaring a PHP session start after the "hi, this is HTML" code cause an error?
Well, it's working now, so I'll remember that for next time :D Thank you!

http://www.sleepingbaby.net/
Using ECT 7.0.3
Page: of 2 « Topic »  
Previous Page
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0 seconds. Snitz Forums 2000