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 Re: Backlight 2 Support » Unable to access Backlight modules » 2020-04-22 12:16:56

Ben, thank you for all your help. The testing module you left that could be called via the web and also directly via CLI was very useful in tracking down the problem.

It turns out that PHP and PHP-FPM use different mechanisms to access DNS and hence HTTPS certificate verification. PHP apparently uses resolver via resolv.conf and PHP-FPM used the named service. On my server the named service had accidentally been deactivated. This is why invoking he test script directly and via the web page were giving different results.

This is the fundamental reason the module update was failing.

Once I had the named service restarted everything just worked and the updates are now installed.

Again thank you.

#2 Re: Backlight 2 Support » Unable to access Backlight modules » 2020-04-13 10:51:19

I've sent you an email with the requested ID. I've also verified access to https://get.theturninggate.net/ using wget.

#3 Re: Backlight 2 Support » Unable to access Backlight modules » 2020-04-07 08:32:59

Yes, I've checked env.php, cleared the browser cache, and tried other browsers with their caches cleared.

#4 Re: Backlight 2 Support » Unable to access Backlight modules » 2020-04-07 05:33:11

The same as at the top of this thread.

Something went wrong
Backlight was unable to connect to https://get.theturninggate.net. Please wait a few minutes and try again.
If the problem persists, make sure that your server is able to make external requests to https://get.theturninggate.net

#5 Re: Backlight 2 Support » Unable to access Backlight modules » 2020-04-06 04:33:13

I'm also experiencing this problem of not being able to get the module list so I can do the update from 2.0.10 to 2.0.14. I've checked in the env.php file and it has the correct URL. I've tried doing a wget to the URL and am able to get to it and receive an index.html file. So the server has access to it.

What else can I check or try?

Thank you,
Bill

#6 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-07-13 07:39:12

I've applied these changes to my setup and everything appears to be running fine.

I've sent an email through the support page on the missing modules.

Thank you for all your help.

#7 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-07-11 11:42:53

My mistake. I did use the BL1 recommendations for using clean URL's. I just double checked.

#8 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-07-11 10:53:40

I'm running Nginx for a number of reasons:

1) It is easy to strip it down to just the functionality I need and lower the footprint that hackers can use to hack my site.
2) It has a lower resource footprint of memory, CPU, etc.
3) For static content it is significantly faster.
4) When I started self hosting a few years ago Apache use had been in decline for a while and Nginx usage had been growing. Currently Nginx is the most used web server on the net according to Netcraft. https://news.netcraft.com/archives/2019/

I don't believe the BL1 recommendations for Nginx install allowed for clean URL's. So I don't think I was using them.

My main problem right now is that I don't see the Theatre and Galleria modules. Can you check on this to see why my account does not show them? Or should I be contacting someone else?

Thank you for all your efforts.

#9 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-07-09 13:07:35

I'm running my Nginx on port 8080 and 8443 behind a router that port forwards 80 to 8080 and 443 to 8443. The Nginx process is running as a non-root user.

#10 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-07-09 07:23:44

I've tested out the publisher and everything there appears to be working fine. I've just republished a single album and an album set containing 17 albums with no difficulty.

#11 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-07-09 05:57:10

Oops. Forget the problem with viewing my albums. I forgot to click in admin on the Special Links / Update Album Files. I did that and can now view my albums.

#12 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-07-09 04:41:08

I've made major progress. I can now get to the admin page and have been able to look around there. There was one other rewrite rule in my nginx config from Backlight 1. Is the following still needed:

rewrite ^(.*)/(.*)-single.php $1/single.php?id=$2 last;

Not all my modules are there. I'm missing the addons Galleria and Theatre.

Also, when I try to view an album I get the following error:

Warning: require_once(./../../../backlight/framework/Framework.php): failed to open stream: No such file or directory in /www/billelliot.ca/html/albums/Puerto-Vallarta-Mexico-Trip/1-Puerto-Vallarta-Malecon/lib.php on line 48

Fatal error: require_once(): Failed opening required './../../../backlight/framework/Framework.php' (include_path='.:/usr/lib64/php/:/usr/share/pear/:/usr/share/php/') in /www/billelliot.ca/html/albums/Puerto-Vallarta-Mexico-Trip/1-Puerto-Vallarta-Malecon/lib.php on line 48

