Support » Plugin: Link Library » Link Library on the localhost

  • Under the Vertrigo WAMP.
    Since installatio the 6 … version of the link Library, a blank page with such message is displayed:
    Not Found
    The requested URL /darz-bor.info/katalog-przyrodniczych-stron-www/ was not found on this server.

    Pressing the [Re-import liks] button makes the php displaying this:

    ( ! ) Warning: Invalid argument supplied for foreach() in C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-content\plugins\yet-another-stars-rating\freemius\includes\managers\class-fs-admin-menu-manager.php on line 513
    ( ! ) Warning: Cannot modify header information – headers already sent by (output started at C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-content\plugins\yet-another-stars-rating\freemius\includes\managers\class-fs-admin-menu-manager.php:513) in C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-admin\includes\misc.php on line 1124
    ( ! ) Warning: Cannot modify header information – headers already sent by (output started at C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-content\plugins\yet-another-stars-rating\freemius\includes\managers\class-fs-admin-menu-manager.php:513) in C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\pluggable.php on line 1219

    Full tect of these messages is here:
    http://darz-bor.info/pliki/temp/localhost.htm

    It is worth to note, that paths beginning wit c:// are used instead of http://localhost/.

    Versions 5 … were working on localhost.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Localhost is not very important, but this behavior is incorrect.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    All of the messages that you are showing here are related to a different plugin. First obvious question, if you deactivate Link Library and try to save options in another plugin, do you still get these warnings? They might just not appear on-screen, but might still happen. A better way to check warnings is to activate the WP_DEBUG_LOG option in your wp-config.php file. Then, a file called debug.log will be created in your site’s wp-content folder. When this is in place, deactivate Link Library, and save another plugin’s settings, seeing if new entries still appear in the log.

    Oh my, Yet another Star Rating interferes again with Link Library configuration. But theoretically it should be absent in configuration forms of the Link Library.
    But the [Re-import liks] button works in the internet (not the localhost). So this is something new.

    Options in other plugins seem to work well, and most of options in the Link Library. Except “Global Configuration” / “Library Configurations”.

    I changed
    define('WP_DEBUG', false);
    from false to true in the localhost, but the debug.log did not appear. Thre is only such file in the link-library category, containing something not important probably:

    [SOCIAL - 2013-01-17 03:00:41 - 173.179.80.106] Checking system CRON
    [SOCIAL - 2013-01-17 03:00:42 - 173.179.80.106] Running request: Settings/action_index

    However such new information is displayed above
    ( ! ) Warning: Invalid argument supplied ...
    after pressing the [Re-import liks] button:

    Błąd bazy danych WordPressa: [Unknown column 'le.link_addl_rel' in 'field list']
    SELECT distinct l.link_id as import_link_id, l.link_name, l.link_url, l.link_rss, l.link_description, l.link_notes, GROUP_CONCAT( t.name ) as cat_name, l.link_visible, le.link_second_url, le.link_telephone, le.link_email, le.link_reciprocal, l.link_image, le.link_textfield, le.link_no_follow, l.link_rating, l.link_target, l.link_updated, le.link_visits, le.link_submitter, le.link_submitter_name, le.link_submitter_email, le.link_addl_rel, le.link_featured, le.link_manual_updated, l.link_owner
    FROM wp_terms t LEFT JOIN wp_term_taxonomy tt ON (t.term_id = tt.term_id) LEFT JOIN wp_term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) LEFT JOIN wp_links l ON (tr.object_id = l.link_id) LEFT JOIN wp_links_extrainfo le ON (l.link_id = le.link_id)
    WHERE tt.taxonomy = 'link_category' GROUP BY l.link_id

    During changing options on localhost
    ( ! ) Warning: Invalid argument supplied ...
    messages are displayed.

    The debug.log did not appear in the internet (not localhost) wp-content folder either. During changing Link Library options what causes:
    Warning: Invalid argument supplied for foreach() ...
    So I reverted
    define(‘WP_DEBUG’, false);`
    to true.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    The variable name is WP_DEBUG_LOG. It is not in your config file by default. You need to add a new line for it.

    But how this line containg WP_DEBUG_LOG looks like and where exactly should be inserted ?

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    define('WP_DEBUG_LOG', true);

    put it just under the line:

    define('WP_DEBUG', true);

    Both need to be set to true for the log file to be created. If you want to get a log file, but not see warnings on the site, you can define 3 variables:

    define('WP_DEBUG', true);
    define('WP_DEBUG_DISPLAY', false);
    define('WP_DEBUG_LOG', true);

    Something wants link_addl_rel field not existing in the links_extrainfo table:
    [Unknown column 'le.link_addl_rel' in 'field list']
    And why it wants in case of version 6 ? Maybe this field is needed for conversion but cant be created for some reason ?

    Yes, the debug.log appeared after pressing the [Re-import liks] button:

    [13-Jul-2018 17:02:52 UTC] Błąd Unknown column 'le.link_addl_rel' in 'field list' bazy danych WordPressa podczas wykonywania zapytania SELECT distinct l.link_id as import_link_id, l.link_name, l.link_url, l.link_rss, l.link_description, l.link_notes, GROUP_CONCAT( t.name ) as cat_name, l.link_visible, le.link_second_url, le.link_telephone, le.link_email, le.link_reciprocal, l.link_image, le.link_textfield, le.link_no_follow, l.link_rating, l.link_target, l.link_updated, le.link_visits, le.link_submitter, le.link_submitter_name, le.link_submitter_email, le.link_addl_rel, le.link_featured, le.link_manual_updated, l.link_owner FROM wp_terms t LEFT JOIN wp_term_taxonomy tt ON (t.term_id = tt.term_id) LEFT JOIN wp_term_relationships tr ON (tt.term_taxonomy_id = tr.term_taxonomy_id) LEFT JOIN wp_links l ON (tr.object_id = l.link_id) LEFT JOIN wp_links_extrainfo le ON (l.link_id = le.link_id) WHERE tt.taxonomy = 'link_category' GROUP BY l.link_id  wysłanego przez require_once('C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-load.php'), require_once('C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-config.php'), require_once('C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, link_library_plugin->ll_update_60, link_library_60_update
    
    [13-Jul-2018 17:02:52 UTC] PHP Warning:  Invalid argument supplied for foreach() in C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-content\plugins\yet-another-stars-rating\freemius\includes\managers\class-fs-admin-menu-manager.php on line 513
    
    [13-Jul-2018 17:02:52 UTC] PHP Stack trace:
    
    [13-Jul-2018 17:02:52 UTC] PHP   1. {main}() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-admin\admin-post.php:0
    
    [13-Jul-2018 17:02:52 UTC] PHP   2. do_action() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-admin\admin-post.php:29
    
    [13-Jul-2018 17:02:52 UTC] PHP   3. WP_Hook->do_action() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\plugin.php:453
    
    [13-Jul-2018 17:02:52 UTC] PHP   4. WP_Hook->apply_filters() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\class-wp-hook.php:310
    
    [13-Jul-2018 17:02:52 UTC] PHP   5. call_user_func_array:{C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\class-wp-hook.php:286}() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\class-wp-hook.php:286
    
    [13-Jul-2018 17:02:52 UTC] PHP   6. Freemius->_add_trial_notice() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\class-wp-hook.php:286
    
    [13-Jul-2018 17:02:52 UTC] PHP   7. FS_Admin_Menu_Manager->add_counter_to_menu_item() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-content\plugins\yet-another-stars-rating\freemius\includes\class-freemius.php:18673
    
    [13-Jul-2018 17:02:52 UTC] PHP   8. FS_Admin_Menu_Manager->find_top_level_menu() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-content\plugins\yet-another-stars-rating\freemius\includes\managers\class-fs-admin-menu-manager.php:735
    
    [13-Jul-2018 17:02:52 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-content\plugins\yet-another-stars-rating\freemius\includes\managers\class-fs-admin-menu-manager.php:513) in C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-admin\includes\misc.php on line 1124
    
    [13-Jul-2018 17:02:52 UTC] PHP Stack trace:
    
    [13-Jul-2018 17:02:52 UTC] PHP   1. {main}() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-admin\admin-post.php:0
    
    [13-Jul-2018 17:02:52 UTC] PHP   2. do_action() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-admin\admin-post.php:29
    
    [13-Jul-2018 17:02:52 UTC] PHP   3. WP_Hook->do_action() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\plugin.php:453
    
    [13-Jul-2018 17:02:52 UTC] PHP   4. WP_Hook->apply_filters() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\class-wp-hook.php:310
    
    [13-Jul-2018 17:02:52 UTC] PHP   5. call_user_func_array:{C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\class-wp-hook.php:286}() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\class-wp-hook.php:286
    
    [13-Jul-2018 17:02:52 UTC] PHP   6. wp_admin_headers() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\class-wp-hook.php:286
    
    [13-Jul-2018 17:02:52 UTC] PHP   7. header() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-admin\includes\misc.php:1124
    
    [13-Jul-2018 17:02:52 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-content\plugins\yet-another-stars-rating\freemius\includes\managers\class-fs-admin-menu-manager.php:513) in C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\pluggable.php on line 1219
    
    [13-Jul-2018 17:02:52 UTC] PHP Stack trace:
    
    [13-Jul-2018 17:02:52 UTC] PHP   1. {main}() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-admin\admin-post.php:0
    
    [13-Jul-2018 17:02:52 UTC] PHP   2. do_action() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-admin\admin-post.php:69
    
    [13-Jul-2018 17:02:52 UTC] PHP   3. WP_Hook->do_action() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\plugin.php:453
    
    [13-Jul-2018 17:02:52 UTC] PHP   4. WP_Hook->apply_filters() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\class-wp-hook.php:310
    
    [13-Jul-2018 17:02:52 UTC] PHP   5. call_user_func_array:{C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\class-wp-hook.php:286}() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\class-wp-hook.php:286
    
    [13-Jul-2018 17:02:52 UTC] PHP   6. link_library_plugin_admin->on_save_changes_general() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\class-wp-hook.php:286
    
    [13-Jul-2018 17:02:52 UTC] PHP   7. wp_redirect() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-content\plugins\link-library\link-library-admin.php:1932
    
    [13-Jul-2018 17:02:52 UTC] PHP   8. header() C:\Users\user name\Documents\My Web Sites\darz-bor.info\wp-includes\pluggable.php:1219
    • This reply was modified 1 year, 4 months ago by  darekk2.

    During configuration changing in the internet (not localhost), debug.log did not appear.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Can you try replacing your link-library-update-60.php file with the following version?

    https://gist.githubusercontent.com/ylefebvre/3d6e0552324c039c6279f6d1cb834103/raw/8ffc7ff57386e23e9cd95e35ad959422fff24df7/link-library-update-60.php

    I think this will get rid of the error on re-import.

    This line disappeared:
    Unknown column 'le.link_addl_rel'
    but all other errors in webbowser (( ! ) Warning: Invalid argument supplied ...) and lines in debug.log remain.

    • This reply was modified 1 year, 4 months ago by  darekk2.
    • This reply was modified 1 year, 4 months ago by  darekk2.
    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Ok, now the thing to check is if you deactivate link library, do you still see lines in the debug.log file about these warnings? If so, then it’s not related to link library.

    When the Link Library is deactivated, it disappears and the [Re-import liks] button can’t be pressed, because there is no such button.

    But I deactiveted the Yet Another Star Rating. Pressing the [Re-import liks] button (or options change) does not trigger those error messages. However links are not imported still.

    And the message The requested URL ... was not found on this server. is displayed still instead of the link library.

    (everything verified on the localhost)

    • This reply was modified 1 year, 4 months ago by  darekk2.
    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Two things:

    – I know that re-import links is not there when you deactivate Link Library. But if you save another plugin’s settings and check the logs, does YASR still produce these warnings in the log file.

    – For the re-import not working through, it looks like you might not have been running the most recent version of Link Library 5.9 before updating to 6.0, since the error message talks about a column I had added recently. Remove the 6.0 version and install the last version of 5.9 (https://downloads.wordpress.org/plugin/link-library.LinkLibrary_5.9.15.8.zip). Then, deactivate and reactivate that version to make sure that your tables are up-to-date. Then, go back to latest 6.0 version and try re-import.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Link Library on the localhost’ is closed to new replies.