New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Wip] Smarty3 - branch for testing #27565
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
6d1eca1
to
fffbb37
Compare
44b6cd8
to
1869b5a
Compare
Seeing a bunch of notices like this:
Smarty upgrade docs say: So I guess we need an upgrade to civix for this and something to keep existing extensions working? |
@larssandergreen this should address that #27579 |
@eileenmcnaughton We can do that for core extensions, but it's not just that extension, it's any extension that's not updated with civix recently (on my local, that's civirules, civivisualize, angular profiles, log viewer, contribution recur, twilio, iats and For example, contribution pages using IATS payment processing are now broken. |
@larssandergreen yeah - I think the first goal would be to get all the pages working with Smarty3 in core.... Probably worth doing a |
@eileenmcnaughton Sure, I can do some of those later too. |
@larssandergreen this search string |
@Edzelopez could you assign some of these upgrades to our staff, potentially Mary or Lauren or Monish. Lars is it okay if we start with civirules, contribution recur and iats ? |
@JoeMurray I did put up an IATS pr |
@JoeMurray @Edzelopez That would be great. Note that the list of extensions above are just the ones I happen to have had on my local. Any extension with civix version of 23.01 or lower should be upgraded. |
1869b5a
to
e37f431
Compare
I just updated this so the define you need (if you git pull which you don't have to) is now |
553e87c
to
fa012ff
Compare
4419e31
to
cc68724
Compare
ba45071
to
255c344
Compare
@Edzelopez let's also go through our extensions starting with line item edit and the grant ones and other financial ones. |
e9ccec8
to
cecd68a
Compare
For now I have submitted the MRs/PRs for respective extension's civix upgrade below: Civix upgrade PRs:
|
thanks @monishdeb - what do you still use angular profiles for ? I guess it's still part of civivolunteer? |
cecd68a
to
3d2eb13
Compare
Note the stuff in this branch is otherwise merged |
Overview
[Wip] Smarty3 - branch for testing
This adds code that makes it possible to
define('CIVICRM_SMARTY3_AUTOLOAD_PATH', \path\to\civicrm\ext\smarty3\vendor\autoload.php
);`Most of what this code adds is already put up as separate PRs as it is mergeable now
What the code adds is
SmartyCompatibility.php
this provides a function that allows v3 Smarty functions to run in v2. This could be added to core ASAP allowing us to migrate functions likeclear_all_templates()
toclearAllTemplates()
crmScope
), , dev/core##4146 Remove unused variables from custom smarty functions #27581 dev/core##4146 Run civix upgrade on afform_html #27579 dev/core##4146 UpdateRenderer::_tplFetch
to work withSmarty3
#27583fetch
received a:string
. We have another method that does thisparseOneOffStringThroughSmarty
& perhaps we could use deprecation notices to find places that should be moved to that to allow us to remove this function. The signture changesAfter this is installed the most broken things are
Before
After
Technical Details
@larssandergreen with this you can get close to testing out your changes. I'm just trying to figure out if I previously solved 2
Comments