Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterThe log updates ever minute or so. That’s only a notice it does cannot issue a an error 500 on the server, fatal errors do that.
The error is still there, look at the timestamp:
[code]10-Feb-2015 19:05:18 UTC PHP Fatal error: Call to undefined function get_schools_list() in /var/www/vhosts/fairfieldschools.org/district-v2/themes/FPS_District-v2/templates/partials/parents-our-schools-v2.php on line 15[/code]Ernest Marcinko
KeymasterHi!
I can only see 1 fatal error repeating in the log
[code]PHP Fatal error: Call to undefined function get_schools_list() in /var/www/vhosts/fairfieldschools.org/district-v2/themes/FPS_District-v2/templates/partials/parents-our-schools-v2.php on line 15[/code]
It comes from the theme as you can see. Try to fix that issue in that file, it might fix the search issue as well if its related.
Ernest Marcinko
KeymasterWhat size is the db (post count)?
If there are like 10k post, then some tweaking might be needed. The 100% peak usage is not an issue, it can go up to 100% in search queries for a very short time. The issue is if it stays up on 100% for a long time, then the server might or might not crash.
Do you have a swap file enabled? MySQL likes to use a lot of memory, and by lot I mean a hell of a LOT. When I moved this site I forgot to turn on the swap file, and after just installing a plain new empty WordPress it crashed after the 3rd refresh, and this server uses 1G memory.If the swap file is okay, then there are lots of other options to tweak:
If you have a bigger database, like 10k posts you should consider turning off the content relevance as there is a very high chance that title relevance will match other titles. You can do that on the “Relevance Options” panel by turning off the “Look in content?” option.
Plus another and possibly the most effective tweak is to reduce the keyword count, it exponentially affects the speed of the query. So again on the “Relevance Options” try to reduce the “Keywords maximum count” from 10 to 3. Depending on the database size this should improve the performance extremely.
Or maybe your server doesn’t like the boolean mode search. What if you turn off the fulltext search. On the “Advanced Options” panel:
- Turn OFF the “Use fulltext lookup if available?”
- Turn ON the “Enable cache?”
Altough fulltext search should be more effective in terms of performance, in some cases I found it’s exactly the other way around. There is no other way to know, but testing.
You can try experimenting with these options, these control the most of the resources.
Let me know which of these helped, I’m all in for feedback. I must close the office now, it’s getting too late here. Will get back to you tomorrow morning. Hopefully these suggestions will help.
February 10, 2015 at 5:40 pm in reply to: Description not showing on pages created with Visual Composer #3846Ernest Marcinko
KeymasterI have no idea. Maybe the description isn’t stored in the post description field, maybe in a meta? I have a copy of visual composer myself for testing puproses, but it works 🙁
I can’t really provide or promise 3rd party plugin compatibility, but usually visual composer is an exception due to it’s wide user base – and it’s very well written plugin, I must say.
In your case all I can do is manually debug and check for possible errors and such. To do this however I need temporary ftp and admin access. If you can provide that, I will probably be able to tell what’s the problem there. You can do that by editing your first post in this thread, or uploading a txt file with details. Both way is secure, not visible to anyone else.
Ernest Marcinko
KeymasterWait a second, I see something strange, altough I don’t know if it’s related to a crash. Some of the lines contain:
[code]OR MATCH(hooplaha_posts.post_title,hooplaha_posts.post_content) AGAINST (‘caption galifianakis com source imgur id=”” align=”alignnone” width=”635″‘ IN BOOLEAN MODE))[/code]
That looks very strange to me, the commas are not stripped as the should be.
Would you please open up the wp-content/plugins/related-posts-pro/includes/related_content.class.php file and scroll down to line 1090, where you should see this:
[php]$str = str_replace(array(".", ",", "$", "\\", "/", "{", "^", "}","?", "!", ";", "(", ")", ":", "[", "]"), " ", $str);
[/php]
try to modify that line to this:[code]$str = str_replace(array(".", ",", "$", "\\", "/", "{", "^", "}","?", "!", ";", "(", ")", ":", "[", "]", ‘"’, "’"), " ", $str);[/code]
I’m not sure if it’s related to the crash, but if so, then this should solve the problem.
Ernest Marcinko
KeymasterThanks. That should be okay.
I think I need temporary admin and ftp access to sort this out. On my test servers I can’t replicate this issue, I need to do some debugging on yours to see where the issue might come from.
You can edit your initial post to provide access or attach a txt file. Both methods are safe, only you and me can see that.
Ernest Marcinko
KeymasterHi!
I see no errors in the queries, they look okay. There is no reason it should have crashed the server.
Do you have any php and apache error log or anything else available? They might contain more information, these are only sql queries.
February 10, 2015 at 5:14 pm in reply to: Description not showing on pages created with Visual Composer #3838Ernest Marcinko
KeymasterSorry, I meant these tags: [code]<span><a><abbr><b><p><div>[/code]
February 10, 2015 at 5:12 pm in reply to: Description not showing on pages created with Visual Composer #3835Ernest Marcinko
KeymasterHi!
It’s most likely that the content is stored within different HTML tags, that are allowed and there might be a syntax error (most likely unclosed html) causing the content to completely disappear.
You should try to allow more tags on the Advanced Options -> HTML Tags exclude from stripping content option. Currently you can see a,abbr,span,b tags as non stripped. Try to add div and p as well, those are common ones.
So the final options should look like this: [code]<span><a><abbr><b><p><div>[/code]And of course the Run shortcodes found in post content should be enabled and the Strip shortcodes from post content should be disabled.
-
This reply was modified 11 years, 4 months ago by
Ernest Marcinko.
Ernest Marcinko
KeymasterStrange. Is your Category/Term logic option set to “AND”? You can check it on the General Options -> Behavior panel: http://i.imgur.com/LMLS17Q.png
Ernest Marcinko
KeymasterI just checked with browserstack as well, here are the results for different systems: http://www.browserstack.com/screenshots/8e21e2cf1b582b84050f0d287a147440dc24e2ef
Do you see anything unusual on those screenshots? Those screens only show the first picture of course, because of the image lazy load script.
Ernest Marcinko
KeymasterHi!
Could you please check the error log on the frontend (F12 opens the console, the refresh), if it shows anything. Mine was empty, didn’t show any errors unfortunately.
Also, the your system specs, operation system version, screen resolution, list of plugins installed in firefox might help.
Are you logged in by any chance? Is the same if you are not logged in on your site? WordPress outputs different html for logged in and non logged in users.
In the meantime I tried multiple web proxies, another computer, 5 VPNs but it’s still ok for me. I honestly have no idea what’s the difference and why is it happening on your side.
Ernest Marcinko
KeymasterHi!
I’ve tried to search for acre, with the acre taxonomy unchecked, and I didn’t get results as expected: http://i.imgur.com/xcYYcFM.png
Once I checked the “acre” category again, I get results: http://i.imgur.com/zRa0D8R.png
Isn’t that how it supposed to work?
Ernest Marcinko
KeymasterHi!
Thanks for the links.
I’ve tried each of them a couple dozen times, but it always appears all right. I also tried CTRL + SHIFT + R for no-cache refreshing, but still working as expected.
Just to make sure it’s not my firefox only, I’ve also tried with a win 7 virtual machine with the latest firefox freshly installed, but I get the same results – the images are showing correctly.
Would you please try completely clearing your cache and cookies on that site? I’m suspecting this might be related to that as I was unable to replicate the issue on two separate installs.
You should also try on a different computer if you have one accessible.Let me know how it goes!
Ernest Marcinko
KeymasterHi!
If you don’t want to show posts from a category, then you can exclude them on the Advanced Options panel: http://wp-dreams.com/demo/wp-ajax-search-pro3/docs/#advanced_options_excluding_categories
If you however don’t want to show some of the selectors on the frontend, then you can exlude those categories on the Frontend the posts from category on the Frontend Search Settings -> Categories & Taxonomies options panel: http://wp-dreams.com/demo/wp-ajax-search-pro3/docs/#frontend_search_settings_showing_hiding_category_selectors
-
AuthorPosts