Crazy Girl
Forum Replies Created
-
It is the problem of the PHP Memory Limit of your server configuration. If you can increase the PHP Memory Limit, you will not get this fatal error anymore.
Forum: Fixing WordPress
In reply to: How do I get fetch_feed working with url from databaseThank you very much for your help! ??
Forum: Fixing WordPress
In reply to: How do I get fetch_feed working with url from databasestrange… now when I am going on with the function (including if is_wp_error else ) it works. No error anymore.
Isn’t that strange? Without wp-error it doesnt work, with wp-error it works?What do you think is better for my $uri Use:
– get_bookmark_field(‘link_rss’, $my_link->link_id);
– esc_attr($my_link->link_rss);The only feed what still had an error was the blog.wordpress-deutschland.org/feed/, but this is because of default the wrong url is entered, as this feed has no trailing slash.
Forum: Fixing WordPress
In reply to: How do I get fetch_feed working with url from databasePlease have a short look to my function:
function tp_get_bm() {<br /> global $wpdb;<br /> $queryString = "<br /> SELECT * FROM $wpdb->links<br /> WHERE link_visible = 'Y'<br /> AND link_rss <>''<br /> Order by link_name";<br /> $my_links = $wpdb->get_results($queryString);<br /> include_once(ABSPATH . WPINC . '/feed.php');<br /> foreach ($my_links as $my_link) :<br /> $uri3= get_bookmark_field('link_rss', $my_link->link_id);<br /> echo $uri3;<br /> $uri1 = esc_attr($my_link->link_rss);<br /> echo $uri1;<br /> $uri2 = 'https://www.crazytoast.de/feed/';<br /> echo $uri2;<br /> $rss = fetch_feed($uri2);<br /> $rss_items = $rss->get_items( 0, $rss->get_item_quantity(1) );<br /> endforeach;<br /> }
It only works with $uri2. The echo of $uri1 and $uri3 results the same than $uri2. You can see it on my live testing side URL officetrend.de (left sidebar below tp bm).
It seems to be a mistake in formating, but I do not now how should I format my URL coming from database so that fetch_feed does not have problems with it ??