I've looked and the lib.php file is there.

#13 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-07-08 12:13:52

The link from'continue' is correct and works in that it takes me to /backlight/. It just produces the error. I tried it directly and get the same result.

I don't currently have external ftp access. But, if you need it I can get it setup.

Also, if you need any log outputs, I can provide you with those.

#14 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-07-08 08:53:53

I've got it installed and was going through the installer. It succeeded. But, when I click the "Continue to Backlight" button I get the following error:

preg_match() expects at least 2 parameters, 1 given|#0 [internal function]: ErrorHandler::handleError(2, 'preg_match() ex...', '/www/billelliot...', 220, Array) #1 /www/billelliot.ca/html/backlight/modules/module-framework/helpers/URLHelper.php(220): preg_match('/8443/www.bille...') #2 /www/billelliot.ca/html/backlight/modules/module-framework/helpers/URLHelper.php(193): URLHelper::pageURL('/backlight/') #3 /www/billelliot.ca/html/backlight/modules/module-framework/helpers/URLHelper.php(199): URLHelper::absoluteCurrentPageURL() #4 /www/billelliot.ca/html/backlight/modules/module-framework/models/Dispatchable.php(267): URLHelper::currentPageURL() #5 /www/billelliot.ca/html/backlight/modules/module-framework/models/Dispatchable.php(92): Dispatchable->processAuthentication() #6 /www/billelliot.ca/html/backlight/modules/module-framework/Framework.php(50): Dispatchable->init() #7 /www/billelliot.ca/html/backlight/index.php(32): Framework->route() #8 {main}|URL: /backlight/index.php

So I can't get to the Admin screen to change the format of the API URL.

What should I do?

#15 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-06-27 02:53:35

Just checking if there is any progress with the Nginx install for Backlight 2?

#16 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-05-01 07:42:58

Thank you.

I use Galleria and Theatre plugins.

#17 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-04-25 04:09:50

Thank you.

I would really like to upgrade to Backlight 2, since I'm seeing and hearing so much good about it.

#18 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-04-20 13:34:01

Hi Ben,

Have you had a chance to have a look at the Nginx adjustments needed?

#19 Re: Backlight 2 Support » Changes to Nginx configuration? » 2019-01-28 06:58:17

Hi Ben,

Just checking if you have had any time to look at this.

#20 Re: Backlight 2 Support » Changes to Nginx configuration? » 2018-12-20 05:43:22

Hi Ben,

Just touching base to see if there has been any progress in the adjustments needed to install Backlight2 on Nginx? I would really like to upgrade to Backlight2 and make use of it's wonderful new capabilities.

#21 Re: Backlight 2 Support » Changes to Nginx configuration? » 2018-10-20 02:48:21

Ok. I'll await when you get caught up and can look into Nginx.

Thank you.

#22 Re: Backlight 2 Support » Changes to Nginx configuration? » 2018-10-15 08:21:05

Is there any update on using/configuring Backlight 2 with Nginx?

#23 Re: Backlight 2 Support » Changes to Nginx configuration? » 2018-09-14 06:21:14

Thank you for the information.

I'll await an update to the publisher and adjustments to Nginx configuration information, so that I can upgrade to BL2 as it looks to be excellent.

#24 Backlight 2 Support » Changes to Nginx configuration? » 2018-09-12 11:13:22

gkar47
Replies: 35

I'm using Nginx, rather than Apache. You have a recommended Nginx configuration in your documentation Appendix that I have been using very successfully, and my site is working great. Since BL2 seems to rely very heavily on the .htaccess rewrite rules to function correctly, is there a recommended set of changes to the Nginx configuration to reflect these required rewrite rules?

#25 Re: Backlight Support » Trouble with contact us email setup » 2018-08-02 11:59:04

I found I did have some errors in my mail and dns setups. These have been corrected and everything is now working correctly. So I have still having problems with the admin send test email. I created a test page to add error handling around the calls to mail->send and have found it is throwing the following error:

Exception: Function split() is deprecated

Any idea has to how to correct this problem?

Board footer

Powered by FluxBB