arrowebs
Forum Replies Created
-
Hi Julka,
I have version 0.21.1 and I get similar errors
PHP Fatal error: Call to a member function getConfigs() on a non-object wp-content/plugins/addthis/addthis_addjs_new.php on line 57
Do I have to update the plugin outside of wp-cli?
Thanks,
Forum: Fixing WordPress
In reply to: connection reset wordpress 4.0Well.. it’s really surprising that this simple stuff hasn’t been addressed yet. A lot of folks won’t even know if this is an issue. Some links do work and others don’t. Thanks zamster100 for the tip and it worked like charm.
Not sure if there’s any security issues open on the older version though.
Forum: Fixing WordPress
In reply to: Auto upgrade failed 2.8.3 to 2.8.4renaming the wp-content/upgrade to something else worked for me as well.
Thanks for sharing!
Forum: Fixing WordPress
In reply to: How to display comments for multiple posts?This did not work for me.
The only thing that I see here is
comments_template();
But that doesn’t get it. I guess it has to do something with making it a single post but not sure.Help appreciated.
Forum: Themes and Templates
In reply to: Syntax for page_template using wp_insert_postLooks like the
get_page_templates()
is not available all the times. I managed to work around by not setting thepage_template
at the first time but just calling theupdate_post_meta()
with the$post_ID
as soon as it returned it on insert.I posted the code for this elsewhere on the forum on a similar stuff.
Forum: Plugins
In reply to: Trouble with page_template key for wp_insert_postNot sure if it’s gonna help you now. But the issue is still there probably the admin includes are not completely done when you’re at the theme levels or for that matter page template level.
Make sure that you set the
post_type
andpost_parent
correctly.Do not set the
page_template
now.$my_post_id = wp_insert_post($prop_page); if($my_post_id) { update_post_meta($my_post_id, '_wp_page_template', 'page-proposal.php'); }
should do the trick.