I was trying to get results of a post meta relationship for a specific post id.
On a different language other than en_GB it seems to stop the function returning an array of results.
$meta_key = "your_key";
$meta_key = "your_post_id";
$sql = $wpdb->prepare(
"SELECT meta_value FROM {$wpdb->postmeta} WHERE meta_key = %s AND post_id = %s",
$meta_key,
$post_id
);
$related_ids = $wpdb->get_col($sql);
this strangely provides a different result than using get_post_meta.
I did not want to sync my custom fields as it creates a huge overhead.
I don’t know if this is a bug or by design.
]]>object of stdClass as array
blocks the page from fully loading. This blocks sites from being able to update any plugins or themes via this interface.
This seems to be caused by a bug in 4.39.0 of MailPoet Premium. Updating to 4.40.0 fixes this.
The workaround is to update to MailPoet Premium 4.40.0 from the Plugins list (/wp-admin/plugins.php). Doing so ‘fixes’ the WordPress Updates page.
Hope this helps someone avoid stress/panic/etc.
]]>Due to the update a few months back we had to add add_filter( ‘wpcf7_autop_or_not’, ‘__return_false’ ); to various of our websites to resolve additional p tags which were added on the front-end which messed up some of the form layouts.
But one issue we have now is that this doesn’t only impact the front-end form output, it also affects the html within the form response sent by email, so we have a fair few responses now rendering the response all on one line vs. adding br tags like it did previously.
With this in mind, is there a way to adjust the hook add_filter( ‘wpcf7_autop_or_not’, ‘__return_false’ ); so that this only applies to the front-end form output, but not to the form response sent by email?
Many thanks for your help,
Tonya
I know the conflict is with your plugin because i’ve already tryed to deactivate other plugins, but when i activate content controle the issue persists, i followed the elementor’s troubleshooting and it led to me here.
]]>Fortunately making it work is easy but a little tedious.
Simply edit the wp_monalisa table to include your shortcode, GIF name, 1 for posts/comments and then the width and height. It will work perfectly.
]]>Fatal error: Uncaught Error: Undefined constant "BLOCKLINE_URL" in /srv/htdocs/wp-content/themes/blockline/patterns/hero-1.php:46
I am not using the pro version of the theme, simply the free version. Please let me know if I can provide any further information.
]]>Warning: Trying to access array offset on value of type null in /www/devph_206/public/wp-content/plugins/svg-support/functions/mime-types.php on line 22
Fatal error: Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, null given in /www/devph_206/public/wp-content/plugins/svg-support/functions/mime-types.php:28
Stack trace:
#0 /www/devph_206/public/wp-content/plugins/svg-support/functions/mime-types.php(28): array_intersect(NULL, Array)
#1 /www/devph_206/public/wp-includes/class-wp-hook.php(310): bodhi_svgs_upload_mimes(Array)
#2 /www/devph_206/public/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#3 /www/devph_206/public/wp-includes/functions.php(3546): apply_filters('upload_mimes', Array, NULL)
#4 /www/devph_206/public/wp-includes/block-editor.php(211): get_allowed_mime_types()
#5 /www/devph_206/public/wp-includes/class-wp-theme-json-resolver.php(288): get_default_block_editor_settings()
#6 /www/devph_206/public/wp-includes/class-wp-theme-json-resolver.php(540): WP_Theme_JSON_Resolver::get_theme_data()
#7 /www/devph_206/public/wp-includes/script-loader.php(3205): WP_Theme_JSON_Resolver::get_merged_data()
#8 /www/devph_206/public/wp-includes/script-loader.php(3401): {closure}()
#9 /www/devph_206/public/wp-includes/class-wp-hook.php(308): {closure}('')
#10 /www/devph_206/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#11 /www/devph_206/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#12 /www/devph_206/public/wp-settings.php(639): do_action('wp_loaded')
#13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1336): require('/www/devph_206/...')
#14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1254): WP_CLI\Runner->load_wordpress()
#15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#17 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#18 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...')
#19 /usr/local/bin/wp(4): include('phar:///usr/loc...')
#20 {main}
thrown in /www/devph_206/public/wp-content/plugins/svg-support/functions/mime-types.php on line 28
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
]]>The workaround: Add a standard image block, set it to full width and then change it to cover.
Maybe this is something that could be included in bug fixes in the future?
]]>