Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
Hello,
I went about enabling custom CSS today, and when I tried to access my contact page, all I got was an error message:
session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/k/m/l/kmlucy/html/phplugins/phplugins.php:1)|#0 [internal function]: ErrorHandler::handleError(2, 'session_start()...', '/home/content/k...', 94, Array) #1 /home/content/k/m/l/kmlucy/html/ttg-be/framework/init.php(94): session_start() #2 /home/content/k/m/l/kmlucy/html/lib.php(73): require_once('/home/content/k...') #3 /home/content/k/m/l/kmlucy/html/contact.php(95): require_once('/home/content/k...') #4 {main}|URL: /contact.php
(http://kylelucy.com/contact.php)
Does anybody know what the problem is? Thanks.
Kyle Lucy Photography
kylelucy.com
Offline
Have you tried re-exporting and uploading it again?
It worked ok before you implemented phplugins?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I went through and re-uploaded all my phplugins folders (not a big deal since I haven't edited them yet). This seems to have fixed the problem, but I'm not sure what the problem originally was. Thanks.
Kyle Lucy Photography
kylelucy.com
Offline
As soon as I edited my phplugins file, the contact page broke again. All I did was enable the custom css by deleting the two lines. Any idea what is going on? Thanks.
Kyle Lucy Photography
kylelucy.com
Offline
this is weird. I clicked on the link and went to your contact page with no problem. I then navigated away and saw your red background from the custom css. Then when I navigated back to your contact page (I didn't think it had a red background) I saw the same error as before.
Try re-exporting Pages and uploading that again. I don't think it will change anything but it's worth a try.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I tried that. No such luck. If I re-upload a stock phplugins file, it works again...
Kyle Lucy Photography
kylelucy.com
Offline
So as long as you don't delete those two lines surrounding the custom css section, it's ok? that's just plain weird.
Is there any other part of the phplugins file active other than the custom css section? Like navigation?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Actually, it's not even deleting the lines. As far as I can tell, if I modify the file in any way, even deleting something, saving the file, putting the deleted line right back, and saving the file again, it breaks my contact page. I tried putting the two lines back, and it still didn't work, but then I re-uploaded the stock file (which, as far as I can tell, has identical contents) and the contact page worked again.
Kyle Lucy Photography
kylelucy.com
Offline
What are you using to modify the files? It should be a plain text editor. And there's one on the Mac that can mess things up, I just can't remember which one. There's been discussions about it on the forum.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Offline
that should be fine.
You could try pasting your modified phplugins file here to see if anyone can spot anything.
The only thing different about that page is the presence of the contact form. That relies on ttg-be so I'm wondering if it's a database issue. Perhaps your host hasn't enable sql ? Mind you, this is relatively uninformed conjecture on my part
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Offline
no. You might try sending a PM or email to Ben and ask him to take a look. You can find his contact info by searching his name from the User List above.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
The very start of the first line must read <?php. Do you have a space or blank line before that?
I can see that the file http://kylelucy.com/phplugins/phplugins.php returns something when it shouldn't. That something is 3 bytes long, though invisible and taking no space in a text editor. I'll try to work out what character it is.
What text editor are you using? You may want to try something else.
Offline
Found it. Your editor is inserting a Byte-order-mark at the start of the file. You'll need to change the settings in your editor so that BOM characters are not added when you save files. If you're curious, here's the Wikipedia entry on BOMs: http://en.wikipedia.org/wiki/Byte_order_mark
Offline
And if you're frustrated with just plain Notepad, try Notepad++. It's free and it's an great editor
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
That, it is. Here's a post about BOM in Notepad++ taken from http://stackoverflow.com/questions/8432 … thout-bom:
Use Notepad++ instead. See my personal blog post on it. From within Notepad++, choose the "Encoding" menu, then "Encode in UTF-8 without BOM".
Offline
Using Notepad++ fixed the problem. Thank you so much!
Kyle Lucy Photography
kylelucy.com
Offline
Pages: 1