Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Crazy Girl

    (@crazy-girl)

    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.

    Thread Starter Crazy Girl

    (@crazy-girl)

    Thank you very much for your help! ??

    Thread Starter Crazy Girl

    (@crazy-girl)

    strange… 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.

    Thread Starter Crazy Girl

    (@crazy-girl)

    Please 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 ??

Viewing 4 replies - 1 through 4 (of 4 total)