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 2018-05-03 17:27:55

Evagoras
Member
From: London, UK
Registered: 2013-11-14
Posts: 132
Website

Slow Loading Home Page.

Hey Guys,


Just as the subject says my homepage takes a good 15-20 secs to load. All other pages are speedy.

http://www.evagoras.co.uk/

Any advice?


Evagoras

Offline

#2 2018-05-04 01:35:30

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

Re: Slow Loading Home Page.

I see what you mean.
Have you tried changing things to see if something triggers the problem? Try removing the Vegas slideshow album from the home page and see if it loads any faster.


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 2018-05-04 05:56:57

Evagoras
Member
From: London, UK
Registered: 2013-11-14
Posts: 132
Website

Re: Slow Loading Home Page.

Hey Rod, thanks for the reply.

Just tried various combinations and still the same problem.

Anything else I could do?

Offline

#4 2018-05-04 06:19:58

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

Re: Slow Loading Home Page.

Have you tried clearing template cache lately?

I can see a couple of errors in the console using the browser inspector. I don't know what they mean though:

Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://53572eb3-c6bd-467e-b216-9333eb1172f3/node_modules/webextension-polyfill/dist/browser-polyfill.js
Source Map URL: browser-polyfill.js.map[Learn More]
Source map error: SyntaxError: JSON.parse: unexpected character at line 2 column 1 of the JSON data
Resource URL: http://www.evagoras.co.uk/backlight/publisher/resource.php?template=61&extension=js&name=scripts
Source Map URL: vegas.min.js.map[Learn More]

I notice you're still using Backlight 1.1 (Okapi). You could try creating Pangolin pages and see if there's a difference.

Have you tried creating a duplicate of the home page (so that it's not the index page) and seeing if the same thing happens?

You could also try asking your hosting company about it. Maybe they can see something happening that's slowing things 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

#5 2018-05-04 08:43:13

Evagoras
Member
From: London, UK
Registered: 2013-11-14
Posts: 132
Website

Re: Slow Loading Home Page.

Excuse my ignorance but how do I upgrade to Pangolin? I'll try that first.

Offline

#6 2018-05-04 08:47:35

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

Re: Slow Loading Home Page.

If you haven't downloaded it yet, you can do so from the Support page
http://theturninggate.net/support/

After installation you'll need to create new Pangolin page, album, and album set templates.


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

Offline

#7 2018-05-04 08:49:08

Evagoras
Member
From: London, UK
Registered: 2013-11-14
Posts: 132
Website

Re: Slow Loading Home Page.

Will look into it now. hopefully I can copy page, album, and album set templates?

Offline

#8 2018-05-04 09:02:04

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

Re: Slow Loading Home Page.

No, you’ll need to create new.


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

Offline

#9 2018-05-04 09:04:50

Evagoras
Member
From: London, UK
Registered: 2013-11-14
Posts: 132
Website

Re: Slow Loading Home Page.

Just figured it out, I have to 'Create New template' and and select Pangolin from the 'Type' drop down menu.

I feel like a idiot right now 

Maybe due to creating all my pages before pangolin was released I didn't get round to creating new templates. It's gonna be a long process to create new templates but I'll get there in the end.

Offline

#10 2018-05-04 09:04:58

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

Re: Slow Loading Home Page.

This blog post details new features and discusses upgrading to Pangolin
http://theturninggate.net/2017/06/30/ba … available/


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

Offline

#11 2018-05-04 09:05:51

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

Re: Slow Loading Home Page.

Evagoras wrote:

Just figured it out, I have to 'Create New template' and and select Pangolin from the 'Type' drop down menu.

I feel like a idiot right now 

Maybe due to creating all my pages before pangolin was released I didn't get round to creating new templates. It's gonna be a long process to create new templates but I'll get there in the end.


It’s easier the second time around 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 2018-05-04 09:07:44

Evagoras
Member
From: London, UK
Registered: 2013-11-14
Posts: 132
Website

Re: Slow Loading Home Page.

Reading now, thanks for the help

Offline

#13 2018-05-05 05:14:44

Evagoras
Member
From: London, UK
Registered: 2013-11-14
Posts: 132
Website

Re: Slow Loading Home Page.

Hey Rod, Thanks for your help.

All sorted with the home Homepage and a speedy load time. https://www.evagoras.co.uk/ Check it out - Pangolin did the trick

On an other note: I've changed the site to https:// and my stand alone pages are 'not found' is it coz of this change or something else?

Example
https://www.evagoras.co.uk/?page=corporate-headshots

Event the non secure version doesn't work
http://www.evagoras.co.uk/?page=corporate-headshots

Another Example
https://www.evagoras.co.uk/?page=pricing

Any Advice would be great

Offline

#14 2018-05-05 05:29:45

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

Re: Slow Loading Home Page.

You may need to change something in your .htaccess file. See this sticky post for more: http://community.theturninggate.net/vie … hp?id=7876


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 2018-05-05 06:06:49

Evagoras
Member
From: London, UK
Registered: 2013-11-14
Posts: 132
Website

Re: Slow Loading Home Page.

Hey Rod, I've added it and uploaded the new .htaccess file but nothing has worked.

The first time I did it Backlight Admin wouldn't even work, I did it again and put the code right under the :<IfModule mod_rewrite.c> line see below:

Also which .htaccess is it (although I've tried both)

/public_html or /public_html/backlight

# ------------------------------------------------------------------------------
# | Web fonts access                                                           |
# ------------------------------------------------------------------------------

# Allow access from all domains for web fonts

<IfModule mod_headers.c>
    <FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$">
        Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On
   
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    ############################################################################
    # Edit this section for servers using FastCGI

    # For FastCGI (or seeing the error message 'No input file specified.':
    # add # to the start of the next line
    RewriteBase /

    RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$

    # For FastCGI (or seeing the error message 'No input file specified.':
    # add # to the start of the next line and remove # from the line after)
    RewriteRule ^.*$ - [E=BASE:%2]
    #RewriteRule ^(.*)$ - [E=BASE:]

    ############################################################################



    RewriteRule ^(.*)$ - [E=QS:mod_rewrite=on]

    RewriteRule ^([^\/.]*)-single.php$ %{ENV:BASE}single.php?%{ENV:QS}&id=$1 [QSA,L]

    RewriteRule ^([^\/.]*).css$ %{ENV:BASE}index.php?%{ENV:QS}&extension=css&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).js$ %{ENV:BASE}index.php?%{ENV:QS}&extension=js&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).gif$ %{ENV:BASE}index.php?%{ENV:QS}&extension=gif&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).png$ %{ENV:BASE}index.php?%{ENV:QS}&extension=png&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).jpg$ %{ENV:BASE}index.php?%{ENV:QS}&extension=jpg&name=$1 [QSA,L]

    #RewriteCond %{QUERY_STRING} !mod_rewrite=on
    #RewriteRule ^index.php$ %{ENV:BASE}index.php?%{ENV:QS} [QSA,L]

    RewriteCond %{QUERY_STRING} !mod_rewrite=on
    RewriteRule ^mobile.php$ %{ENV:BASE}mobile.php?%{ENV:QS} [QSA,L]

    RewriteCond %{QUERY_STRING} !mod_rewrite=on
    RewriteRule ^(.*)download.php %{ENV:BASE}download.php?%{ENV:QS} [QSA,L]
   
    RewriteRule ^$ %{ENV:BASE}index.php?%{ENV:QS} [QSA,L]
   
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)$ %{ENV:BASE}index.php?%{ENV:QS}&page=$1 [QSA,L]

