Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 Re: Backlight Support » Search Error » 2018-02-20 21:55:31

Ben

Thanks.  I'm not sure what's going on.  Have you by any chance created a folder called 'backlight' anywhere on your site, other than the 'backlight' directory to be uploaded from the zip file?

Can you provide me with FTP access so that I can try and work out what's going on, via the Email link in my signature?

#2 Re: Backlight Support » Search Error » 2018-02-20 11:20:39

Ben

Can you provide a link to your site?

#3 Re: Backlight Support » Search result without duplicates » 2018-02-17 19:03:54

Ben

No worries.  Emphasis on next *major* version, which will be a paid upgrade.

If you feel inclined to edit Backlight, the same result can be achieved by editing the file backlight/publisher/application/models/SearchResult.php, changing this:

	function getFilteredPhotoResults()
	{
		$filtered = array();
		
		foreach ($this->photoResults as $photo) {
			if ($photo->filter($this->required, $this->omitted)) {
				$filtered[] = $photo;
			}
		}

		return $filtered;
	}

To this:

	function getFilteredPhotoResults() 
	{
		$filenameLookup = array();
		$removeDuplicates = true

		$filtered = array();
		
		foreach ($this->photoResults as $photo) {
			if ($removeDuplicates) {
				if (isset($filenameLookup[$photo->getFilename()])) {
					continue;
				} else {
					$filenameLookup[$photo->getFilename()] = true;
				}
			}

			if ($photo->filter($this->required, $this->omitted)) {
				$filtered[] = $photo;
			}
		}

		return $filtered;
	}

This functionality will be configurable in the next major version of Backlight.

#4 Re: Backlight Support » Search result without duplicates » 2018-02-17 09:47:27

Ben

I've added this into the next major version of Backlight.

#5 Re: CE4 Auto Index » PHP version » 2018-02-16 05:28:51

Ben

The above error is raised from within Wordpress, so is not code that we have control over. 
I don't know whether updating Wordpress would fix this.  If not, then your best bet might be to change your site settings to use an older version of PHP, such as 5.6.

#6 Re: Backlight Support » Can't login into new server backlight4 setup » 2018-02-13 12:13:46

Ben

I'm glad that solved it, however I don't think you needed to change it to 7.1.  That reminds me that I need to get back onto testing with 7.2 and deploying a fix.

#8 Re: Backlight Support » Where can i see that my update to backlight release 4 is well executed » 2018-02-12 20:56:30

Ben

I should add, if you do want to see that the files have uploaded correctly, look for a file called module.xml under one of the updated modules, e.g. at a location like:

http://yoursite.com/backlight/modules/pangolin-album/module.xml

The version number should state 1.2.3.4.

#9 Re: Backlight Support » Where can i see that my update to backlight release 4 is well executed » 2018-02-12 20:53:53

Ben

Our versioning system doesn't go beyond major, feature and minor updates (e.g. 1, 2, and 3), so you won't see anything other than 1.2.3.

Our rationale for sticking to minor version numbers in this way (rather than moving to 1.2.4, the finest-grained version update we could make) is that incrementing the version number alone has a significant overhead in file changes, and therefore in packages that our customers would need to re-upload.  It's a big ask to expect our customers to upgrade so many packages over and over again.  With that overhead comes the inevitable issues of user error across our customer base.  We don't think that risk is worth it for such minor updates.

#10 Re: Backlight Support » Deleted album from server instead of Lightroom. » 2018-02-09 16:58:35

Ben

Hi Jim, it needs to be deleted from the database.  This would normally happen automatically if the album had been deleted via Publisher.

The roundabout way to fix this is:

1. Login into Backlight
2. Visit Backlight > Publisher > Top-level Galleries
3. Click on 'Albums' for the Top-level gallery your album sits under
4. Click on the name of the album you want to delete
5 Scroll down to the bottom of the page and click 'Delete Album'
6. Click 'Delate' to confirm

#11 Re: Backlight Support » Backlight version numbers and skipping upgrade » 2018-02-03 08:46:46

Ben

The version numbers can be found in the module.xml files found in pangolin-theater, pangolin-wordpress and pangolin-galleria.

These should be up-to-date but note that they may sometimes be out of sync with the version on the zip file if we miss updating the internal version numbers during deployment.

#12 Re: Backlight Support » Template export - php error » 2018-02-01 06:36:14

Ben

Out of interest, which repository did you use to install 5.6?

#13 Re: Backlight Support » PHP 7.2 » 2018-02-01 06:22:25

Ben

I haven't yet been able to test against PHP 7.2, as my development and test platform does not provide PHP beyond version 7.1.

This particular line wasn't written as it should have been and has been like that for a few years, right back to CE4.  Only PHP 7.2 raises it as an error.  Whether it should be is arguable.

I'll put a hot fix in our Backlight code.  In the mean time, making this edit should fix it.  Changing line 44 in backlight/framework/helpers/SimpleHTMLTag.php from this:

if (count($matches == 3)) {

to this:

if (count($matches) == 3) {

#14 Re: CE4 Pages » SMTP Authentication to the php code in contact form » 2018-02-01 05:33:05

Ben

Is that lowercase ‘ssl’. If not, try that.

Otherwise can you provide me with a TTG BE admin via email.

#15 Re: Backlight Support » PHP 7.2 » 2018-02-01 05:12:38

Ben

Thanks for the heads-up. I’ll look into this. PHP is a moving target. They change the behaviour on point releases, and hosts prematurely update to the latest version. After fixing this we’ll look to specify a current upper limit for supported PHP version in Backlight.

#16 Re: Backlight Support » Template export - php error » 2018-01-31 20:54:20

Ben

Hi Christian, are you managing this server yourself?  I've found that the packaged version of PHP is really quite old for CentOS and Redhat.  It's only at 5.4 for version 7 of each..  So, you need to install PHP from third-party repositories to get something newer.  If somebody else is managing your server then I assume that's what they'd be doing.

#17 Re: Backlight Support » Double encoding of accented characters in file name » 2018-01-31 08:29:38

Ben

I should elaborate on the support we do or have provided for non-Linux installations.  I have in the past fired up an IIS instance, and made changes to the code to make sure it works.  I've also made various changes over the years for easy fixes that enabled code to work on various environments.  You'll note we have a basic document for Nginx, that may be of help to some users.  Many of the fixes made in such cases are in our codebase.  However, our support ends when we don't have the means to readily replicate or fix code under certain environments (e.g. IIS version X on Windows version Y).

The difference in support is that if you're on Linux, the sky is the limit for how far we'll go to provide support.  I've spent 10-20 hours supporting individual customers, going so far as signing up with a host so that I could try and resolve an issue from a customer's point-of-view.  We have the philosophy that we'd like 100% of customer sites to work if their hosting meets our stated requirements. We'll only recommend customer's shift hosts if the environment has impediments out of our control, such as firewall or mod_security rules that prevent Backlight from running and which can't or won't be changed by the host.

#18 Re: Backlight Support » Double encoding of accented characters in file name » 2018-01-31 05:15:50

Ben

Mostly corporate sites. Our market is for indepently hosted sites, of which the vast majority are Linux-based. Individuals and small businesses also have greater flexibility to choose a Linux host should they choose to use our product.

TTG would not be a viable business if we chose to support IIS.

#19 Re: General » Faulty link » 2018-01-29 13:35:34

Ben

Something is wrong with the DNS for www.rainerhassmann.de.  It comes up as not found.  I suggest reviewing your domain configuration in your hosting console, and contacting your host's technical support if the fix isn't obvious.

#20 Re: Backlight Support » Double encoding of accented characters in file name » 2018-01-29 08:32:18

Ben

Yes, Apache for Windows.  Of course many of our users run Windows locally.  We do not provide support beyond 'best effort' for local web server installations, and expect users who manage their own web servers to know what they are doing, whether remotely or local.  As you said perhaps 5% of servers are Windows-based.  We do not support them as we do not have the resources to test against Windows servers.  We make it known that Linux is our only supported server platform in our product requirements.

#21 Re: Backlight Support » Double encoding of accented characters in file name » 2018-01-29 06:19:06

Ben

Hi Francois, there's no need to apologise.  We're more than happy to work through things like this.

On Windows, in case you weren't aware we don't provide support for Windows servers.  You may find that Backlight works perfectly well for you, but if things don't, our support is limited to 'best effort'.  Apache should be fine, although we can't guarantee it.  Where things become difficult is PHP on IIS, as we definitely don't have the capability to test on that environment (or environments, with different versions of IIS).

#22 Re: Backlight Support » Double encoding of accented characters in file name » 2018-01-28 19:50:57

Ben

The crux of it seems to be captions appearing in your filenames.  Publisher should not do that, and as far as I know, we have not encountered that happening before.  This sounds like a LR userland issue to me, whereby something has been configured to add captions to your filenames upon export or publishing. 
Does this happen with any other export or publishing plugins you might happen to use?

#23 Re: Backlight Support » Template export - php error » 2018-01-28 06:51:27

Ben

Your site is running on PHP 5.3.3.  This was released over seven years ago.  The latest version of 5.3 was 5.3.29, released three years ago.
5.3 is no longer supported, so may very well have security risks.  I strongly suggest updating to the newest version of 5 that your host provides (which should be 5.6.something), or to PHP 7.

#24 Re: Backlight Support » Template export - php error » 2018-01-28 06:44:02

Ben

Hi Christian, thanks for the access details.  Our code uses a PHP function called mb_strlen, which works out the length of multi-byte strings.   I assume that means text that includes characters outside the normal ASCII range (i.e.. outside a to z, 0-9 and other common characters) so including text with other types of characters.

Anyway, it turns out this function mb_strlen isn't installed by default on PHP installations, but typically is.  On your site, it isn't.

We normally check for the existence of the function before trying to use it, but failed to do so in this case. 

To temporarily fix this, can you edit the file backlight/modules/module-designer/application/models/TemplateEntity.php and change line 384 from this:

header('Content-Length: '.mb_strlen($encoded, '8bit'));

to this:

header('Content-Length: '.strlen($encoded));

That may well be our long-term solution, as I suspect that calling mb_strlen with '8bit' as our code currently does is no different from calling strlen.

#25 Re: Backlight Support » clean installation of backlight » 2018-01-26 06:14:57

Ben

One way to reset your system would be to remove or rename the file backlight/data/admin/master.sq3  That will cause a fresh copy of the default admin database to be made the next time you visit the admin.  From there you could set your basic settings anew, without affecting your templates or albums.

Board footer

Powered by FluxBB