• Resolved jchopkins

    (@jchopkins)


    SO, I decided to try out Link Library to see how it would work with my site. After activating V. 6.0.4 and deciding it was not useful, I deactivated it, at which point, my normal WP Dashboard item “Links” is gone completely … How to get them back???

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi

    Add the following to your functions.php

    add_filter( 'pre_option_link_manager_enabled', '__return_true' );

    That should reactivate the legacy Link Manager.

    Brgds
    Ivo

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Alternatively, you could install the Link Manager plugin. The code it contains is exactly the code above, but if the WordPress development team decides to eventually remove the Link Manager code from core WordPress, then it would be moved into that plugin, so you would be more future-proof that way.

    Thread Starter jchopkins

    (@jchopkins)

    So, is it such that the install of Link Library rewrites the functions.php file, erasing this string? And will this edit persist with version changes of WP?

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    No, what the latest version of Link Library does is to update an option in the options table:

    update_option( ‘link_manager_enabled’, 0 );

    This option was set to 1 for old installations of WordPress, before the link manager was hidden in version 3.5.

    If you add the line in the functions.php file, it will remain.

    Hello, I have a similar issue. I updated link manager a couple of weeks ago and it failed, then my website ‘white screened’ and I had to disable the plug-in via Sql db.
    I was then able log to back in and a week later I successfully updated to link library 6.0.41. However, I’ve found all my links have gone, but I can see them in the wp-link table i in DB. Is there an easy way to get them back on my site or do I have to input them all manually?
    Thanks in advance. Peter Robinson.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    You should go to the General Options section of Link Library and click on the re-import links button.

    Hello Yannick, Thank you so for your prompt reply. When I Click on the ‘General Options’ tab I just get a white screen. All the other tabs work OK. Shall I uninstall and reinstall it?
    Sorry to trouble you.

    Best Regards,
    Pete Robinson.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    No, reinstalling would not help. Can you activate the WP_DEBUG option in your wp-config.php file and see if you get a error message instead of just a white screen.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Hello, Thank you for your advice. I enabled debugging and it told me that a wp_enqueue_script was called incorrectly.
    “Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/sites/crewephotosoc.com/public_html/wp-includes/functions.php on line 4161 Notice: wp_enqueue_script was called incorrectly.”
    If you need to see it you can find it here: https://www.crewephotosoc.com/download/Debug_Link_Library.txt
    I also replaced the link-library-update-60.php file and I’ve also updated link-Library to the latest version of 6.0.45. However, I still get a white screen when I click on the General options tab.
    Thank you for the time and trouble you’ve taken.
    Peter Robinson.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Hi Pete, this is just a notice. Would not cause a white screen to display when options are displayed. What would normally cause this is an error or fatal error.

    Please try upgrading to version 6.0.46. I did some work work around the update routine, which could be part of the issue.

    Also, which version of PHP do you have installed on your server?

    Hello Yannick. Thanks for your help again. I’m running on version 5.6 of PHP.
    I’ve successfully upgraded to link-library 6.0.46, but unfortunately I still get the white screen when I click on the ‘General Options’ tab. Is there anywhere I can see what the fatal error is?
    I don’t have too many links so could input them manually, but it would be useful to be able to restore the ones from the wp-links table.

    Thanks for your time and trouble.
    Pete Robinson.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Hi Pete, could you export your library configuration settings and send them to me via e-mail? ylefebvre at gmail

    I want to take a look to see if anything is strange in them.

    Hi,
    I have a similar problem. I installed Link Library and while I can see categories there are no links there at all. I’ve tried REIMPORT but nothing happens. I had lots of links and now I can’t see them at all. If I deactivate the plugin there is no links widget anymore on the menu anymore. Would it not make sense to put the previous widget back when the plugin is deactivated? Not sure how to fix this.The server I’m using is running PHP 5.6.38

    • This reply was modified 5 years, 4 months ago by jallas.
    Plugin Author Yannick Lefebvre

    (@jackdewey)

    To get the old widget back, you can install the WordPress Link Manager plugin (https://codex.wordpress.org/Links_Manager)

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘WP Links gone after Link LIbrary install’ is closed to new replies.