-
Notifications
You must be signed in to change notification settings - Fork 168
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
Prepopulate on branch develop 1.8 #1537
Comments
Please try running this with current code. Judging by the copyright date and database revision you are running an old version of the branch. |
Please use dev/php8 |
The version dev/php8 also runs on php 7.2? |
It'll run on PHP 7.4. You should not be using 7.2 at this point. |
Hi Seth. I am on dev/php8 and I am finding that overwrite isn't always working on prepopulate either. overwrite DOES work if using target and source (for containers) I also get the error with
|
Please send me your prepopulate config |
@collectiveaccess I have emailed you my configuration. I don't need the overwrite at this time, but I was using this to test things in response to @andrea-favarin post on the forum. https://support.collectiveaccess.org/d/301591-prepopulate-on-branch-develop-18/10 |
Hello, is it possible to verify this fix for this bug? [root@dv-ap1-new-php8-cabe-cabe conf]# /data/www/html/cola/support/bin/caUtils apply-prepopulate-rules Consiglio regionale del Piemonte 0.0% 1/11012 ETC: -. Elapsed: - [| ]PHP Fatal error: Uncaught Error: prepopulatePlugin::prepopulateFields(): Argument #1 ($params) cannot be passed by reference in /data/www/html/cola/app/plugins/prepopulate/lib/applyPrepopulateRulesTool.php:117 Fatal error: Uncaught Error: prepopulatePlugin::prepopulateFields(): Argument #1 ($params) cannot be passed by reference in /data/www/html/cola/app/plugins/prepopulate/lib/applyPrepopulateRulesTool.php:117 |
Please send me your current prepopulate configuration and we'll take a look as time allows. |
In my test only addIfEmpty mode works, while overwrite does not cover the field. The issue was also confirmed by Monica with her tests.
When I launch caUtils I get this:
[root@dev-wf2-cabe bin]# ./caUtils apply-prepopulate-rules
PHP Warning: Module 'json' already loaded in Unknown on line 0
CollectiveAccess 1.8 (189/GIT) Utilities
(c) 2013-2022 Whirl-i-Gig
Consiglio regionale del Piemonte 0.0% 1/11006 ETC: < 1 sec. Elapsed: < 1 sec [> ]PHP Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in /data/www/html/cola/app/plugins/prepopulate/lib/applyPrepopulateRulesTool.php:117
Stack trace:
#0 /data/www/html/cola/app/lib/Utils/BaseApplicationTool.php(173): applyPrepopulateRulesTool->commandApply_Prepopulate_Rules()
#1 /data/www/html/cola/support/bin/caUtils(165): BaseApplicationTool->run()
#2 {main}
thrown in /data/www/html/cola/app/plugins/prepopulate/lib/applyPrepopulateRulesTool.php on line 117
[root@dev-wf2-cabe bin]#
https://support.collectiveaccess.org/d/301591-prepopulate-on-branch-develop-18/10
The text was updated successfully, but these errors were encountered: