Hey something is wrong with my site, people cant comment on my posts please help!!!! jentenemedgullskjeen.com is my site!
alchymyth
The Sweeper
Posted 1 year ago #
you get an error message on single posts:
Fatal error: Call to undefined function yarpp_sql() in /home/alikri/public_html/wp-content/themes/imperial/imperial/single.php on line 92
have you lately edited single.php and added some code for 'yet_another-recent-posts-plugin' ?
you could paste the code of single.php into a http://wordpress.pastebin.com/ and post the link to it here - someone might be able to have a look at it and make some suggestions.m
alikri
Member
Posted 12 months ago #
i havent edited the single.php since i dont know to much about stuff like that! so i stay away from those "files".. but i posted it on the site you recomended and im hoping somebody can help me there so thank you!:)
esmi
Theme Diva & Mod
Posted 12 months ago #
You need to post the pastebin url for your single.php code here.
alchymyth
The Sweeper
Posted 12 months ago #
when you paste your code into a pastebin http://wordpress.pastebin.com/ and press 'submit'
- you see a new url (web-address) in the browser address bar at the top of the browser
- please copy this url and post it here so someone can have a look at your code.
the http://wordpress.pastebin.com/ is not a help site, just an exchange place to share code with others
alikri
Member
Posted 12 months ago #
http://wordpress.pastebin.com/de8p5E00
alchymyth
The Sweeper
Posted 12 months ago #
this code is calling a function that is no accessible in your current setup:
<?php
$results = $wpdb->get_results(yarpp_sql(array('post'),array()));
foreach ( (array) $results as $_post ) :
it is referring to 'yet-another-related-posts-plugin'
http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/
which you might not have installed and activated.
try to install/activate the plugin;
and let us know what happened ...
alikri
Member
Posted 12 months ago #
YEAHY:):):) it worked!!!! thanks alot!!!:D
alikri
Member
Posted 1 month ago #
Hey again! My blog has worked fine for a while now, but a couple of days ago the same problems i had earlier on came back!
I now get the same message
Fatal error: Call to undefined function yarpp_sql() in /home/alikri/public_html/wp-content/themes/imperial/imperial/single.php on line 92
But i have installed the yet another related posts plugin, i have tried to delete it and then install it all over again but nothing is working, so my readers can not comment any more!
Please help!
alikri
Member
Posted 1 month ago #
I found somebody with the same problem, this person wrote to person that made the plugin and got this answer: (I dont understand what this means)
Hello,
I have a problem with the plugin, there is some mistakes with it.
The error is : Fatal error: Call to undefined function yarpp_sql() in /homez.133/aquahome/www/wp-content/themes/beautywp/beautywp/single.php on line 84
Can you help me to resolve this problem please?
Thank you and have a nice day.
http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/
mitcho (Michael Yoshitaka Erlewine)
Member
Posted 1 day ago #
The issue is that your theme apparently was trying to use the yarpp_sql() function which was a private, internal function in YARPP. Accessing it directly is not performant and the wrong way to integrate with YARPP. The latest version of YARPP removed this function. I urge you to contact your theme maker and let them know that they should fix their theme to use YARPP properly.