changwoo
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Gutenberg] Sidebar gone forever once hidden?To bring a hidden sidebar back, you need to add PluginSidebarMoreMenuItem to your javascript code.
var registerPlugin = wp.plugins.registerPlugin; var PluginSidebar = wp.editPost.PluginSidebar; var PluginSidebarMoreMenuItem = wp.editPost.PluginSidebarMoreMenuItem; // this line is added var Fragment = wp.element.Fragment; // this line is added ... registerPlugin('my-plugin-sidebar', { render: function () { return el( Fragment, {}, el( PluginSidebarMoreMenuItem, { target: 'my-plugin-sidebar' }, 'My Plugin Sidebar' ), el( PluginSidebar, { name: 'my-plugin-sidebar', icon: 'admin-post', title: 'My plugin sidebar' }, el('div', {className: 'plugin-sidebar-content'}, el(MetaBlockField, {fieldName: 'my_plugin_sidebar_meta_block_field'} ) ), ) ); } });
As of version 1.9.3, I can set up port 25 with STARTTLS. As I wrote, this is a bit weird setup but this my client’s policy I cannot change it at all.
Thank you, Post SMTP. I will keep supporting you.
Forum: Plugins
In reply to: [Social Media Auto Publish] Twitter issueSorry for my poor english, in advance.
The error might be related to your server’s certification setting.Warning: strpos() expects parameter 1 to be string, object given in /wordpress/time/public_html/wp-content/plugins/sns-auto-publish/api/twitteroauth.php on line 301 Catchable fatal error: Object of class WP_Error could not be converted to string in /wordpress/time/public_html/wp-content/plugins/sns-auto-publish/api/twitteroauth.php on line 370
348 error_log("\n\nlog by ivynet: \n\n" . print_r( $params, true ) ); 349 // encode params unless we're doing multipart 350 foreach ($params as $k => $v) { 351 $k = $this->request_settings['multipart'] ? $k : $this->safe_encode($k); 352 353 if (is_array($v)) 354 $v = implode(',', $v); 355 356 $v = $this->request_settings['multipart'] ? $this->multipart_escape($v) : $this->safe_encode($v); 357 358 // split parameters for the basestring and authorization header, and recreate the oauth1 array 359 if ($doing_oauth1) { 360 // if we're doing multipart, only store the oauth_* params, ignore the users request params 361 if ((strpos($k, 'oauth') === 0) || !$this->request_settings['multipart']) 362 $prepared_pairs_with_oauth[] = "{$k}={$v}"; 363 364 if (strpos($k, 'oauth') === 0) { 365 $oauth1[$k] = $v; 366 continue; 367 } 368 } 369 $prepared[$k] = $v; 370 $prepared_pairs[] = "{$k}={$v}"; 371 }
dumped $params:
Array ( [media[]] => WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 28: Connection timed out after 5000 milliseconds ) ) [error_data] => Array ( ) ) [oauth_consumer_key] => ... [oauth_nonce] => ... [oauth_signature_method] => HMAC-SHA1 [oauth_timestamp] => ... [oauth_token] => ... [oauth_version] => 1.0 [status] => ...
I’ve dumped the log and I think the error is caused by a connection error, which is deeply related to your server.
- This reply was modified 6 years, 11 months ago by changwoo.
Viewing 3 replies - 1 through 3 (of 3 total)