Skip to content
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

PHP 7.x error (??) #9

Open
clmcavaney opened this issue Aug 18, 2020 · 2 comments
Open

PHP 7.x error (??) #9

clmcavaney opened this issue Aug 18, 2020 · 2 comments

Comments

@clmcavaney
Copy link

clmcavaney commented Aug 18, 2020

G'day,

I was wanting to try this module, but when I installed it and started to use it on REDCap v10.2.2 I got a hole lot of these PHP debug errors:

( ! ) Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /var/www-virtuals/redcap/modules/external_module_templater_v1.3/vendor/twig/twig/lib/Twig/Node.php on line 42
--

Then at the bottom some HTML did render.
Is there a compatibility issue with this external module?

Actually it might be a twig dependency (or PHP version compatibility) issue.

Regards,
Christopher

@taylorr4
Copy link

@clmcavaney that warning should not be displayed unless some kind of module is turning on error_reporting() in PHP. Otherwise, REDCap leaves it set to "0"/Off so as not to display those. So you might want to find out what is turning on error reporting in PHP, if possible.

@clmcavaney
Copy link
Author

clmcavaney commented Aug 24, 2020

Agree - the error reporting must have been turned on.
When I reloaded the page the errors didn't show again.

In the mean time, I tried using the newer version of Twig, and that appeared to work after a small code change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants