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.
You are not logged in.
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.
I've sent you an email with the requested ID. I've also verified access to https://get.theturninggate.net/ using wget.
Yes, I've checked env.php, cleared the browser cache, and tried other browsers with their caches cleared.
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
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
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.
My mistake. I did use the BL1 recommendations for using clean URL's. I just double checked.
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.
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.
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.
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.
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.
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.
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?
Just checking if there is any progress with the Nginx install for Backlight 2?
Thank you.
I use Galleria and Theatre plugins.
Thank you.
I would really like to upgrade to Backlight 2, since I'm seeing and hearing so much good about it.
Hi Ben,
Have you had a chance to have a look at the Nginx adjustments needed?
Hi Ben,
Just checking if you have had any time to look at this.
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.
Ok. I'll await when you get caught up and can look into Nginx.
Thank you.
Is there any update on using/configuring Backlight 2 with Nginx?
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.
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?
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?