When we go to the “edit page” it is giving blank page and I started debug log which states
Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, null given in your-project/wp-content/plugins/bitly-main/includes/class-wp-bitly-metabox.php:138
It it public function display_metabox($post, $args) this function which is creating issue.
]]>Within the uninstall.php
file, replace the wpbitly_uninstall()
with the following code:
To the plugin author: please add this fix. I cannot see a public repository for me to contribute. Thank you.
/**
*
* @return void
*/
function wpbitly_uninstall() {
// Delete associated options
if (defined('WPBITLY_OPTIONS') && constant('WPBITLY_OPTIONS')) {
delete_option(constant('WPBITLY_OPTIONS'));
}
if (defined('WPBITLY_AUTHORIZED') && constant('WPBITLY_AUTHORIZED')) {
delete_option(constant('WPBITLY_AUTHORIZED'));
}
// Grab all posts with an attached shortlink
$posts = get_posts('numberposts=-1&post_type=any&meta_key=_wpbitly');
// And remove our meta information from them
foreach ($posts as $post){
delete_post_meta($post->ID, '_wpbitly');
}
}
wpbitly_uninstall();
You can then proceed to uninstall safely.
Kind regards,
Michael
Is there away to use a shortcode to put bitly links inside of the post?
[bitly_shortcode] would display bitly.link/34taeregla
]]>I installed the plugin and completed the authorization process but all my external links remain the same. What is the point of using a link shortener plugin if it doesn’t shorten all external links automatically?
]]>I want to uninstall this plugin, but the message uninstalling just continues indefinitely.
Could you advise a way to uninstall?
Thanks
I had to rollback the plugin to 2.5.2 version, after updating to 2.7.1, because the plugin stopped working. It stopped showing the custom bit.ly short URL on my site.
Anyone else experienced the same? What should I do?
Hi – Your plugin seems like a great idea in theory but in practice for me and many others it seems it simply doesn’t function – I have followed your installation instructions implicitly and continue to get ‘Failed to retrieve access token‘ I have also created a token from within Bitly and pasted it into the plugin setting thinking that this may work as a plan B, but no, the same error – can you please advise on my next move – is this plugin compatible with the latest version of WordPress? I also notice no reply to someone with the same problem in this forum – is this forum still active? I must say I am surprised with the lack of attention to enquirers submitting problems, especially from such a major company. I wait in anticipation.
]]>I’m getting this error message when I click the Authorize button: “ERROR: Failed to retrieve access token.” Could you help me, please?
]]>Hi developer,
I already enable the plugin of bitly and also create an account for it. But, when I click the social link share button, it fails to create thr shortcut link.
Could you help me to check what’s going on?
I have checked the debug log.
Thanks for the help.
]]>When I uninstall the addin, there is this error – can you please fix?
[Sat Sep 18 03:46:32.796642 2021] [php:error] [pid 30811:tid 140467039631104] PHP Fatal error: Uncaught Error: Undefined constant "WPBITLY_OPTIONS" in /opt/httpd/htdocs/wp-content/plugins/wp-bitly/uninstall.php:19\nStack trace:\n#0 /opt/httpd/htdocs/wp-content/plugins/wp-bitly/uninstall.php(31): wpbitly_uninstall()\n#1 /opt/httpd/htdocs/wp-admin/includes/plugin.php(1248): include_once('/opt/httpd/htdo...')\n#2 /opt/httpd/htdocs/wp-admin/includes/plugin.php(965): uninstall_plugin('wp-bitly/wp-bit...')\n#3 /opt/httpd/htdocs/wp-admin/includes/ajax-actions.php(4598): delete_plugins(Array)\n#4 /opt/httpd/htdocs/wp-includes/class-wp-hook.php(303): wp_ajax_delete_plugin('')\n#5 /opt/httpd/htdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)\n#6 /opt/httpd/htdocs/wp-includes/plugin.php(470): WP_Hook->do_action(Array)\n#7 /opt/httpd/htdocs/wp-admin/admin-ajax.php(187): do_action('wp_ajax_delete-...')\n#8 {main}\n thrown in /opt/httpd/htdocs/wp-content/plugins/wp-bitly/uninstall.php on line 19, referer: https://xxx.com/wp-admin/plugins.php?plugin_status=all&paged=1&s
hot
]]>Hi,
I installed the plugin to try it out but got a fatal error on the writing settings page:
An error of type E_ERROR was caused in line 307 of the file .../wp-content/plugins/wp-bitly/includes/class-wp-bitly-settings.php. Error message: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in .../wp-content/plugins/wp-bitly/includes/class-wp-bitly-settings.php:307
Stack trace:
...public_html/wp-content/plugins/wp-bitly/includes/class-wp-bitly-settings.php(176): Wp_Bitly_Settings->get_group_options()
.../public_html/wp-admin/includes/template.php(1737): _f_settings_field_default_group()
.../public_html/wp-admin/includes/template.php(1695): do_settings_fields()
.../public_html/wp-admin/options-writing.php(233): do_settings_sections()
#4 {main}
thrown
So I disabled the plugin — but it will NOT delete.
]]>Hi guys!
I recently changed my website’s domain from https://www.threeringsonline.com to https://www.thr33rings.com which has rendered ALL of the short codes generated by the Bitly plugin useless. The plugin is on my WordPress website, hosted on Dreamhost.
I had hoped that they would all re-propagate, but no joy!! I even unlinked the Bitly account in the plugin homepage, updated the domain and reconnected, but all the old links are still there. It’s not generating new ones!
I have the free Bitly account and on my account homepage on the Bitly website I can’t delete any of the old codes! I can only seem to hide them!
Any help would be greatly appreciated ??
Thank you ??
Hi Team –
Thanks for making an effort and updated plugin to use V4 bitly API.
After upgrading WordPress is not able to find function wpbitly_shortlink
As you notice here, this code is failing when I put this check in functions.php:
if (function_exists(‘wpbitly_shortlink’))
Any quick fix to make this function available?
]]>Looking at the Bitly settings page of the admin (wp-admin/options-writing.php), I see two PHP notices and one warning in the “Default Organization” section:
Notice: Undefined variable: output in /var/www/html/wp-content/plugins/wp-bitly/includes/class-wp-bitly-settings.php on line 155
Notice: Trying to access array offset on value of type bool in /var/www/html/wp-content/plugins/wp-bitly/includes/class-wp-bitly-settings.php on line 362
Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/wp-content/plugins/wp-bitly/includes/class-wp-bitly-settings.php on line 362
I am not having issues generating shortlinks. Just wanted to report these PHP warnings that appear when WP_DEBUG is enabled.
I’m running PHP 7.4.3 on WordPress 5.6.
Thanks!
]]>Boa tarde. Primeiramente que bom que vocês retornaram com o plugin.
Havia desativado ele por ter sido descontinuado, foi quando vi a mensagem de atualiza??o e resolvi ativar novamente e utilizar, só que estou com um problema.
Agora o plugin está gerando automaticamente os links bitly para postagens antigas que n?o tinham link bitly gerado e para mim isso n?o é legal. E as vers?es anteriores do plugin n?o fazia isso.
Existe alguma maneira do plugin só gerar o link bitly quando uma postagem for publicada ou atualizada?
]]>Once you install and activate the plugin, where do you go to link it with Bitly? I can’t find it in my menu.
]]>Hi Developer,
When I localized this plugin to zh_TW, I found some L10N issues as the following.
Incorrect Text-Domain Issue
includes\class-wp-bitly-settings.php, line 72, 105 and 218.
wpbitly
should be wp-bitly
.
The string should be localizable
includes\class-wp-bitly-settings.php, line 63
Please make the string WP Bitly Shortlinks to be localizable.
Regards,
Alex Lion
Not a support topic — just want to thank clint.s for bringing back one of my favorite WordPress plugins.
It’s working again. It even works with my custom Bit.ly domain.
Hoping Jetpack and other sharing plugins will utilize it. ??
]]>Hi,
I saw that the plugin has been taken over by clint.s and looking at the diffs it looks like he did a big job on it.
First of all I would like to thank you, clint.s, for your work!
Then, before updating, I would like to know if somebody already tested it in their WP installations and if I should be aware of anything before updating (i.e. will I need to re-authenticate with bitly new API? should I pay attention to something specific while updating? etc.)
Thanks!
]]>Hello,
I changed my shortlink’s domain.
How can I regenerate bitly-shortlink of a specific page?
Thanks
Is there an alternative to this plugin?
]]>Bitly is ending support for V2/V3 of its API on March 1 (https://support.bitly.com/hc/en-us/articles/360004395631). I’ve been using this wonderful plugin with my custom domain for years and am curious if that forced upgrade to V4 will break the plugin (I’m aware it’s been discontinued, but I’m still able to use it).
I am admittedly inexperienced when it comes to APIs, and their help article wasn’t very helpful.
Any insight would be greatly appreciated.
]]>When trying to Connect with Bitly and Authorize, I get this message: This site can’t be reached. (api.temeritystudios.com took too long to respond.)
]]>I have requested from the plugins team that this plugin be removed from the repository, with no response. The initial request was almost two months ago now and I have received no feedback. I will be immediately disabling a critical piece of the authentication process that I have been hosting at my own cost for the past year.
Anyone currently using the plugin shouldn’t see any change. Any new installs of the plugin will fail to authorize.
If anyone would like to take over development of this plugin please feel free to contact me.
]]>First let me say what a great plugin WP BItly is – works right out of the box!
The only irritating thing is the message, which appears at the top of all pages in the backend:
WP Bitly is almost ready! Please visit the settings page to configure WP Bitly
How do I remove this?
Thanks
]]>Hey there,
I started using the_shortlink and echoing it to show the shortlink on product pages, and it works great. It shows the custom bitly URL that I use — however, is there any way for it to display the customized version of the link?
For example: exmpl.co/Dj15ya would be the default one generated. Sometimes I go into Bitly and customize the link, to say exmpl.co/TShirt
The first, default link is what’s shown. Is there a way to show the customized one? Off the top of my head it seems like there may not be a way to do that, but Bitly is quite large and I’m sure they’ve had this question come up about their API.
Thanks for your time!
]]>Dear Support,
I was using a custom short domain on my blog. I have changed the custom domain to a new custom domain name.
However, quite a lot of unpublished content has been created which has the old short domain. Is there a way to update the created content with the new short domain before it is published ?
Many thanks
Robert
[Moderator note: Please, No bumping.
]]>I have only posts/pages/products added for the plugin. Every day loads of links show up in BitLY that look like this:
https://mydomain.com/category-login-XXXXXXX/
where random numbers are appended. What is causing and creating these from the plugin side?
]]>Hi is there a way with PHP to get only the raw bitly URL for the post e.g. “https://bit.ly/2v37Y2d” as a variable?
many thanks,
Andrew