-
-
Notifications
You must be signed in to change notification settings - Fork 137
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 messages #338
Comments
Sounds like you might have themes and/or plugins which are not ready for PHP 7.2. What happens if you lower the PHP version to 7.1 or 7.0? I am assuming you are running the site on Azure Web Apps, so the setting will be found in Application Settings. |
@patrickebates I am using PHP Version 7.0.33 Warning: Invalid argument supplied for foreach() in D:\home\site\wwwroot\wp-includes\translations.php on line 1474 Warning: Invalid argument supplied for foreach() in D:\home\site\wwwroot\wp-includes\translations.php on line 1474 Warning: array_merge(): Argument #1 is not an array in D:\home\site\wwwroot\wp-includes\fields_map.php on line 200 Warning: Invalid argument supplied for foreach() in D:\home\site\wwwroot\wp-includes\translations.php on line 1655 Warning: array_merge(): Argument #1 is not an array in D:\home\site\wwwroot\wp-includes\fields_map.php on line 200 Warning: Invalid argument supplied for foreach() in D:\home\site\wwwroot\wp-includes\translations.php on line 1655 |
Not sure what you are seeing there. Is this a new site, or something which has been running for some time? |
It's an old site has been running for a while and also not sure why settings for debug are not being picked from wp-config.php |
Look for a file /wp-includes/fields_map.parsed_types.php and if you find it, rename it. Let's see if that has an impact. |
@patrickebates when i rename it, the site crashes, and in any case i should not be messing with core files as when the WP gets updated it would be overwritten |
Issue is with these two plugins Looks like the function they use does not work with the configuration of projectnami WordPress. |
fields_map.parsed_types.php is not directly a part of PN core. It's like a log of modifications made to schema for tables which plugins have tried to create. We've seen a few issues where that file can become corrupt (usually when one of the logged plugins has been updated), so removing or renaming it triggers the creation of a new, empty file. Your case seems different, and probably was related to the plugins as you pointed out. Some plugins simply don't work with Project Nami. |
@cinghaman did you ever find a fix for this? We have the same issue and are temporarily working around it by removing the errors/warnings from the final wordpress output like this which is essentially splitting the PHP output on the
Then we call it in a
Lastly, we've modified the PN Blob Cache plugin as it sends the PHP output to Azure blob cache before the This is run with a filter like this:
|
@tsdexter unfortunately no, I abandoned the project in the end. |
I keep seeing PHP warning messages on top of all the pages, I have already updated wp-config.php file with
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_DISPLAY', false );
And also added log_errors = Off in .user.ini file
I have checked my phpinfo.php file as well and it shows error as off.
The server is azure, can you please point me how to disable these warnings
The text was updated successfully, but these errors were encountered: