Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the responsive-lightbox domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. (This message was added in version 6.7.0.)
_load_textdomain_just_in_time()
Plugin: responsive-lightbox
]]>We’re getting a lot of PHP warnings, caught by the Query Monitor plugin, caused by OneSignal plugin:
Warning Array to string conversion, 8x
wp-includes/formatting.php:1096
wp_check_invalid_utf8()
esc_attr()
sanitize_post_field()
WP_Post->__get()
onesignal_metabox()
do_meta_boxes()
Plugin: onesignal-free-web-push-notifications
]]>Can this be fixed fix so as not to get the following warning with PHP 8.0:
MeowCommon_Admin is called too early. Please make sure it is called after the plugins_loaded filter.
I’m experiencing the following PHP warning in my error log:
PHP Warning: Undefined array key “url” in /home/customer/www/kombologia.com/public_html/wp-content/plugins/wordpress-seo/src/helpers/schema/image-helper.php on line 109
I’m using the free version of the Yoast SEO plugin (latest version installed) along with PHP version 8.2.27 on a WordPress site. The warning appears to be triggered when processing image schema data—specifically when the expected "url"
key is missing.
Has anyone encountered this issue before or found a workaround to prevent this warning? I’m interested in any suggestions or fixes that could resolve the issue without directly modifying plugin files.
Thanks in advance for your help!
Best regards,
Yiannis
debug.log
[19-Jan-2025 15:49:49 UTC] PHP Warning: file_get_contents(): data:// wrapper is disabled in the server configuration by allow_url_fopen=0 in .../wp-content/plugins/mailpoet/lib/NewsletterTemplates/ThumbnailSaver.php on line 126
[19-Jan-2025 15:49:49 UTC] PHP Warning: file_get_contents(data:image/jpeg;base64,/9j/4AAQ…
The file_get_contents()
call in lib/NewsletterTemplates/ThumbnailSaver.php
fails if server has allow_url_fopen=0
setting in PHP.
Current code:
125: private function saveBase64AsImageFile(string $file, string $data): bool {
126: return file_put_contents($file, file_get_contents($data)) !== false;
127: }
Suggested fix: Check allow_url_fopen
before using this wrapper conversion hack. Also check result of file_get_contents()
which is missing in current code and which would point out the problem as well.
Mailpoet 5.6.1, WordPress 6.4.5
]]>debug.log
[20-Jan-2025 09:03:50 UTC] PHP Warning: Undefined array key "timeline_container_shema" in .../wp-content/plugins/event-post/inc/class-settings.php on line 508
[20-Jan-2025 09:03:50 UTC] PHP Warning: Undefined array key "timeline_item_shema" in .../wp-content/plugins/event-post/inc/class-settings.php on line 508
Current code:
504: <textarea name="ep_settings[<?php echo $args['name']; ?>]"
505: style="<?php echo isset($args['input-style']) ? $args['input-style'] : null ?>"
506: id="<?php echo $args['name']; ?>"
507: class="regular-text <?php echo isset($args['input-class']) ? $args['input-class'] : null ?>"
508: ><?php echo EventPost()->settings[$args['name']]; ?></textarea>
When opening settings page of plugin, the two above mentioned array keys passed via $args['name']
when calling function EventPost()->settings[$args['name']];
do not exist in settings.
Suggested fix: Check if array keys exists before use.
Event post 5.9.8, WordPress 6.4.5
]]>debug.log
[18-Jan-2025 16:33:48 UTC] PHP Warning: foreach() argument must be of type array|object, null given in .../wp-content/plugins/event-post/eventpost.php on line 798
[18-Jan-2025 16:33:48 UTC] PHP Warning: Trying to access array offset on value of type null in .../wp-content/plugins/event-post/eventpost.php on line 808
[18-Jan-2025 16:33:48 UTC] PHP Warning: Trying to access array offset on value of type null in .../wp-content/plugins/event-post/eventpost.php on line 809
Current code:
797: $maps = $this->maps;
798: foreach($maps as $m=>$map){
...
804: }
805: wp_add_inline_script('event-post', 'var EventPost = EventPost || {}; EventPost.front='.wp_json_encode(array(
806: 'imgpath' => plugins_url('/img/', __FILE__),
807: 'maptiles' => $maps,
808: 'defaulttile' => $this->settings['tile'],
809: 'zoom' => $this->settings['zoom'],
...
812: )), 'before');
A fix could be similar to this:
$maps = $this->maps;
if ( !empty( $maps ) ) {
foreach($maps as $m=>$map){
...
}
wp_add_inline_script('event-post', ...
...
)), 'before');
}
Event post 5.9.8, WordPress 6.4.5
]]>debug.log
[18-Jan-2025 16:35:30 UTC] PHP Warning: Attempt to read property "post_type" on null in .../wp-content/plugins/job-postings/include/class-job-entry.php on line 391
[18-Jan-2025 16:36:36 UTC] PHP Warning: Attempt to read property "post_type" on null in .../wp-content/plugins/job-postings/include/class-job-entry.php on line 391
Current code:
390: $screen = get_current_screen(); //verify which page we're on
391: if ('job-entry' == $screen->post_type && 'edit' == $screen->base ) {
A fix could be similar to this:
if ( !empty( $screen ) && 'job-entry' == $screen->post_type && 'edit' == $screen->base ) {
Jobs for WordPress 2.7.11, WordPress 6.4.5
]]>I’m creating this topic for the issues reported by @scribelle here, so the Icegram developers can look into this.
January 7, 2025 at 10:56 am
From: @scribelleHello @anupamkhatua
Same worry for me: for one year, all your versions have a warning when testing, as well as the last one (5.7.47): 2 PHP warnings ans 1 PHP notice.
PHP Error Log for exemple:[02-Jan-2025 09:40:16 UTC] PHP Warning: Array to string conversion in /wp-includes/formatting.php on line 1096 [02-Jan-2025 09:40:18 UTC] PHP Warning: Array to string conversion in /wp-includes/formatting.php on line 1096 [02-Jan-2025 09:40:37 UTC] PHP Notice: Function wp_enqueue_script() was called <strong>incorrectly</strong>. "wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see <a href="https://developer.www.ads-software.com/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.8.0.) in /wp-includes/functions.php on line 6114
I like very much your plugin, but I dare not update it, nor update WP last version then. What can you do about it? Thank you very much.
January 13, 2025 at 1:54 pm
From: @anupamkhatuaHi @scribelle,
Thank you for reaching out to us!
I would like to clarify that the “wp-editor” is not enqueued by the Express plugin, so the error is not originating from our end. Additionally, the warning in the error message you provided does not reference the Express plugin. Therefore, we cannot determine if the error is related to the Express plugin.
To investigate further, could you please install the Health Check plugin? Activate only the Express plugin and check if the error persists. Once you’ve done that, please share the report with us for further troubleshooting.
We look forward to your response!
January 16, 2025 3:03 pm
Hi @anupamkhatua
From: @scribelle
First of all, thank you for your answer three days ago.
For information, the error warnings are indicated by a plugin test that I use for ages and that is great: Plugintests.
Whether for version 5.7.47 or version 5.7.48, nothing changed and the same warnings are still there. Look here:
https://plugintests.com/plugins/wporg/email-subscribers/latest
That is the reason why I’m still worried.
Icegram Express 5.7.48
]]>I need help, I am using Blogus on my website hosting with PHP 8.2
I got this warning on the category taxonomy breadcrumb
]]>Warning : Trying to access array offset on value of type bool in /home/path/to/webdir/wp-content/themes/blogus/inc/ansar/breadcrumb-trail/breadcrumbs.php on line 1059