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 warning: Array to string conversion #6

Open
Egmund opened this issue Apr 30, 2024 · 2 comments
Open

PHP warning: Array to string conversion #6

Egmund opened this issue Apr 30, 2024 · 2 comments

Comments

@Egmund
Copy link

Egmund commented Apr 30, 2024

Why am I getting this error every time the form send a message?:
[2024-04-30 04:45:37] (ERROR @ /home/rudbecks/sensistop.dk/core/components/spform/model/spform/spformclass.inc.php : 174) PHP warning: Array to string conversion

Using newest version of ModX and SPForm
Doesn't seem to cause any problems though.

@BobRay
Copy link
Owner

BobRay commented Apr 30, 2024

My bad. Change the first period on that line to a comma.

It should be:

if(($this->modx->getOption('chkFormRefNotBlank',$this->spfconfig,

Since I wrote that, PhpStorm (my code editor) has improved to the point where it highlights the code there and says "array to string conversion." ;)

@Egmund
Copy link
Author

Egmund commented Apr 30, 2024

Thank you Bob - fixed.

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