Jump to content

Recommended Posts

Posted

Is it by design that a site/ready.php is not included when creating a new site profile? Is it possible to include it with a hook? Or are there any security thoughts? (I don't want to redistribute it in public, it's just so I have my own boilerplate)

Posted

Ryan's ProcessExportProfile module includes ready.php in the exported files. Based on your other comment, I think there may have been an error during the export process because I frequently install profiles exported by this module without any problems.

  • Like 2
Posted
1 hour ago, Robin S said:

Ryan's ProcessExportProfile module includes ready.php in the exported files.

Can't confirm this. Just moved 2 sites/profiles from local to another instance. Neither of them had ready.php, init.php or finished.php in the created profile ZIPs.

Posted
9 minutes ago, wbmnfktr said:

in the created profile ZIPs

I always use the "Server directory" option because I'm using the profiles locally and so there's no point in an extra zipping/unzipping stage. So could be a bug with the ZIP export option.

  • Like 3
Posted

Ok, this is a very good detail. I always use ZIPs as I push them - as they are - to the new system.

I will try the Server Directory tomorrow and let you (all) know if this makes a difference here on my side.

  • Like 1
Posted

Just to clarify: I didn't use the ZIP file, I took the generated folder (Server Directory method), since I was only working locally.

Posted

I tried the module after reading this thread, using Server Directory method, and had a problem because ready.php *was* included. The installer complained about a hook I use to process submissions to a FormBuilder form: "Call to a member function addHookAfter() on null ", where the call is

$forms->addHookAfter('FormBuilderProcessor::render', function($e)

Temporarily renaming ready.php in the profile and resetting it after installation got me where I wanted to be. It's very useful to install a ready-made set of modules like this.

  • Like 1
Posted

Note from moderator: since this is not a support thread for a module, I'm moving it to the "Themes and Profiles" area of the forum instead. Thanks!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...