ianjohn27
Forum Replies Created
-
Definitely broken for me still. Added a return false to top of add_error function here:
CFF_Error_Reporter.php:84
And this “fixed” it. This is WPEngine on php7.4, FWIW, and I did re-install the plugin fresh.
Ian
PHP Fatal error: Uncaught Error: Call to undefined method CustomFacebookFeed\\CFF_Utils::cff_get_account() in /nas/content/live/xxxxx/wp-content/plugins/custom-facebook-feed/inc/CFF_Error_Reporter.php:90\nStack trace:\n#0 /nas/content/live/xxxxx/wp-content/plugins/custom-facebook-feed/inc/CFF_Utils.php(213): CustomFacebookFeed\\CFF_Error_Reporter->add_error(‘accesstoken’, Array, ‘EAAP9hArvboQBAM…’)\n#1 /nas/content/live/xxxxx/wp-content/plugins/custom-facebook-feed/inc/CFF_Utils.php(39):
Forum: Plugins
In reply to: [Sociable] [Plugin: Sociable] Where is Pinterest?Here’s how to get it working. I think. Line 1040 of class-sociable_Admin_Options.php change from
$sociable_known_sites = get_option( 'sociable_known_sites' );to
$sociable_known_sites = Sociable_Globals::default_sites();Insert this code into the default_sites array in class-Sociable_Globals.php
"pinterest" => array('favicon' => 'pinterest.png', 'url' => 'http://pinterest.com/pin/create/button/?url='.$permalink.'', "title" => "Share on Pinterest", 'blank' => '_blank' ),Now a ton of new social networks show up. Seems to work for me. Now, once you’ve got that fixed, go find a better plugin! and post a comment here to let us all know.
Forum: Plugins
In reply to: [Sociable] [Plugin: Sociable] Where is Pinterest?Looks like the author of the plugin uses the skyscraper version and didn’t test the “classic” version carefully.
Oh. Actually, it looks like this error might be even more helpful:
TypeError: $(document).pjax(“a.tribe-pjax”, {timeout: 10000, fragment: “#tribe-events-content”, container: “#tribe-events-content”}) is undefined
I’m guessing the new default templates have this div in them… my custom ones probably don’t.
thanks in advance.
Definitely getting this same error on my site. Disable Events calendar and everything is fine again. It appears to be in the pjax.
Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] BUG – Browsing by dateOh, and I should add: thanks, Rob, for all the work on this plugin! It’s been a life-saver.
Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] BUG – Browsing by dateActually, I don’t think this is theme related. In tribe-view-helpers.class.php on line 566 there’s this:
/** * Helper method to return an array of years * default is back 5 and forward 5 */ private static function years() { $current_year = (int) date_i18n( 'Y' ); $years_back = (int) apply_filters('tribe_years_to_go_back', 5, $current_year); $years_forward = (int) apply_filters('tribe_years_to_go_forward', 5, $current_year); $years = array(); for ($i = $years_back; $i > 0; $i--) { $year = $current_year - $i; $years[] = $year; } $years[] = $current_year; for ($i = 0; $i <= $years_forward; $i++) { $year = $current_year + $i; $years[] = $year; } return (array) apply_filters('tribe_years_array', $years); }The second loop should say “$i = 1” or else the current year should not be inserted in this line:
$years[] = $current_year;I mean, I could be missing something here.
Forum: Fixing WordPress
In reply to: Attachment ParentI have a solution that seems to work fine for this. I haven’t tested it too heavily.
in wp-includes/post.php
look for function wp_update_post
on line 747 (for me, wp v. 2.2.1) you’ll see this:if ($postarr[‘post_type’] == ‘attachment’)
return wp_insert_attachment($postarr);change to this:
if ($postarr[‘post_type’] == ‘attachment’)
return wp_insert_attachment($postarr, false, $post[‘post_parent’]);hope this helps!
Forum: Fixing WordPress
In reply to: Attachment ParentI’m having this same issue, and as with wonkavator, this is a very important feature for a lot of my custom code — the parent/child relationship has to be maintained. Any help with this greatly appreciated.
Forum: Fixing WordPress
In reply to: realTinyMCE is not definedSo I had a similar problem, but it was definitely an issue with the server not supporting gzip properly. (Everything worked on my local server). I went in to this file:
/wp-includes/js/tinymce/tiny_mce_gzip.php
and found this code:
if ((in_array(‘gzip’, $encodings) || in_array(‘x-gzip’, $encodings) || isset($_SERVER[‘—————‘])) && function_exists(‘ob_gzhandler’) && !ini_get(‘zlib.output_compression’) && ini_get(‘output_handler’) != ‘ob_gzhandler’) {
$enc = in_array(‘x-gzip’, $encodings) ? “x-gzip” : “gzip”;
$supportsGzip = true;
}Immediately after I overrode the $supportsGzip var with a false value by inserting the following line after the block reference above:
$supportsGzip = false;
Bingo! everything works fine now.