null

Yeah, that. I've just done it so much manually I can't be bothered fussing with the tool. I'm weird. Don't be like me

😀 (1)
null

You can also use the actual sspak tool, which I haven't installed in ages and whose location I've forgotten 😄

null
  1. Create your database dump. Rename it to database.sql and compress it with gzip. so that it's database.sql.gz
  2. Create a new archive .tar file with that in it
  3. Rename your whatever.tar file to whatever.sspak
  4. Upload it via CWP Dash in the snapshots section.

Needs to be under 256MB if I recall

null

which is really a renamed tar file

null

Then find an OAuth provider (or make one)

null

https://github.com/bigfork/silverstripe-oauth-login

Show 1 attachment(s)
bigfork/silverstripe-oauth-login

SilverStripe logins via OAuth2, using the PHP League's OAuth2 client

Hide attachment content
rista

No, I mean like authentication for mobile app, after member login I want to have a token for every request so I can know what data to return. Would be nice to use some jwt but all modules that I found are connected with gql.

null

what do you mean by external authentication? Like Google Single-SignOn?

null

has anyone seen this issue on dev/build before? Fatal Error (E_ERROR): Uncaught BadMethodCallException: Items must be saved before adding to a changeset in /path/to/my/site/vendor/silverstripe/versioned/src/ChangeSet.php:177

jkersu

Do you maybe have a doPublish inside a onBeforeWrite?

jkersu

Or you might be also missing an exists() check somewhere potentially:

  1. if ($obj) {
  2. $obj->doPublish();
  3. }
null

It just started happening out of the blue with no other changes. We're not sure what the cause is

null

it's preventing a dev/build and causing an outage

jkersu

Probably because an object is failing a inDB() check... can you replicate it locally? Might have to output the object before that line to see what object causes that error to occur

null

A possibly related issue that's preventing publishes, rather than builds: Fatal Error (E_ERROR): Uncaught BadMethodCallException: This ChangeSetItem has already been published in /path/to/vendor/silverstripe/versioned/src/ChangeSetItem.php


Show less replies