{"id":53,"date":"2008-06-10T15:39:39","date_gmt":"2008-06-10T05:39:39","guid":{"rendered":"http:\/\/yk.mynetscene.com\/blog\/?p=53"},"modified":"2008-10-09T18:36:22","modified_gmt":"2008-10-09T08:36:22","slug":"if-you-need-something-do-it-yourself","status":"publish","type":"post","link":"https:\/\/www.yktravelphoto.com\/blog\/if-you-need-something-do-it-yourself\/53","title":{"rendered":"If you need something, do it yourself &#8230;"},"content":{"rendered":"<p>From my professional experience I always knew that hardware vendors are always looking for opportunity to point fingers to someone else. Same happens to software developers.<\/p>\n<p>Last month I&#8217;ve upgraded WordPress to the latest release and updated all plugins as well, everything went fine except a plugin that crossposts to LiveJournal &#8211; ljxp. After activation, blog stopped working with weird error &#8230; the only solution to get it up again was to disable LJXP.<\/p>\n<p>Latest version of plugin didn&#8217;t solve the problem, so I decided to ask plugin author to have a look at it. As I expected, he quickly decided that it is a fault of another plugin that I&#8217;m using (Gengo &#8211; multilanguage support).<\/p>\n<p><!--more--><\/p>\n<p>After some research and reading WP plugin writing guides, problem was fixed.<\/p>\n<p>So, if you activated LJXP and have a error similar to this:<\/p>\n<p><span style=\"color: #99cc00;\">Fatal error: Call to undefined function get_currentuserinfo()<br \/>\nin \/home\/mynekor4\/public_html\/yk\/blog\/wp-content\/plugins\/gengo\/gengo.php<br \/>\non line 1555<\/span><\/p>\n<p>then replace the following line (in ljxp_crosspost.php)<\/p>\n<p><span style=\"color: #99cc00;\">load_plugin_textdomain(LJXP_DOMAIN);<\/span><\/p>\n<p>with<\/p>\n<p><span style=\"color: #99cc00;\">function ljxp_init ()<br \/>\n{<br \/>\nload_plugin_textdomain(LJXP_DOMAIN);<br \/>\n}<br \/>\nadd_action(\u00e2\u20ac\u2122init\u00e2\u20ac\u2122, \u00e2\u20ac\u02dcljxp_init\u00e2\u20ac\u2122);<\/span><\/p>\n<p>It looks like LJXP calls <span style=\"color: #99cc00;\">load_plugin_textdomain<\/span> too early, it should be called from the INIT hook.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From my professional experience I always knew that hardware vendors are always looking for opportunity to point fingers to someone else. Same happens to software developers. Last month I&#8217;ve upgraded WordPress to the latest release and updated all plugins as well, everything went fine except a plugin that crossposts to LiveJournal &#8211; ljxp. After activation, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[],"_links":{"self":[{"href":"https:\/\/www.yktravelphoto.com\/blog\/wp-json\/wp\/v2\/posts\/53"}],"collection":[{"href":"https:\/\/www.yktravelphoto.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yktravelphoto.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yktravelphoto.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yktravelphoto.com\/blog\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":1,"href":"https:\/\/www.yktravelphoto.com\/blog\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":258,"href":"https:\/\/www.yktravelphoto.com\/blog\/wp-json\/wp\/v2\/posts\/53\/revisions\/258"}],"wp:attachment":[{"href":"https:\/\/www.yktravelphoto.com\/blog\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yktravelphoto.com\/blog\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yktravelphoto.com\/blog\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}