Stage Switcher Plugin not working

Hi,

I installed the stage switcher plugin - which worked fine so far.

I’m working with normal full roots stack (bedrock, trellis, sage). All three envs are deployed and working fine.

The plugin is activated on production and development, but I don’t get the link/display in the wordpress admin bar where I can switch.

From the installation instructions on github I understand, that if using bedrock, I don’t have to do anything in order to meet the requirements. Is that right? Or where should I put the ENVIRONMENTS-code?

What else could I be doing wrong?

cheers
Josia

Just in case anybody else has this problem:

Even if using bedrock, you still have to define ENVIRONMENTS. I did this in site/config/application.php

Don’t be confused by the note about PHP7 in the github repo/installation instructions … it means if you have PHP7+ you can do it like this:

$envs = [
  'development' => 'http://example.dev',
  'staging'     => 'http://staging.example.com',
  'production'  => 'http://example.com'
];
define('ENVIRONMENTS', $envs);

This topic was automatically closed after 42 days. New replies are no longer allowed.