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 2015-06-09 15:28:11

gh69
Member
Registered: 2014-08-18
Posts: 26

No more Icons if navigate back with breadcrumbs

I loose all icons in the Gallery if i navigate back in the gallery
also the www. in front of my adress disapears
any help?

http://www.ghahn.de/gallerien/frohnauer … ertha-bsc/

thank you
Guido

Last edited by gh69 (2015-06-09 16:08:29)

Offline

#2 2015-06-09 17:40:14

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: No more Icons if navigate back with breadcrumbs


Matt

The Turning Gate, http://theturninggate.net

Offline

#3 2015-06-09 18:02:01

gh69
Member
Registered: 2014-08-18
Posts: 26

Re: No more Icons if navigate back with breadcrumbs

I created the .access file but then i got the internal server error

Offline

#4 2015-06-09 22:10:27

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

Re: No more Icons if navigate back with breadcrumbs

you may have set it up to rewrite to suppress the www when it looks like you need to make sure all urls have the www.

Maybe try this instead in your .htaccess file:
http://stackoverflow.com/questions/4916 … eneric-way


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

Offline

#5 2015-06-09 22:46:48

gh69
Member
Registered: 2014-08-18
Posts: 26

Re: No more Icons if navigate back with breadcrumbs

thank you for the answers
but i do not have a subdomain

Offline

#6 2015-06-09 23:14:20

gh69
Member
Registered: 2014-08-18
Posts: 26

Re: No more Icons if navigate back with breadcrumbs

as soon as i put any .htaccess file in the root folder , the internal server error appears

Offline

#7 2015-06-09 23:19:41

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

Re: No more Icons if navigate back with breadcrumbs

but i do not have a subdomain

a subdomain has nothing to do with it. That rewrite simply makes sure that you'd have http://www.yoursite.com instead of http://yoursite.com

if placing .htaccess in the root of your site is causing problems, you should probably contact your host


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 2015-06-09 23:39:14

gh69
Member
Registered: 2014-08-18
Posts: 26

Re: No more Icons if navigate back with breadcrumbs

sorry, just to understand , why only with the breadcrumb navigation.
as soon i turn off breadcrumbs everything is fine

Offline

#9 2015-06-10 00:02:24

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

Re: No more Icons if navigate back with breadcrumbs

probably has to do with the logic that Publisher uses to display breadcrumbs

Your version of Publisher (2.0.2) is quite a bit behind. The current version is 2.2.1a
http://ce4.theturninggate.net/docs/doku … _changelog

First try updating to the latest version of Publisher


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 2015-06-10 00:52:54

gh69
Member
Registered: 2014-08-18
Posts: 26

Re: No more Icons if navigate back with breadcrumbs

just updated Publisher , TTG-Be and published the gallery new.
same problem.
my host is 1&1 germany.
don´t know what to do

Offline

#11 2015-06-10 02:31:32

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

Re: No more Icons if navigate back with breadcrumbs

Since breadcrumbs are part of Publisher, this is more of a Publisher issue. I'll move the topic over there so that Ben will be more likely to see it.


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 2015-06-10 06:20:12

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

Re: No more Icons if navigate back with breadcrumbs

Be sure to check your Publisher API URL as well. It should match up with the rest of your site after any redirects are taken into consideration.

From an email exchange with Ben awhile back:

"So if there are redirects from non-www to www, then the API URL should begin with www (and vice versa)."

I don't know if this affects the breadcrumb logic, but it's something else to check


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

Offline

#13 2015-06-10 13:21:39

gh69
Member
Registered: 2014-08-18
Posts: 26

Re: No more Icons if navigate back with breadcrumbs

after sleepless night i have to disable breadcrumbs in all of my galleries.
but all visitors complained about navigate back in my galleries bevor the breadcrumb activation.

any idea how to cope with this?

thank you for your help

Offline

#14 2015-06-10 13:39:23

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

Re: No more Icons if navigate back with breadcrumbs

wait for Ben to chime in. Or you can PM or email him.

He'll probably need access to ttg-be and perhaps ftp access. He may need Publisher logs.

More info here: http://ce4.theturninggate.net/docs/doku … g_for_help


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

Offline

#15 2015-06-10 15:00:31

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: No more Icons if navigate back with breadcrumbs

Breadcrumbs are the designed solution.

You will need to create the .htaccess file. Contact your host to verify that .htaccess support is enabled for your domain, then go through the example we provide, function by function, line-by-line, and try things out. There are comments embedded in the example, so you may need to make some adjustments to the code. The mere existence of the file should not cause any error; an error should only occur if something in the file is incorrect.


Matt

The Turning Gate, http://theturninggate.net

Offline

#16 2015-06-10 20:42:14

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

Re: No more Icons if navigate back with breadcrumbs

The issue is that the URL constructor in TTG BE is using the variable SERVER_NAME instead of HTTP_HOST.  For your site, SERVER_NAME returns ghahn.de while HTTP_HOST returns www.ghahn.de.  By using SERVER_NAME, the URLs end up losing the 'www.'.

All other similar code in TTG BE prioritises HTTP_HOST over SERVER_NAME, avoiding this problem.  The fix will require an update to TTG BE, however we are not planning to update TTG BE any time soon. 

Can you instead edit the file ttg-be/framework/helpers/URLHelper so that the function currentPageURL reads:

static public function currentPageURL() {
        $pageURL = 'http';

        if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {
            $pageURL .= "s";
        }
        
        $pageURL .= "://";

        $host = isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : $_SERVER["SERVER_NAME"];
        
        if ($_SERVER["SERVER_PORT"] != "80") {
            $pageURL .= $host.":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
        } else {
            $pageURL .= $host.$_SERVER["REQUEST_URI"];
        }

        return $pageURL;
    }

If you are not comfortable making that change, I can email you the entire file to be re-uploaded.  Please let us know whether that solves your breadcrumb issues.

Offline

#17 2015-06-10 21:10:46

gh69
Member
Registered: 2014-08-18
Posts: 26

Re: No more Icons if navigate back with breadcrumbs

wow, it´s working fine now
thank you very much!!

Offline

#18 2015-06-10 21:32:00

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

Re: No more Icons if navigate back with breadcrumbs

That's what we like to hear smile  Thanks for confirming.

Offline

Board footer

Powered by FluxBB