Grzegorz.Janoszka
Forum Replies Created
-
Hi, it is top-10/includes/tracker.php line 48. It sets the variable $blog_id. As the variable is not defined earlier as local, I think the global one of wordpress $blog_id is used. And in single-site installations the variable is not set.
The code that I quoted earlier checks is_set($blog_id) as a detection whether it is a multisite setup or not. With top10 plugin it fails later on on function switch_to_blog. It maybe is not the best way of detecting multisite install, but I guess it is used by at least some developers.
I guess the solution would be to rename your variable blog_id to something else, that doesn’t collide with WP global variable.
Thank you for looking into it.
- This reply was modified 1 year, 6 months ago by Grzegorz.Janoszka.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Call to undefined function switch_to_blog()Ah, I think I found it. Two plugins didn’t get disabled (I think I misclicked – instead clicking twice deactivate, I deactivated and activated one of them) and one of them has a code:
$blog_id = get_current_blog_id();
It is the top-10 plugin (https://www.ads-software.com/plugins/top-10/) and I guess it is the culprit.
Anyway, appreciate the double check in future versions.- This reply was modified 1 year, 6 months ago by Grzegorz.Janoszka.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Call to undefined function switch_to_blog()And btw – how do I modify what is displayed when nothing is found? I would like to add some text with links but I am unable to find where I can do that.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Call to undefined function switch_to_blog()I have disabled all the other plugins and the issue remains. If I search for something that doesn’t exist, I get a normal page saying that it wasn’t found. When I search for something that exists, I get critical error.
I did:
function relevanssi_add_excerpt( &$post, $query ) {
if ( isset( $post->blog_id ) && function_exists( 'switch_to_blog' ) ) {
switch_to_blog( $post->blog_id );
}and the same around restore_current_blog and it seems it helped. I would appreciate such entries in the next update, but no rush with it.
No idea what is wrong with my site.
Thank you for your help.Forum: Plugins
In reply to: [Relevanssi - A Better Search] Call to undefined function switch_to_blog()It happens several times a day at different hours. Seems quite random.
The query is the search, like “GET /?s=Chleb HTTP/2.0”.And indeed – I have just noticed that the search is totally broken. When you search for anything, you get a critical error message. Just browsed all the logs and the earliest entry I see is dated on 31st Mar 2023. Does this relate to one of the release dates?
- This reply was modified 1 year, 6 months ago by Grzegorz.Janoszka.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Call to undefined function switch_to_blog()Hi, it is a singlesite installation and it has always been. I was not doing anything with the website, not clicking any admin things. I have just noticed it in the logs.
Maybe it is good to check if the function exists as the actual verification whether it is a multisite?Forum: Plugins
In reply to: [The SEO Framework – Fast, Automated, Effortless.] og:image has outdated dataSybre, long time indeed. The plugin does its job and I didn’t have to report anything ??
The recent issue was I have replaced some images URL’s with database operation (I know, it is probably not the WP recommended way for post editing, but hey, it works). The SEO tags kept pointing to the “old” images despite later manual post edits, saving SEO plugin config (that is supposed to delete any cache ) and so on. There was no way I could force their update. Eventually I had to manually put an URL in the SEO section under the post in its edit window. That probably solved it.
Is there a way to somehow remove the current image selection and force the plugin the automatically get the new ones?Forum: Reviews
In reply to: [Index WP MySQL For Speed] Broke my siteNo, for me even activating that plugin breaks my site – I get WP white screen of death. The author can’t properly do exceptions handling in PHP. I sent them the SQL query that causes the problem but they just ignore it. Bad bad bad.
Forum: Plugins
In reply to: [Index WP MySQL For Speed] It killed my siteI can’t do anything with this plugin, any activation of it kills my site and shows:
*95870 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught mysqli_sql_exception: SELECT command denied to user ‘user’@’localhost’ for table ‘user’ in /z/wp-includes/wp-db.php:2056
I can’t revert the changes done by this plugin, because it doesn’t work at all.
Forum: Plugins
In reply to: [Contextual Related Posts] Incompatible with Index WP MySQL For SpeedI would like to support you, where can I find a link to some paypal?
Forum: Plugins
In reply to: [Contextual Related Posts] Incompatible with Index WP MySQL For SpeedAs usually fantastic support ??
Forum: Plugins
In reply to: [Index WP MySQL For Speed] It killed my siteHi,
I am using PHP 8.1 and maybe the above errors have something to do with:
https://php.watch/versions/8.1/mysqli-error-modeForum: Plugins
In reply to: [Contextual Related Posts] Incompatible with Index WP MySQL For SpeedAjay,
What a fast reply! I can’t find this plugin entry in the “Tools” menu of WP. I see some buttons in the “Indexing” tab of the settings page.
Do you mean the button “Build the index”?Thank you for your amazing support.
Forum: Plugins
In reply to: [Index WP MySQL For Speed] It killed my siteThe CRP plugin author replied:
It looks like the plugin deleted the FULLTEXT indexes of the plugin which is strange as it shouldn’t be doing that.
Is it something that could help you fix the issue?
Forum: Plugins
In reply to: [Index WP MySQL For Speed] It killed my siteI have just disabled contextual related posts plugin and everything is fine. So this database optimization did something, that newly created post had different indexes than the other ones. And contextual related posts failed on this very new post. Other plugins couldn’t finish their job.
The problem is that your plugin completely breaks my site (white screen of death) and I can’t even recreate original indexes!
Can you please check it? Take a wordpress blog, add contextual related posts to it, publish some posts, then activate your own plugin, optimize all indexes and then try to publish a new post. It will not work good and logs will be full of errors.
- This reply was modified 2 years, 10 months ago by Grzegorz.Janoszka.