</IfModule>

Offline

#16 2018-05-05 06:28:17

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

Re: Slow Loading Home Page.

.htaccess is a bit beyond me. You're best off waiting on Ben or shooting him an email with reference to this thread.

for what it's worth, I used this url: https://evagoras.co.uk/ to access your site and everything seemed to work fine


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 2018-05-05 06:32:26

Evagoras
Member
From: London, UK
Registered: 2013-11-14
Posts: 132
Website

Re: Slow Loading Home Page.

Ok no worries. Home page is working perfectly. its the individual page that are not.

I'll send him an email in the week. too late now and have a weekend of weddings (plus our back holiday!)

Appreciate your help for the https.

Offline

#18 2018-05-05 21:28:38

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

Re: Slow Loading Home Page.

Hi Evagoras, I've found the problem and fixed it.  It looks like the wrong index.php had been copied to the top of your site.  That meant that the individual page requests weren't being forwarded to the application.  Do you know which file you may have copied in?
In any case, this is fixed.

Offline

#19 2018-05-06 01:07:59

Evagoras
Member
From: London, UK
Registered: 2013-11-14
Posts: 132
Website

Re: Slow Loading Home Page.

Excellent, thanks Ben! Appreciate your help.

Offline

#20 2018-05-06 09:27:07

Evagoras
Member
From: London, UK
Registered: 2013-11-14
Posts: 132
Website

Re: Slow Loading Home Page.

Ben wrote:

Hi Evagoras, I've found the problem and fixed it.  It looks like the wrong index.php had been copied to the top of your site.  That meant that the individual page requests weren't being forwarded to the application.  Do you know which file you may have copied in?
In any case, this is fixed.

Hey Ben, just got in form a wedding. Not sure which file I may have copied in.

However now the Homepage is not working.

www.evagoras.co.uk

Offline

#21 2018-05-06 10:41:13

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

Re: Slow Loading Home Page.

Have you tried re-uploading the index.php file that’s in your unzipped Backlight + Pages download folder? It sound be uploaded to the root of your site
http://backlight.theturninggate.net/doc … on_install


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

Offline

#22 2018-05-07 02:51:41

Evagoras
Member
From: London, UK
Registered: 2013-11-14
Posts: 132
Website

Re: Slow Loading Home Page.

Hi Ben, tried uploading the index.php with no luck. Anything other help would be appreciated as the site it totally  down.

Offline

#23 2018-05-07 03:38:32

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

Re: Slow Loading Home Page.

In Backlight>Designer>Pages did you set your home page to be the index page.
I can access the rest of your site just by adding /galleries to the site url.
This leads me to believe that there is no page assigned to be the index page

index-page.jpg


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

Offline

Board footer

Powered by FluxBB