WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sexybookmarks: FB buttons Like and Send not workin (3 posts)

  1. editor
    Member
    Posted 2 years ago #

    Hello,

    after the latest upgrade, the FB Like button stopped working, giving an error message. The FB Send button stopped working after the previous upgrade. I'm using W3TC, but I excluded every Sexybookmarks javascript and CSS file from minify.

    Any suggestions?

  2. editor
    Member
    Posted 2 years ago #

    Apparently, it's a Facebook flaw, not plugin-specific. A fix is to submit single posts to the Facebook URL Lint, and clearing the cache thereafter.

    I'll keep the thread open, in case someone has a better fix.

  3. Russell Jamieson
    Member
    Posted 2 years ago #

    Hi,

    Please can you introduce a defined constant for the spritegen folder - so I can configure this NOT to be located under wp-content/plugins which is read-only on my server.

    Each time you update the plugin I need to edit it to reconfigure spritegen to be in the wp-content/cache folder which is writeable.

    If would be really helpful if you could create a couple of constants for the spritegen location as this simplfies all the references to it in sexybookmarks.php and includes/helper_functions.php

    This is the tweak I make at the top of sexybookmarks.php:

    $pluginpath = '/plugins/'.plugin_basename(dirname(__FILE__)).'/';
    $content_path = defined('WP_CONTENT_URL') ? WP_CONTENT_URL : (get_option('siteurl').'/wp-content');
    $content_dir = defined('WP_CONTENT_DIR') ? WP_CONTENT_DIR : (ABSPATH.'/wp-content');
    define('SHRSB_PLUGPATH',$content_path.$pluginpath);
    define('SHRSB_PLUGDIR',$content_dir.$pluginpath);
    if (!defined('SHRSB_SPRITEPATH')) define('SHRSB_SPRITEPATH',$content_path.'/cache/spritegen/');
    if (!defined('SHRSB_SPRITEDIR')) define('SHRSB_SPRITEDIR',$content_dir.'/cache/spritegen/');

    In my case I put spritegen under the cache as it is in fact a cached file that is there to improve performance.

Topic Closed

This topic has been closed to new replies.

About this Topic