WordPress.org

Forums

Jetpack by WordPress.com
[resolved] Cannot find a library with slug tonesque (27 posts)

  1. This probably can be chalked up to something I am doing wrong but here goes.

    I've just noticed this error which is preventing me from getting to my network admin page (I'm running multisite).

    PHP Fatal error:  Cannot find a library with slug tonesque. in /path/to/my/install/wp-content/plugins/jetpack/require-lib.php on line 22

    Which is odd because I've got

    jetpack/modules/tonesque.php
    jetpack/_inc/lib/tonesque.php

    I can get past this error by commenting out line 22 in jetpack/require-lib.php or as I like to call it A Really Bad Idea™ on my part. ;)

    When I do that I do not see any errors in my log but I may just not be using that library.

    https://wordpress.org/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    I've been trying to reproduce the problem, without any success.

    Could you check if Jetpack is active on the main site of the network? If it is, could you let me know if Jetpack is network-activated?

    Thanks!

  3. Jetpack is active on the main site and is network activated.

    *Drinks more coffee* ;)

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Hm. I'm going to have to bring out the big guns on this. I've asked one of the developers to take a look, and I'll get back to you as soon as I have some news.

  5. Take your time! I've commented out the trigger_error and that seems to work for me.

    https://plugins.trac.wordpress.org/browser/jetpack/tags/2.9/require-lib.php#L22

    The admin pages and functionality aren't complaining about missing libraries (meaning nothing's broken that I can tell). I'm convinced there's some odd setting on my installation that's the culprit.

  6. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    According to the experts, this could be a permissions issue. Could you try to create a small plugin to check if the tonesque.php file is properly readable?

    You can upload and install this plugin I quickly put together, it will output a message in your footer to tell you if the file is readable or not:
    https://cloudup.com/cKET0dvWlaX

    Here is the code:
    https://gist.github.com/jeherve/9354187

    Let me know how it goes.

  7. Sorry for not getting back to you sooner. I installed the plugin and in my footer I got this text in each of my sites (I network activated the plugin).

    The file is readable

    For giggles I also added these 2 lines.

    add_action( 'admin_notices', 'jeherve_check_tonesque_readable' );
    add_action( 'network_admin_notices', 'jeherve_check_tonesque_readable' );

    And in the dashboard my sites as well as the network dashboard I got the same text in the notice area.

    Really weird. ;)

  8. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Thanks!

    Could you let me know what other plugins are currently active on your network, so I can try to reproduce on my end?

  9. pymoo
    Member
    Posted 1 year ago #

    Hello,

    Same issue here! Have you found the way to solve it?

    Thanks in advanced.

  10. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    @pymoo Could you try the plugin I mentioned above, let me know the output, and then let me know what other plugins you use on your site?

    Thanks!

  11. pymoo
    Member
    Posted 1 year ago #

    Thanks Jeremy,

    It's not a permission problem. I'm running JetPack in a multisite WordPress. All was working fine until I update plugins yesterday (JetPack Included) the plugins updated was:
    - Better WP Security
    - Contact Form 7
    - Google Maps Widget
    - Slideshow Gallery

  12. WebFactory
    Member
    Posted 1 year ago #

    I can confirm no significant changes were made to GMW in the latest update. Doesn't mean it's not causing problems but ... :)

  13. Could you let me know what other plugins are currently active on your network, so I can try to reproduce on my end?

    *Looks*

    On the Network Admin I have these plugins network activated.

    Admin Color Schemes - http://wordpress.org/plugins/admin-color-schemes/
    Advanced Automatic Updates - http://wordpress.org/plugins/automatic-updater/
    Akismet - http://wordpress.org/plugins/akismet/
    Hotfix - http://wordpress.org/plugins/hotfix/
    Jetpack by WordPress.com - http://wordpress.org/plugins/jetpack/
    Sitewide Comment Control - http://wordpress.org/plugins/sitewide-comment-control/
    Spam Destroyer - http://wordpress.org/plugins/spam-destroyer/

    On the primary blog I have these active.

    Basic Comment Quicktags - http://wordpress.org/plugins/basic-comment-quicktags/
    Clean Archives Reloaded - http://wordpress.org/plugins/clean-archives-reloaded/
    Clicky for WordPress - http://wordpress.org/plugins/clicky/
    FD Feedburner Plugin - http://wordpress.org/plugins/feedburner-plugin/
    Google Publisher Plugin - http://wordpress.org/plugins/google-publisher/
    Limit Login Attempts - http://wordpress.org/plugins/limit-login-attempts/
    SyntaxHighlighter Evolved - http://wordpress.org/plugins/syntaxhighlighter/
    WP-PluginsUsed - http://wordpress.org/plugins/wp-pluginsused/
    YOURLS: WordPress to Twitter - http://wordpress.org/plugins/yourls-wordpress-to-twitter/

    On one blog in the network:

    Cookies for Comments - http://wordpress.org/plugins/cookies-for-comments/
    DsgnWrks Instagram Importer - http://wordpress.org/plugins/dsgnwrks-instagram-importer/
    Easy keyboard shortcut navigation - http://wordpress.org/plugins/easy-keyboard-shortcut-navigation/
    Instagrate to WordPress - http://wordpress.org/plugins/instagrate-to-wordpress/
    Twitter Cards Meta - http://wordpress.org/plugins/twitter-cards-meta/
    YOURLS: Short URL Widget - http://wordpress.org/plugins/yourls-shorturl-widget/
    YOURLS: WordPress to Twitter - http://wordpress.org/plugins/yourls-wordpress-to-twitter/

    On another other blog in the network (which repeats like that on other blogs in the network):

    Cookies for Comments - http://wordpress.org/plugins/cookies-for-comments/
    Twitter Cards - http://wordpress.org/plugins/twitter-cards/

    On a side note, I've come up with a great idea for a Network Diagnostics plugin. ;)

    Also I can't recall why I installed some of this stuff...

  14. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Thanks you both for the extra details.

    We'll look into it more, and I'll get back to you as soon as I have some news.

  15. George Stephanis
    Automattic Lead Code Monkey
    Plugin Author

    Posted 1 year ago #

  16. Sweet! Much thanks as always. ;)

  17. Um, it appears that that fix broke more things...

    I'm now getting

    PHP Fatal error:  require_once(): Failed opening required '/path/to/wp-content/plugins/jetpack/class.jetpack-twitter-cards.php' (include_path='.:/usr/share/php:/usr/share/pear') in /path/to/wp-content/plugins/jetpack/class.jetpack.php on line 745

    And the whole site is dead. But the dashboard works. ;)

    Edit:

    So I installed a fresh copy of Jetpack 2.9.2, commented out the trigger_error but when I try to view comments in a site I get this error log message.

    PHP Fatal error:  Call to undefined method Akismet::get_page_url() in /path/to/wp-content/plugins/akismet/views/notice.php on line 19, referer: http://thegirl.dembowski.net/wp-admin/edit-comments.php

    Which is odd to say the least. That's from visiting

    http://site-in-network/wp-admin/edit-comments.php?comment_status=spam

    If I remove the ?comment_status=spam then I can see all comments (less the spam). ?comment_status=trash also breaks too.

    On the main site (not the Network dashboard) the ?comment_status= works. It looks like the bug is on the sub-sites (multisite terminology is goofy) it breaks.

  18. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    I believe you've deleted class.jetpack.php from your jetpack plugin folder, and replaced it with the version of the file you found on GitHub. The problem is, you also copied changes that would require you to update other files within Jetpack.

    Could you try one of these 2 alternatives?

    • Completely delete Jetpack, and replace it with the development version you can get from here.
    • Only make the changes George mentioned above, without changing anything else in class.jetpack.php

    (I would vote for the first alternative, since it's easier and you'll get to test upcoming Jetpack features :) )

  19. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Just seeing your Edit now. I'm not sure that's related to Jetpack. Are you running Akismet trunk?

  20. I believe you've deleted class.jetpack.php from your jetpack plugin folder, and replaced it with the version of the file you found on GitHub.

    Yes I did. Just this morning prior to finishing my (really small!) cup of coffee. That may have had something to do with it. ;)

    Completely delete Jetpack, and replace it with the development version you can get from here.

    I like that option! Trying that one now.

    (wgets, renames odd file to jetpack-dev.zip, exctracts, deletes old jetpack directory, renames long goofy directory to jetpack)

    So that still works for the main site using ?comment_status but the sub-site gets that error via http://subsite/wp-admin/edit-comments.php. The text from that error is

    Akismet has detected a problem.

    and the error_log file says.

    PHP Fatal error:  Call to undefined method Akismet::get_page_url() in /path/to/wp-content/plugins/akismet/views/notice.php on line 19

    The Network dashboard works fine too.

    http://main-site/wp-admin/network/admin.php?page=jetpack

    Again I do not discount that there's something misconfigures with my site or that I've not had enough coffee.

  21. Replying rather than editing again.

    Just seeing your Edit now. I'm not sure that's related to Jetpack. Are you running Akismet trunk?

    Huh. That's a good question! I'm on 3.9 trunk.

    WordPress 3.9-beta1-27528

    In my plugins Akismet is reporting Version 3.0-beta. I knew that trunk included Akismet but had no idea it would be a beta version.

  22. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    I knew that trunk included Akismet but had no idea it would be a beta version.

    Since you run WP Trunk, you also run Akismet trunk.

    The error you're seeing could be related to this changeset:
    https://plugins.trac.wordpress.org/changeset/873492

    Could you make sure you're up to date with the latest version of Trunk?

    If that doesn't help, let me know, and I'll let my colleagues know about the problem. In the meantime, you could also delete the Akismet plugin and install the latest stable release instead.

  23. It took some harsh language via the train but I'm up to date.

    $ svn up
    
    Fetching external item into 'wp-content/plugins/akismet'
    External at revision 877097.
    
    At revision 27425.
    $

    The problem still exist with trunk which doesn't surprise me. Where can I report that Akismet bug? ;)

    Switching to the stable version of Akismet v2.6
    via the download page does work and the problem went away.

    I'm marking this topic as resolved as it's not a Jetpack issue exactly and more of a Akismet trunk issue.

  24. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Where can I report that Akismet bug? ;)

    You just did. ;)
    I'll keep you posted.

  25. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    The Akismet issue should now be fixed:
    https://plugins.trac.wordpress.org/changeset/877118

  26. Thanks! As soon as I can (meaning lunchtime today, probably) I'll swing back to the Akismet trunk version.

  27. That looks like it worked with the beta. Much thanks again. ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.