niska
Forum Replies Created
-
On another site I have >100.000 posts. In this site I’m not displaying any of the posts on the website (because they are scraped from other blogs). These post doesn’t have any featured image or facebook image set. Instead I use template_include filter to include a custom template. In this template I use wpseo_opengraph_image filter to set the image that should be used on Facebook. I have enabled Facebook in Yoast SEO because I want to use open graph on my custom template. However, I don’t want Yoast SEO to try to compute a image/width/height for the posts. Is there a way to turn off the new image caching functionality? How do I use the wpseo_opengraph_image_size filter to turn off image caching. Any documentation available?
I’m still trying to understand this new feature.
In one of my sites I’m only using featured image. I have >10000 posts. This is a blog about books and a lot of the posts have images sizes about 170×270 pixels (this is the best I can get currently).
Today I updated to Yoast SEO 7.4.1 – Immediately my postmeta table got filled with thousands of key “_yoast_wpseo_post_image_cache” value “a:0:{}”. When checking the html source I don’t get any og:image, og:image:width or og:image:height tags at all…
I know Facebook recommends larger images but I know a lot of bookshops that have the same images as I do – and their images gets visible when posted on Facebook. So I think the og:image-tags should be visible in the source code. And I don’t want my database cluttered with empty json-data.
Can you please shed some more light into what is going on and why your new feature is not working, and maby also how I should proceed in order to get my images in the html source (yes, I’ve read the article about image caching)
Edit: in one of my posts I have a featured image with size 200×261 pixels. In html I see og:image, og:image:height and og:image:width. BUT when checking the postmeta table there is no meta key _yoast_wpseo_post_image_cache for this post_id. So it seems cache is not working correctly in this scenario.
- This reply was modified 8 years, 2 months ago by niska.
I don’t want it. How do I disable cache?
Forum: Plugins
In reply to: [W3 Total Cache] Nginx.conf bugI have the same problem :-/
It says in the info in Yoast (/wp-admin/admin.php?page=wpseo_titles#top#taxonomies when I click on the question mark) that if I disable categories in search result then they will be excluded from sitempas AND will also have a noindex-robotmeta. I can not find any option to only exclude from sitempas.
@doccrispy My problem is that activating the xml sitemap crashes my website – because I have so many posts, categories and taxonomies. That’s why I try to limit the xml sitemap to the most necessary stuff. But with the current version of Yoast SEO I cannot do that. Disabling stuff from the sitemap will cause robots not to find it at all – because it is the same option.
- This reply was modified 8 years, 4 months ago by niska.
I want to enable xml sitemaps but I don’t want any categories and other taxonomies in the sitemap. However, I want categories and taxonomies to be found by search engines. This used to work – but now it does not.
I’m using Cloudflare and Wordfence with the option “Let Wordfence use the most secure method…”. Everything seems to be working fine. Should I switch to other option “Use the Cloudflare “CF-Connecting-IP” HTTP Header” or should I continue with my current settings that seems to be working?
Forum: Developing with WordPress
In reply to: fetch_feed() returns no rss dataThanks for your reply. I have marked this thread as solved since the solution was to install the php-xml parser module.
sudo apt-get install php-xml
SimplePie doesn’t throw an error in this scenario so that’s why it was hard to find the solution.
Forum: Developing with WordPress
In reply to: fetch_feed() returns no rss dataI solved it. php-xml parser module was missing.
Forum: Developing with WordPress
In reply to: fetch_feed() returns no rss dataThis code is working:
$c = curl_init(); curl_setopt($c, CURLOPT_URL, 'https://en.blog.wordpress.com/feed/'); curl_setopt($c, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($c);I think fetch_feed() is using curl – so why is not fetch_feed() working for me?
Please advice.
Forum: Developing with WordPress
In reply to: fetch_feed() returns no rss dataphpinfo says
allow_url_fopen = Off
cURL support = enabledNot sure if it matters or not.
Forum: Developing with WordPress
In reply to: fetch_feed() returns no rss dataThanks for reply. I have installed and activated health-check plugin. I couldn’t find anything problematic about my install, except it recommends me to update to PHP 7.2 (I’m using PHP 7.0.27). See info below.
I used the health-check troubleshoot mode to disable all plugins and themes – except the code above. However, my test code still doesnt output feed data.
Not sure what to do now. I’m pretty sure it is not my server that has problems, since curl from the command line is working. Also, downloading and installing plugins from within wp-admin is working. So fetching external data is working. For some reason external data can not be fetched using the fetch_feed() function.
Any ideas on how to proceed?
### WordPress ### Version: 4.9.4 Language: sv_SE Permalink structure: /%postname%/ Is this site using HTTPS?: Yes Can anyone register on this site?: No Default comment status: closed Is this a multisite?: No User Count: 474 Communication with WordPress.org: WordPress.org is reachable Create loopback requests: The loopback request to your site completed successfully. ### Drop-ins ### advanced-cache.php: Advanced caching plugin. ### Active theme ### Name: Version: 1.0.0 Author: Anonymous Author website: Undefined Parent theme: Twenty Sixteen Supported theme features: automatic-feed-links, title-tag, custom-logo, post-thumbnails, menus, html5, post-formats, editor-style, customize-selective-refresh-widgets, custom-background, custom-header, widgets ### Other themes (1) ### Twenty Sixteen (twentysixteen): Version 1.4 by the WordPress team ### Must Use Plugins (1) ### Health Check Disable Plugins: Version 1.1 ### Media handling ### Active editor: WP_Image_Editor_GD Imagick Module Version: Imagick not available ImageMagick Version: Imagick not available GD Version: bundled (2.1.0 compatible) Ghostscript Version: Unable to determine if Ghostscript is installed ### Server ### Server architecture: Linux 3.16.0-4-amd64 x86_64 PHP Version: 7.0.27-1~dotdeb+8.1 (Supports 64bit values) PHP SAPI: fpm-fcgi PHP max input variables: 1000 PHP time limit: 300 PHP memory limit: 256M Max input time: 60 Upload max filesize: 2M PHP post max size: 8M cURL Version: 7.38.0 OpenSSL/1.0.1t SUHOSIN installed: No Is the Imagick library available: No ### Database ### Extension: mysqli Server version: 5.5.5-10.1.31-MariaDB-1~jessie Client version: mysqlnd 5.0.12-dev - 20150407 - $Id: b6c5906d452ec590732a93b051f3827e02749b83 $ Database prefix: wp_ ### WordPress constants ### ABSPATH: /www/wp/public_html/ WP_HOME: Undefined WP_SITEURL: Undefined WP_DEBUG: Disabled WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG_DISPLAY: Enabled WP_DEBUG_LOG: Disabled SCRIPT_DEBUG: Disabled WP_CACHE: Enabled CONCATENATE_SCRIPTS: Undefined COMPRESS_SCRIPTS: Undefined COMPRESS_CSS: Undefined WP_LOCAL_DEV: Undefined ### Filesystem permissions ### The main WordPress directory: Writable The wp-content directory: Writable The uploads directory: Writable The plugins directory: Writable The themes directory: Writable The Must Use Plugins directory: WritableI solved it:
require_once ABSPATH . 'wp-admin/includes/bookmark.php';Also note that I have added this index, ALTER TABLE wp_options ADD INDEX (
autoload) – didn’t help. I have 5211 rows in wp_options table.