Skip Navigation

[Resolved] We are getting a lot more PHP Warnings in our log file with the newest version.

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 5 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1242614
Screen Shot 2019-05-11 at 1.13.46 PM.png

We are on PHP 7.2 and WordPress 4.9.1.

See attached screenshot and log file entries below. Our number of log file Warnings has skyrocketed with this version.

[Sat May 11 09:15:21.730053 2019] [php7:warn] [pid 19644] [client 10.187.187.9:24198] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/staging18.gsu.edu/httpdocs/wp-content/plugins/types/vendor/toolset/types/embedded/classes/forms.php on line 281, referer: hidden link
[Sat May 11 09:15:21.738860 2019] [php7:warn] [pid 19644] [client 10.187.187.9:24198] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/staging18.gsu.edu/httpdocs/wp-content/plugins/types/vendor/toolset/types/embedded/classes/forms.php on line 281, referer: hidden link
[Sat May 11 09:17:15.011117 2019] [php7:warn] [pid 19638] [client 10.187.187.9:57917] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/staging18.gsu.edu/httpdocs/wp-content/plugins/types/vendor/toolset/types/embedded/classes/forms.php on line 281, referer: hidden link
[Sat May 11 09:17:15.019502 2019] [php7:warn] [pid 19638] [client 10.187.187.9:57917] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/staging18.gsu.edu/httpdocs/wp-content/plugins/types/vendor/toolset/types/embedded/classes/forms.php on line 281, referer: hidden link
[Sat May 11 09:26:15.266383 2019] [php7:warn] [pid 20026] [client 10.187.187.9:6244] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/staging18.gsu.edu/httpdocs/wp-content/plugins/types/vendor/toolset/types/embedded/classes/forms.php on line 281, referer: hidden link
[Sat May 11 09:26:15.275370 2019] [php7:warn] [pid 20026] [client 10.187.187.9:6244] PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/staging18.gsu.edu/httpdocs/wp-content/plugins/types/vendor/toolset/types/embedded/classes/forms.php on line 281, referer: hidden link

#1242791

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - with the debug information you shared it shows me that you are using the WordPress Version 4.9.8 and in your initial reply you shared that you are using WordPress version 4.9.1.

Can you please update WordPress to it's latest version 5.2. Do you see such notices after WordPress update?

In addition to this, I see the notice is thrown from Types plugin but I would like to know when and exactly where? Can I have exact step information that will help me to reproduce this issue?

#1243056

Sorry - I meant to put WordPress 4.9.8. Unfortunately we cannot upgrade to WordPress 5.2 at this time. There are accessibility issues with that version and we are not allowed upgrade until they are resolved. The error appears to be triggered by a post edit looking at the log entry.

#1243376

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - we do not get such report yet but to rule out any theme/plugin conflict:
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?

If the above step does not help - I need duplicator copy of your install.
=> https://toolset.com/faq/provide-supporters-copy-site/

I have set the next reply to private which means only you and I have access to it.