Community @ The Turning Gate

Support community for TTG plugins and products.


The Turning Gate's Community has moved to a new home, at

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.

#2 Re: Backlight 3 Support » Mobile menu suppresssion » 2020-06-02 02:12:47

Thanks Rod.
I'll have to read up on double underscores.

#3 Re: Backlight 3 Support » Mobile menu suppresssion » 2020-06-02 01:59:47

Hi Rod,
I've just looked at all my page templates and they all point to custom-copyright.css. I can see that the style inspector in the Firefox picks that up with 9 rules and also a css with 2 rules which the the Raleway font that I use.
The custom-copyright.css file contains these lines
/* If your page background-color is red after enabling the PHPlugins function, then you know it's working.
* Delete this after confirmation, because it's hideous :

.my-popup {
  color: rgb(255,255,255);
  background: #2a2a4a;
  background: linear-gradient(#2a2a4a, #37377F);
   padding-top: 10px;
   padding-bottom: 5px;
   margin-left: 12px;
   margin-right: 12px;   
.popup-title {
    background: #2a2a4a;
    background: linear-gradient(#2a2a4a, #37377F);
    padding: 10px;
    color: white;
#popup {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
#popup p {
    margin-left: 12px;
    margin-right: 12px;
#my-popup {
    padding-left: 0;
    padding-right: 0;
#my-popup p {
    margin-left: 12px;
    margin-right: 12px;
@media screen and (min-width:1025px) {
    #popup {
        max-width: 50%;
/*Pop-up Close button styling for Backlight */
    #popup .fancybox-close-small {
        color: white;
#venue, #dates {width:25%;
/*Mobile menu suppression */
#page_pallet_T1 .menu-item:nth-child(2) > .sub-menu {display:none;

#4 Re: Backlight 3 Support » Mobile menu suppresssion » 2020-06-02 01:37:08

That is weird as I have just been in the domain editing that css in the link in my signature. I’ll go and login again but the file is custom-copyright.css

#5 Backlight 3 Support » Mobile menu suppresssion » 2020-06-02 00:53:19

Replies: 7

Hi Rod,

I swear I had this working recently by following advice in your tips and tricks with this code added to my custom css file.
/*Mobile menu suppression */
#page_pallet_T1 .menu-item:nth-child(2) > .sub-menu {display:none;

The cPanel editor whinged about .menu item and .sub-menu being overqualified with an li and ul prefix but taking them out does not seem to make a difference for me.

Does this code still work for you? I'm using PHP 7.2.31

#6 Re: Backlight 3 Support » Intermittant display of images, embedded gallery on pages and sidebar » 2020-05-24 18:47:58

Hi Matt,
I think I found the problem here. It was your mentioning of 500 error that made me look up likely causes and .htaccess was listed as a first port of call so I compared the .htaccess I posted in the shortcode thread to that working yesterday.
The old .htaccess file lisyed the php version as 7.0.
The current one listed it as alt-php72 whereas I had applied alt7.4 in cpanel before I did the fresh install of WordPress to test the shortcode error. The .htacess had not reflected this and I fear to tread where I ought not to and when I see a do not edit statement, I behave myself.


# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php72” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-alt-php72___lsphp .php .php7 .phtml
# php -- END cPanel-generated handler, do not edit

I had not applied the PHP change to my TLD so I tried applying alt-7.4.5 to that and promptly got a 500 error with the stylesheet not loading.
Applying alt72 to the TLD and sub-domain seems to work but applying 7.3 and above brings the intermittent error back.
PHP alt72 does not resolve the shortcode issue though.

I don't understand why PHP versions 73 and 74 cause the errors in loading images though when they are available to use on the server but maybe it makes sense to you? Maybe it it something that will help overall debugging?

I'll ask my host why the .htaccess did not update after applying the change in cPanel.

#8 Re: Backlight 3 Support » Intermittant display of images, embedded gallery on pages and sidebar » 2020-05-24 00:13:51

I've done some more testing today. Just in case something was corrupt in the live installation, I uploaded copies of the same logos used in the right pallet on my live home page to my test domain and I also replicated settings for templates by just selecting the options in the test domain rather that export and import copies from the live site.
The errors persist on a random cyclical basis
This was a fresh install of BL3 so no upgrading involved and therefore not likely to have orphans etc.

#9 Re: Backlight 3 Support » Intermittant display of images, embedded gallery on pages and sidebar » 2020-05-22 22:30:04


(screenshot issue resolved, thread edited my moderator to remove posts that became irrelevant)

#10 Re: Backlight 3 Support » Intermittant display of images, embedded gallery on pages and sidebar » 2020-05-22 22:18:16

Hi Rod,
I'm struggling to post the screen shot. I created a sub-directory off the root, moved the image into it, renamed it to take out the underscore in the filename and when I used the img tag then inserted the url and previewed it I get a warning that I cannot do that - embed a url in img.

#11 Re: Backlight 3 Support » Intermittant display of images, embedded gallery on pages and sidebar » 2020-05-22 21:57:39

I know but I do not know why. I uploaded the png to the root of . Should it be somewhere else for you to see?

