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 2017-04-22 18:40:41

Terry
Member
From: United Kingdom
Registered: 2013-02-19
Posts: 90
Website

Bug - Contact Page

I appreciate that this won't be fixed on this version but just incase it gets carried across to the new version.

On my contact page I have an album to show a map. http://www.terryliveseyphotography.co.uk/contact/

The image is located:

http://www.terryliveseyphotography.co.uk/galleries/contact-page/photos/TerryLiveseyPhotographyLocation.jpg

Once you fill the form and submit, the images turns to a big black box with a question mark and the image url changes to:

http://www.terryliveseyphotography.co.uk/contact/galleries/contact-page/photos/TerryLiveseyPhotographyLocation.jpg

Offline

#2 2017-04-22 19:17:05

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

Re: Bug - Contact Page

Strange.  How is that image URL being created?  Whatever code is making it is likely not coping with the source URL ending in ?success, which is how the post-submission URL looks: http://www.terryliveseyphotography.co.u … t/?success

Offline

#3 2017-04-22 22:21:34

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

Re: Bug - Contact Page

Terry, are you inserting a Theater Still Image album into the contact page?

I just tried that on the contact page on my test site, and the album I inserted still shows on the success page.
http://backlight-rb-test.barbeephoto.co … hp?success

Some album styling is missing though. In the real album, the image is centered. But that's probably another issue.
http://backlight-rb-test.barbeephoto.co … mage-test/


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

Offline

#4 2017-04-22 22:25:21

Terry
Member
From: United Kingdom
Registered: 2013-02-19
Posts: 90
Website

Re: Bug - Contact Page

Yeah a theatre still with it set to below the text.

Hmmm, not sure what I can do to stop it inserting the 'page' (contact) into the url as I have no control over any of the contact form.

Oh, I've found loads of issues with the styling not showing up on the actual page - you can see it if you look at an album direct (publisher - albums - view). It helps if you clear the template cache and your cache in the browser.

Offline

#5 2017-04-22 22:41:40

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

Re: Bug - Contact Page

Ah, clearing the caches cleared up the styling for me.

The image on my success page doesn't have the contact page name inserted into the url like yours does.

I wonder if the Page URL Format (in Settings > Website Settings) might have something to do with it. Mine is set at page.php (shows contact.php in drop-down)


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 2017-04-22 22:54:58

Terry
Member
From: United Kingdom
Registered: 2013-02-19
Posts: 90
Website

Re: Bug - Contact Page

Maybe as I have mine as a directory rather than .php

Offline

#7 2017-04-22 23:03:40

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

Re: Bug - Contact Page

That might be it. I just changed the Page URL setting on my test site from page.php to page/ and now the image no longer appears on the success page, just a placeholder with the filename. But it's not the blank black area you're getting.
And the image url now has the page name inserted :

http://backlight-rb-test.barbeephoto.com/contact/galleries/1-theater-albums/still-image-test/photos/Barbee_160807_8571.jpg

But at least this gives Ben a starting point.


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 2017-04-23 01:16:32

Terry
Member
From: United Kingdom
Registered: 2013-02-19
Posts: 90
Website

Re: Bug - Contact Page

Brilliant, thanks for nailing it down smile

Offline

#9 2017-04-23 07:31:10

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

Re: Bug - Contact Page

We'll have a fix in the next release, probably weeks away.

In the mean time, you can apply the fix by editing the file backlight/framework/helpers/URLHelper.php and changing line 295:

From this:

$url = preg_replace('/\?skipCache/', '', $url);

To this:

$url = preg_replace('/\?[a-zA-Z&]*/', '', $url);

Offline

#10 2017-04-23 19:02:15

Terry
Member
From: United Kingdom
Registered: 2013-02-19
Posts: 90
Website

Re: Bug - Contact Page

Thanks Ben, that was a quick fix smile

Offline

#11 2017-04-23 19:04:06

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

Re: Bug - Contact Page

Quick to apply, but much head-scratching to solve it smile

Offline

#12 2017-04-23 19:08:27

Terry
Member
From: United Kingdom
Registered: 2013-02-19
Posts: 90
Website

Re: Bug - Contact Page

ha ha, yeah sorry about that yikes

Offline

#13 2017-04-23 19:56:14

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

Re: Bug - Contact Page

No problem!  It was a bug that needed squashing.

Offline

Board footer

Powered by FluxBB