Community @ The Turning Gate

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.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2014-08-15 07:15:57

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Contact Page Broken

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

#2 2014-08-15 07:52:20

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Contact Page Broken

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

#3 2014-08-15 08:09:59

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Contact Page Broken

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

#4 2014-08-15 08:15:27

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Contact Page Broken

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

#5 2014-08-15 08:18:26

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Contact Page Broken

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

#6 2014-08-15 08:31:45

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Contact Page Broken

I tried that. No such luck. If I re-upload a stock phplugins file, it works again...


Kyle Lucy Photography
kylelucy.com

Offline

#7 2014-08-15 08:40:42

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Contact Page Broken

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

#8 2014-08-15 08:44:28

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Contact Page Broken

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

#9 2014-08-15 08:58:39

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Contact Page Broken

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

#10 2014-08-15 08:59:16

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Contact Page Broken

Notepad on Windows 7.


Kyle Lucy Photography
kylelucy.com

Offline

#11 2014-08-15 09:07:08

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Contact Page Broken

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 wink


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#12 2014-08-15 09:18:40

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Contact Page Broken

Any idea how I could check that?


Kyle Lucy Photography
kylelucy.com

Offline

#13 2014-08-15 09:37:25

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Contact Page Broken

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

#14 2014-08-15 18:16:39

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Contact Page Broken

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

#15 2014-08-15 18:51:12

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Contact Page Broken

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

#16 2014-08-15 20:52:19

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Contact Page Broken

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

#17 2014-08-15 21:09:03

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Contact Page Broken

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

#18 2014-08-16 03:35:36

kmlucy
Member
From: Atlanta, GA
Registered: 2013-01-30
Posts: 123
Website

Re: Contact Page Broken

Using Notepad++ fixed the problem. Thank you so much!


Kyle Lucy Photography
kylelucy.com

Offline

Board footer

Powered by FluxBB