ideepak3m
Forum Replies Created
-
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] php html table page generates errorsThanks will do that
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] php html table page generates errorsThanks for the quick reply.
Do I need to have woocommerce to create a template?
Is there an other example you can think of?
my real problem is that I have created an html in a php variable and I need to convert that html in the variable as a pdf and email it.
Forum: Fixing WordPress
In reply to: Warning: session_start(): Cannot send session cache limiterI found the solution, so I’m updating for any user like me.
On the word press landing folder there will be an index.php file. This file is the landing page for any website on wordpress and this file is used to start the theme and other associated functions.
Open this file and modify it to look like
<?php
session_start();and the rest of the code can follow
Then you should not get the subject warnings.
I’m yet to figure out the complete impact of this, but at least my senses are back and I can start my work once again.
Forum: Fixing WordPress
In reply to: Warning: session_start(): Cannot send session cache limiterthis is very strange.
I have this hard coded html page along with php code and I get the same warning.
The file can be accessed at
http://yellowcoachnew.springbrookbrampton.com/Index.phpI get the error message on line 387.
This is how normally the wordpress pages function, so I put my php code at that location. Unto line 386 the wordpress theme puts the header.php code and then my page starts, so the php code on the first line on my webpage would start at that location.
Forum: Fixing WordPress
In reply to: Warning: session_start(): Cannot send session cache limiterFor the Tesseract theme, I get the error on line 10 at the same command.
That file I have seen it in hex code and there was no extra spacing on the file. These are some of the things I have done to so far
1. I saw the header.php file in the hex code to confirm no unnecessary space
2. I took the mix of html and php page and converted everything to php code
but it always fails on the same code.If I remove the php code but just retain the <html> code then it fails on the next php code line which is adding a meta tag with the encoding, and if I comment that too, it just errors out on the next html mixed with php (in both the cases)
I have one other website on the same host, and that works out without any issues for any theme. So, I copied that header.php file from there but even then it fails on the same location.
I was fed up of this, so I blew up the problem website and created a fresh install, but still the problem persists.
Then I decided to create another website with no wordpress, wth only simple html and php files to check, and viola it works over there without issues.
So, given this new success, I copy the entire generated html from wordpress along with wp folders (for css, images etc.) and run, I get the same error with a simple php script right at the top of the html page
<?php
session_start();
$_SESSION[“home”] = “Checking”;
echo “S ” .$_SESSION[“home”];
?>
So, I went to the generated html page and removed the language from the <html> tag and the meta tag with the character set (which was utf-8), now it works without an error.Previously when these warnings were occurring somebody said that these are just warnings so don’t bother, so I decided to ignore and continue, and one fine day, the web pages could not retrieve the session variables at all, and my webpages failed completely.
So, I’m skeptical to ignore these warnings now.
I’m very tired now, so any pointers I would hugely appreciate.