John Kostly
Forum Replies Created
-
I’m sorry, I will be unable to file the ticket.
add_action( 'wp_loaded', array( $this, 'add_yoast_schema' ) );
add_filter('pre_get_document_title', array($this, 'replace_title_text_pre'), 999, 1);public function add_yoast_schema() {
//add_filter('wpseo_opengraph_title', array($this, 'custom_og_title'),999,1);
//add_filter('wpseo_opengraph_title', array($this, 'custom_og_title'),999,1);
//add_filter('wpseo_title', array($this, 'custom_og_title'),999,1);
//add_filter('wpseo_title', array($this, 'custom_og_title'),999,1);
add_filter( 'wpseo_title', array( $this, 'replace_title_text_pre' ), 999, 1 );
add_filter( 'wpseo_opengraph_title', array( $this, 'replace_title_text_pre' ), 999, 1 );
add_filter( 'wpseo_metadesc', array( $this, 'replace_title_text_pre' ), 999, 1 );
add_filter( 'wpseo_opengraph_desc', array( $this, 'replace_title_text_pre' ), 999, 1 );
}public function replace_title_text_pre($title) {
//$title = get_the_title();
$title = str_replace('{Title}', 'Dominant', $title);
$title = str_replace('{title}', 'Submissive', $title);
return $title;
}A display that shows it: https://pricelessgemstone.com/kinky_activities/nightly-bdsm-prayer-affirmation-to-the-dominant/
(NSFW)
Please note, the <title> tags are correctly getting changed, but not the og:title any more, and you can see that the site title is no longer added to the og:title despite it showing on the title.I manually enter in the title and description in the yoast plugin, removing the {Title} token so that it won’t be shown. Now, this is no longer working. I also have another website using these same hooks, and now they are showing NO title, and NO description.
- This reply was modified 2 months, 1 week ago by John Kostly.
Massive, Crushing Bug. 100% confirmed.
This filter is also no longer working:
add_filter('pre_get_document_title', array($this, 'replace_title_text_pre'), 999, 1);
This affects all “og:” meta tags, which is now populating the wrong data (the excerpt and main page title) and not the Yoast Description / Title fields.
- This reply was modified 2 months, 1 week ago by John Kostly.
I believe you’ve also broken all Filters and Actions associated with these fields, including these hooks.
add_filter( 'wpseo_title', array( $this, 'replace_title_text_pre' ) );
add_filter( 'wpseo_opengraph_title', array( $this, 'replace_title_text_pre' ) );
add_filter( 'wpseo_metadesc', array( $this, 'replace_title_text_pre' ) );
add_filter( 'wpseo_opengraph_desc', array( $this, 'replace_title_text_pre' ) );I have multiple sites that were using this code, and they were working, but now its not. They’re all broken.
- This reply was modified 2 months, 1 week ago by John Kostly.
Had it happen again, so I started disabling plugins. When I disabled the “Starter Templates” plugin, by your company “Brainstorm Force” it started working again.
I was unable to contact them. Please file a ticket on this..
I just tried to disable the AI, and it is now opening the Design View without Spectra connected, but it crashes. My fix, to reconnect the AI, is no longer working. I’m not sure I can develop anymore without the design library.
I am a pro users. I’m going to contact them directly.
- This reply was modified 2 months, 1 week ago by John Kostly.
This is the code that is one up from the last run. It is from the 910.js
((e => {
const {getDisableAi: t, getDisablePreview: o, getTogglePopup: s} = e("ast-block-templates");
return {
disableAi: t(),
disablePreview: o(),
togglePopup: s()
}
}Just to be clear, I already turned off the cache, and most of the answers do not apply to this. This is clearly related to the AI system, and it probably just needs an if statement around the javascript call.
It works for a few days, then it starts crashing again.
To fix I goto AI Features and then “Disconnect AI”
I then have to add it again, as Spectra Library won’t work without it (sad, as I don’t really want these features).
react-dom.min.js?ver=18.3.1:2 Uncaught TypeError: Cannot destructure property 'getDisableAi' of 'e(…)' as it is undefined.
at 910.js:1:396
at main.js?ver=2.4.1:1:24123
at main.js?ver=2.4.1:1:21989
at __unstableMarkListeningStores (main.js?ver=2.4.1:1:27063)
at Object.__unstableMarkListeningStores (main.js?ver=2.4.1:1:27325)
at m (main.js?ver=2.4.1:1:21954)
at main.js?ver=2.4.1:1:22557
at d (main.js?ver=2.4.1:1:22688)
at p (main.js?ver=2.4.1:1:23006)
at main.js?ver=2.4.1:1:24114- This reply was modified 2 months, 1 week ago by John Kostly.
“TypeError: Cannot destructure property ‘getDisableAi’ of ‘e(…)’ as it is undefined.”
This is the last error, it exists on my website. It is only stopped when I disconnect the site from spectra, then reconnect it. It then works for awhile, then it starts throwing this error.
I’m a Pro User.
Most images are not loading in Firefox for iphone. Not sure about android, but Firefox for Windows works. Also Safari works.