gasmas75
Forum Replies Created
-
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Cant connect to FacebookI confirm too that we had a successful connection at last. I wonder what was the issue , from a developer’s point of view, that took 3 days to resolve. Maybe the numerous security paths that FB built lately.
Well I increased the refresh time to 1h and it seems to be working. Counts are showing and no limiting from Facebook.
Thank you.Something seems wrong or broken. The share count doesn’t show again. On the facebook app page (Facebook Developers) I get this message “Application-Level Rate Limit” 104% Call count usage rate.
I still get the “Share App ID Missing” from here.
Any clues?Nevermind. It seems after the update the fb app id and secret were lost. I re-entered them and it works again.
Thank you anyways!Hello again,
it seems that the update after a few hours brought the resources sky high (cpu & entry processes) and eventually the site went offline (resource limit reached).
After a look at the logs i got a lot of these error 400:
GET /wp-admin/admin-ajax.php?action=the_champ_sharing_count
… from the bing bot (!).
I also get this error from the log:mod_fcgid: stderr: PHP Warning: Illegal string offset 'facebook' in /var/www/vhosts/[sitename]/httpdocs/wp-content/plugins/super-socializer/inc/social_sharing.php on line 1058
I disabled the plugin and the site is back on line.
Should i restore two versions back when it worked fine or is there a fix to this?Thank you
Thank you for your prompt support. Just updated and will be monitoring for the next 24 hours.
Thanks again!
Hi again,
seems after the latest update to Version 7.12.15 the problem returned. The file given on Github does not work anymore and breaks the site. Could you please update the patched file?Hi again,
It seems that the errors stopped… i’ll keep checking and i’ll post back if I see something.
Thank youHi,
thank you for your fast response. I changed it and i’ll keep an eye on it. I’ll give it 24hrs and check the logs again.Thanks
To elevate @ruven ‘s answer because some posts didn’t display at all for some reason, I found that using the function below solves the issue and displays the posts everytime:
add_action( ‘elementor_pro/posts/query/tags_only’, function( $query ) {
$query->set( ‘tag’, get_post_field( ‘post_name’, get_post() ) );
} );
- This reply was modified 6 years, 7 months ago by gasmas75.
Ok i found the issue. It was ‘Elementor Extras’ plugin that was updated too. I disabled/re-enabled the plugin ‘Elementor Extras’ and all is back to normal
Hi @ruven. Yes it was that simple ?? Although it seems to work on some pages, on other doesn’t return posts (even though they exist) and on others returns less than the actual posts.
I’ll examine more carefully, maybe some tags/slugs aren’t exactly as the page’s name.
But you helped me to get in the right track!
Many thanks!I understand what you’re describing. But I want to do this dynamically. Each time a user creates content for a page (actually it’s a child page from a parent page) the template displays the page’s content+the posts related.
I’m trying to use a query filter with elementor’s query id and I must alter somehow the code provided by elementor for ‘related posts’
`
// Showing related posts by tag in Posts Widget
add_action( ‘elementor_pro/posts/query/episode_q’, function( $query ) {
// Here we set the query to fetch posts with
// the same tags as the current post// Get current post tags
$tags = wp_get_post_terms( get_queried_object_id(), ‘post_title’, [ ‘fields’ => ‘ids’ ] );// Get current tax_query
$tax_query = $query->get( ‘tax_query’ );// Add our tax query
$tax_query[] = [
‘taxonomy’ => ‘post_tag’,
‘terms’ => $tags,
];// Modify the query
$query->set( ‘tax_query’, $tax_query );// Make sure we don’t get current post
$not_in = $query->get( ‘post__not_in’ );
$not_in[] = get_queried_object_id();// Modify the query
$query->set( ‘post__not_in’, $not_in );
} );
`
Somewhere I have to alter the code, but I can’t figure out where
Hi @lestexas60 Thank you for your response.
The 1st part is easy and I can do this by creating a page template with dynamic fields. So each time I create a new page, the dynamic fields get their respective values.
My problem is on the second part, where I want to show a grid of posts related to the page’s title (relation can be page’s title with posts’ tag).
One way I suppose I can do it, is by using elementor’s query id/filter. But I have some trouble creating the action hook.Forum: Plugins
In reply to: [Smart Slider 3] Autoplay interval not working after updateThank you for your prompt help. From your support answer, it was the slide duration (within generator settings) that overridden the autoplay duration. Setting the slide duration to ‘0’ did the trick!