leedxw
Forum Replies Created
-
I would suggest that any error that requires resource to direct database manipulation to fix, shouldn’t be regarded as intended behaviour.
I’m afraid I can’t answer these questions as it’s not a site I manage – I was asked to look at a page that was broken on a website, and determined that empty table headers were the cause.
Forum: Plugins
In reply to: [Open Graph and Twitter Card Tags] Fatal error on empty taxonomy searchwordpress 6.8.2
php 8.3.6
Uncaught ErrorException: Array to string conversion in /var/www/html/wp-content/plugins/wpsso/lib/opengraph.php on line 752 in /var/www/html/wp-content/themes/cognus/functions.php:216
Stack trace:
#0 /var/www/html/wp-content/plugins/wpsso/lib/opengraph.php(752): errHandle()
#1 /var/www/html/wp-content/plugins/wpsso/lib/opengraph.php(206): WpssoOpenGraph->get_og_type_id_for()
#2 /var/www/html/wp-content/plugins/wpsso/lib/opengraph.php(87): WpssoOpenGraph->get_mod_og_type()
#3 /var/www/html/wp-content/plugins/wpsso/lib/opengraph-ns.php(84): WpssoOpenGraph->get_mod_og_type_id()
#4 /var/www/html/wp-includes/class-wp-hook.php(326): WpssoOpenGraphNS->filter_html_attributes()
#5 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#6 /var/www/html/wp-includes/general-template.php(4531): apply_filters()
#7 /var/www/html/wp-includes/general-template.php(4546): get_language_attributes()
#8 /var/www/html/wp-content/themes/cognus/header.php(14): language_attributes()
#9 /var/www/html/wp-includes/template.php(810): require_once('...')
#10 /var/www/html/wp-includes/template.php(745): load_template()
#11 /var/www/html/wp-includes/general-template.php(48): locate_template()
#12 /var/www/html/wp-content/themes/example/search.php(10): get_header()
#13 /var/www/html/wp-includes/template-loader.php(106): include('...')
#14 /var/www/html/wp-blog-header.php(19): require_once('...')
#15 /var/www/html/index.php(17): require('...')Just noting that this still appears to be the case in 2.3.0
PHP Deprecated: Implicit conversion from float 62901.067733764634 to int loses precision in wp-content/plugins/broken-link-checker/legacy/modules/extras/youtube.php on line 31I honestly don’t understand your reference to “permalink to post name”?
I’m seeing a lot of
WordPress database error Incorrect DATETIME value: ''in the logsthe full query looks like
SELECT SQL_CALC_FOUND_ROWS (wp_tec_occurrences.occurrence_id + 10000000) as occurrence_id
FROM wp_posts
LEFT JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_key = '_EventHideFromUpcoming' )
JOIN wp_tec_occurrences ON wp_posts.ID = wp_tec_occurrences.post_id
WHERE 1=1
AND (
CAST(wp_tec_occurrences.start_date AS DATETIME) < ''
AND wp_postmeta.post_id IS NULL
)
AND wp_posts.post_type = 'tribe_events'
AND ((wp_posts.post_status = 'publish'))
AND (wp_posts.ID NOT IN (67146))
GROUP BY wp_tec_occurrences.occurrence_id
ORDER BY wp_tec_occurrences.start_date_utc DESC, wp_posts.post_date DESC
LIMIT 0, 1This is happening on requests for venue pages.
The venue page is being treated as a single event, but this is causing
get_closest_event()to construct a query that references_EventStartDatewhich is empty on venues.I think I can prevent the error by editing
src/Tribe/Views/V2/Template_Bootstrap.phpand removing the linetribe_context()->get( 'tec_post_type' ),fromis_single_event()this is the-events-calendar=6.6.0.2
- This reply was modified 1 year, 4 months ago by leedxw.