#13 Re: Backlight 3 Support » Intermittant display of images, embedded gallery on pages and sidebar » 2020-05-22 21:42:47

Hi Ben,
The plugins are;
Akismet Anti-Spam
Classic Editor
WordPress Importer

I can deactivate the last one and remove it as I used PHPMyAdmin to update the wp-posts and wp-postmeta tables with my old post and media data when I created the new instance earlier this week to allow me to upgrade to PHP7.4.5. I could not upfrade PHP even though I was running WP5.4.1 hence the new install.
WP is working OK. I don't get a page error there, just on the Home and Exhibition pages.
The Home page has a Galleria gallery and side bar images.
The Exhibitions page has static images and side bar images and all of these are erratic in behaviour at present.

#14 Re: Backlight 3 Support » Intermittant display of images, embedded gallery on pages and sidebar » 2020-05-22 21:19:22

I got this back from the hosting company

I can see the strange behaviour now.

This would indicate your script is trying to allocate more memory that is allowed. But as we allow php 256mb I can not see why it would be trying to use this much just to load a page and some images.

One error for the software developer. Here is some of the shared environment parameters they may find useful in tracking down the issue.

PHP ini params

allow-url-fopen TRUE
allow_url_include TRUE
max Execution time 90 seconds
max input vars 2000
memory limit 256mb
post max size 64mb

#17 Backlight 3 Support » Intermittant display of images, embedded gallery on pages and sidebar » 2020-05-22 17:24:33

Replies: 20

My site has had a pounding over the last week but late yesterday I began to get some strange presentation on the iPhone when it looked like the template was missing as the home page just displayed plain text and then a red error bar popped up with the legend:

Fatal error: Could not extract sufficient width/height of the gallery container. Traced measure: width:359px height:20px

Then on the desktop - Windows 10
Fatal error: Could not extract sufficient width/height of the gallery container. Traced measure: width:1287.5px height:19px

Refreshing the page several times cleared this then I started to get this on the desktop this morning plus sometimes images uploaded to Backlight that are used on pages and side bars started to to display placeholders only and refreshing the pages brings them back cyclically and drops them cyclically.

I thought maybe the installtion of PHP 7.4.5 might be an issue but when I downdated that to 7.3 I got a fata error with WP so I put it back to 7.4.5

I've tried this in my default browser Firefox 7.0.1 (64bit) Chrome 83.0.4103.61 (Official Build) (64-bit) and Safari on the iPhone

I've noticed on the phone that if I refresh the page with the right side bar open I get served with  a text based page with no template.

All pages and templates to my belief are all converted to BL3.

Does anyone else get this behavior if visiting my live site - link below?


#18 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-21 00:50:22

Update for anyone reading this post.

Matt and Daniel have debugged the issue with me over several days and the issue is manifested by the environment I am hosted in. Matt is on the case now we know what is causing the issue.

As always my sincere thanks for the prompt and attentive support from the Turning Gate team and the effort behind the scenes that is not reflected in this post thread.

#19 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-18 16:41:53

Tech support came back with this response
'There is nothing that would stop the PHP from accessing the file on the server that I am aware of.
Have you checked the API file has the correct permission?
As you are calling the file via the URL and not the local path, I think PHP assumes this is an external call and unless you have the correct permission then global run access might be restricted.
I would check first by changing to the local path, not the URL
Then check if first changing to CHMOD 777 has any effect. ( I wouldn't leave it at 777, just use it for testing) to confirm if its a permission error or not.'
I'm not sure what if anything I need to do here as this stuff runs in the background especially with the virtual directories that Daniel  mentioned.
I presume it makes sense to you as developers.

#20 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-18 14:32:02

Hi Matt,
Daniel sent me some scripts to run last night and a model text to send to my host asking them to investigate REST API Error 404. I raised the ticket last night for them to see when their helpdesk people start at 0830 BST.
I'll update here when I get a response.

#21 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-18 01:38:11

I suppose that leaves us with the .htaccess or the host blocking the Backlight JSON API. I will need to know what technical phrase to put in my helpdesk ticket but I appreciate the fact that the detail might not be pertinent to a public forum so emailing me might be better.
I also tried upgrading PHP to 7.3 on the host through cPanel and gave me a 404 error for the entire blog. 7.2 works OK but does not resolve the JSON issue.

#22 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-18 01:23:26

Thanks Daniel,
I would not have known it was a virtual directory or that REST API is JSON
Mod Security is enabled on all domains in my cPanel. I have tried disabling it for this domian and testing the test post in WP but that does not make a difference so I have turned Mod Security back on.

#23 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-17 23:33:40

In an effort to assess if everything is up to date for my WP installation I ran aSite Health Status report in WP and the following was listed about the REST API -
The server cannot find the requested page (port 443)
That sub-directory 'wp-json' does not exist in my installation. Is this a possible cause of the issue I have?

#24 Re: Backlight 3 Support » Backlight albums in Wordpress » 2020-05-17 17:46:02

I deleted the published album including the images on-line and re-published to see if publisher 5.0.2 made a difference, it did not. The JSON API … bum/125632 returns data but result is WP is still the same.

Board footer

Powered by FluxBB