dragan Posted September 1, 2019 Posted September 1, 2019 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)
bernhard Posted September 1, 2019 Posted September 1, 2019 Did you think of packing the content of ready.php in your own boilerplate module?
Robin S Posted September 1, 2019 Posted September 1, 2019 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. 2
wbmnfktr Posted September 1, 2019 Posted September 1, 2019 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.
Robin S Posted September 1, 2019 Posted September 1, 2019 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. 3
wbmnfktr Posted September 1, 2019 Posted September 1, 2019 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. 1
dragan Posted September 2, 2019 Author Posted September 2, 2019 Just to clarify: I didn't use the ZIP file, I took the generated folder (Server Directory method), since I was only working locally.
kp52 Posted September 3, 2019 Posted September 3, 2019 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. 1
bernhard Posted September 3, 2019 Posted September 3, 2019 42 minutes ago, kp52 said: It's very useful to install a ready-made set of modules like this. If that's your goal you should maybe have a look at PW Kickstart, especially this reply: https://processwire.com/talk/topic/18166-processwire-kickstart/?do=findComment&comment=187284 It's a lot more flexible than site profiles (spoiler: I don't like them ?)... 1 1
wbmnfktr Posted September 3, 2019 Posted September 3, 2019 Just to let you know: Server directory option includes the ready.php here on my setup.
teppo Posted September 7, 2019 Posted September 7, 2019 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now