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.
Can you ask your host whether they have blocked access from PHP to external servers, and if so, for them to allow access to https://get.theturninggate.net
If that’s not blocked, can you ask them to perform a traceroute from your server to that location and provide us with the result?
What are you using for your API URL setting? It looks like the server is responding from the top of your site rather than from Backlight. That setting should be set to http://npphotographicsgallery.com/backlight/publisher/
Something has changed on your side. Your host has changed something with your PHP setup, and done so with a broken configuration. As Rod suggested, see our document about module errors.
I'd started to look into this, but came across more dependencies on clean URLs than I expected. Thanks for the bump. I'll try to prioritise it.
If you're trying to send yourself the code to set up 2FA, but not receiving anything, another way of finding the link that would have been sent to you is to look at the most-recent log file under backlight/logs/admin/. All outgoing links related to logins, such as password resets and unlocking links are logged there, for the purpose of getting back into your system if emails aren't getting through.
The terms should be tied to the Cart session, requiring a cart reset in the current browser for any change to take effect.
Please see my email.
Hi Oliver, we're looking further into this.
I can confirm that the requests are not reaching our PHP scripts, and that there's nothing on the application level, including Wordfence, that is blocking anything. I'm not aware of any mechanism above our web server files that would be blocking it, but we'll reach out to support for advice on this, including passing them the IP of where the requests are coming from. That seems to be the only piece of information that we have coming from your server that might differentiate requests from those of other hosts.
Can you email me one of the images that fails to upload? Also, on the upload screen what does it say for the maximum size of images allowed? This varies based on your server configuration.
As Rod suggested, please provide me with FTP access via email so I can look into it.
The code above the one you've quoted should include another reference to APHPLugins, so that those few lines look like this:
if (defined('BACKLIGHT_HOOK')) {
require_once(realpath(BACKLIGHT_HOOK).'/modules/module-designer/application/helpers/APHPlugins.php');
}
class PHPlugins extends APHPlugins
Is that the case? If not can you add in:
if (defined('BACKLIGHT_HOOK')) {
require_once(realpath(BACKLIGHT_HOOK).'/modules/module-designer/application/helpers/APHPlugins.php');
}
above the class PHPlugins line and see if that fixes it.
You may need to re-export your theme after making that change.
We have tentative plans to support Stripe, but as yet don't yet have the time to implement it.
Hi Oliver, running multiple wordpress sites on the same server as Backlight is an edge case, so not something that we're likely to address within Backlight.
I can think of a couple of options:
1. Export to the one site, and copy over the themes to your other WP site as needed
2. Run a common themes directory symlinked from one or more of your WP installations. (this would require command-line access, which I can help with if you have it).
We have a document on this and similar errors. See if this helps, especially the steps to hide startup errors:
http://backlight.theturninggate.net/doc … n_bluehost
All good, Kurt? The other explanation for a missing 'language_code' would be if Backlight 2 hadn't been upgraded to the latest version.
You can't use SMTP settings on Bluehost accounts. The solution was to add the email address and leave it as 'mail', which you've now done. Since you're no longer seeing emails come from box... then that part looks to be in good order.
I created a document on getting emails to work properly on Bluehost, at http://backlight.theturninggate.net/doc … n_bluehost
I suggest also looking at the second step to see if that helps, Configure the PHP sendmail_path setting.
There should be a reasonable fix for that. Bluehost needs to know that the from address is valid before it sets the 'from' properly in the outgoing email. To fix this, create an email inbox for that email address in the Bluehost control panel. You don't actually need to use Bluehost to handle the email, so that address would still operate as it already does. It's just that Bluehost will know that that is an address you've set up.
I don't think the change from 5.6 to 7 alone would cause email to stop working. It's more likely that your host has broken something as part of the upgrade. What settings do you have for email settings, in particular the setting for 'Mail Send Type'?
Can you visit the main Backlight page, then click on Send Test Email under the Special Links heading? That will let you send test emails, to see if they get through. Setting Show Debug Messages to 'yes' may provide some information about what's going wrong.
Hi Kurt, unfortunately 500 errors alone don't provide any information on the underlying problem. Can you provide me with FTP access via Email so that I can look into this?
Hi Markku,this is caused by a compatibility issue with PHP on your server. To fix this, download the latest Backlight zip file and replace the files under backlight/framework.
We haven't tested it against 7.3. If you find something amiss then we'll look into it and fix it.
Have you tried emailing the address in the message?
As it says, this is a server error. We can’t tell what’s happening on your server to cause this. It’s likely something blocking the Modules page from contacting our server to check for updates.
Have you previously been able to load that page? Have you recently had a server or PHP upgrade?
Please provide me with FTP access via email so that I can try and work out what’s going wrong.
Hi Kristoffer, since installing Backlight, your host has changed the version of PHP, making it incompatible with what you're running.
I'll need to make some changes to the Cart to make it compatible again. If you could provide me with FTP access via email then that will help me check that the changes will work.
For your info, here's the new version of the .htaccess file. We haven't fully tested it but it should work properly:
<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
# The below two lines will take a REQUEST_URI like /directory/foobar.php and set the variable BASE to /directory/
#RewriteCond %{REQUEST_URI}::$1 ^(.*?/)(.*)::\2$
#RewriteRule ^(.*)$ - [E=BASE:%1]
RewriteBase /
RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
RewriteRule ^.*$ - [E=BASE:%2]
RewriteRule ^(.*)$ - [E=QS:mod_rewrite=on]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\/.]*)-single.php$ %{ENV:BASE}single.php?%{ENV:QS}&id=$1 [QSA,L]
# Attempt to load dynamic resources if file doesn't exist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\/.]*)\.(css|js|gif|png|jpg)$ %{ENV:BASE}index.php?%{ENV:QS}&extension=$2&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]
# Address is /
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>
We have not yet updated the .htaccess file. It's in our working code and will come along with the next maintenance release.
The only functional change is that it will fix the issue that you've found - that of inadvertently failing to allow real resource files at the top level.
Those lines are currently redundant, so commenting them out as you have done will be fine.
For a technical explanation, there are checks in the .htaccess that will allow real files to be loaded if they exist. Unfortunately, those checks only apply until the next rule that has an L between the square brackets. So it's a logic error in our .htaccess file that prevents those resource files from being loaded if they're actual files on disk.