Started seeing this after server upgrade to php 7.1.6

I have CT 3.1 installed.

Any Ideas?

  • I know this is due to change to php 7.1.6... Offending line of code is (line 685): $attributes['onclick'] = $onclick; – Kokako Jul 20 '17 at 1:25

Ok just in case anybody hits this issue, I'm pretty sure that it has something to do with the php version. The server that had this was recently upgraded to 7.1.6. Switching back to 5.x made the warning go away.

A kind person over at StackOverflow found a fix.


  • The link you provided fixed it for me as well, thanks for sharing! – ByteMyPixel Aug 21 '18 at 18:30

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.