Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

[SOLVED] Atahualpa 3.7.3 and Sociable 3.5.2


  #1  
Old Jan 1, 2012, 03:29 PM
Zenman's Avatar
Zenman
 
24 posts · Feb 2011
I'm preparing a full upgrade of my site. Of course I'm testing all of this on my local harddrive with Xampp.

The upgrade to WP3.3 went OK, my update from Atahualpa 3.6.4 to 3.7.3 went pretty well except for one thing.

My Sociable-icons on pages show up nicely, but the sociable-icons in the post-footer is replaced by this error-message:
Fatal error: Call to undefined function do_sociable() in C:\xampp\htdocs\wordpress\wp-content\themes\atahualpa\functions\bfa_postinfo.ph p on line 465


The right sidebar also has a problem when browsing through posts, it does not show up at all. Browsing through pages brings back the sidebar...

So I tried a suggestion I read on this forum. Modifying bfa_postinfo.php however did nothing.

An update of the Sociable-plugin does not work for me as it does not offer the icons I need. What else can I try?
Attached Files
File Type: txt ata-127001-20120101.txt (20.0 KB, 2150 views)
__________________
current projects:
de A (locally produced sustainable energy) | Groene Golflengte (Dutch landscape)

Last edited by Zenman; Jan 1, 2012 at 03:35 PM.
  #2  
Old Jan 1, 2012, 03:40 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
did you try upgrading the sociable plugin?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 1, 2012, 04:02 PM
Zenman's Avatar
Zenman
 
24 posts · Feb 2011
Yes, I did. The plugin is a bit different and does not provide all the icons I need. Also it does not work within the footer of posts. The error is gone, but the selected icons do not show up. It shows five squares and when I hover over them, the tiptool shows the titles of my old five icons (including Hyves and Print which are gone in the new version of Sociable). The hyperlinks added to the squares are incorrect too.

__________________
current projects:
de A (locally produced sustainable energy) | Groene Golflengte (Dutch landscape)
  #4  
Old Jan 2, 2012, 08:59 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Here try this - it is untested but is intended to work with either version of the sociable plugin

bfa_postinfo.zip
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jan 2, 2012, 09:22 AM
Zenman's Avatar
Zenman
 
24 posts · Feb 2011
Thanks! This one works great with my older version of Sociable (3.5.2).

When updating to Sociable version 4.x I still can't get the icons to show up in the footer of my posts. The icons do show up on pages.

For now, I'm happy.
__________________
current projects:
de A (locally produced sustainable energy) | Groene Golflengte (Dutch landscape)

Last edited by Zenman; Jan 2, 2012 at 12:50 PM.
  #6  
Old Jan 4, 2012, 05:19 AM
Zenman's Avatar
Zenman
 
24 posts · Feb 2011
Whoops! Went live today (WP 3.3.1) and my last action was updating to Atahualpa 373.

After the update I got the (known) error-message in the postfooter, so I placed the bfa_postinfo.php you provided me with.

Something is very wrong now. My site totally went down because of an error in bfa_postinfo.php on line 475.

I think there are two "(" signs that are not closed by a ")".

As a quick solution I uploaded the 364 version of bfa_postinfo.php. My site went up again with a proper post-footer, but now my breadcrumsNavXT (v4.01) doesn't show up anymore...

Line 475 is the second if-statement in the code below. It starts with two "("-signs. The elseif-statement a few lines further also starts with two "("-signs...
Another thing that might be incorrect is the ":"-sign after "do_sociable()". Should this not be an ";"-sign?

Wrong? code:
PHP Code:
    // For the "Sociable" plugin
    
if ( strpos($postinfo_string,'%sociable%') !== FALSE ) {
        
ob_start(); 
            if ( (
function_exists('sociable_html2') AND function_existsdo_sociable() ) ) {
                
do_sociable():
                
$sociable ob_get_contents();
            } elseif ( (
function_exists('sociable_html2') AND function_exists('sociable_html') ) {
                
$sociable sociable_html2();
            } else {
                
$sociable "";
            }
        
ob_end_clean();
        
$postinfo str_replace("%sociable%"$sociable$postinfo);
    } 
__________________
current projects:
de A (locally produced sustainable energy) | Groene Golflengte (Dutch landscape)

Last edited by Zenman; Jan 4, 2012 at 05:58 AM.
  #7  
Old Jan 4, 2012, 06:29 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
let me take a look
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Jan 4, 2012, 06:37 AM
Zenman's Avatar
Zenman
 
24 posts · Feb 2011
Figured out the breadcrumb-thing. Had to edit index.php. I placed this:

HTML Code:
	<div class="breadcrumbs">
		<?php if(function_exists('bcn_display'))
		{
			bcn_display();
		}?>
	</div>
In between these two lines:

PHP Code:
    <?php bfa_next_previous_page_links('Top'); // For MULTI post pages if activated at ATO -> Next/Previous Navigation:  ?>

    <?php while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>
I hope you can solve my footer-problem...
__________________
current projects:
de A (locally produced sustainable energy) | Groene Golflengte (Dutch landscape)
  #9  
Old Jan 4, 2012, 06:43 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
this version will work with both versions of sociable
bfa_postinfo.php.zip
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Jan 4, 2012, 07:09 AM
Zenman's Avatar
Zenman
 
24 posts · Feb 2011
Yeah! Now it works!

Thanks again.

__________________
current projects:
de A (locally produced sustainable energy) | Groene Golflengte (Dutch landscape)

Bookmarks

Tags
footer, post, sociable



Similar Threads
Thread Thread Starter Forum Replies Last Post
PATCH 371-02: 'Sociable' v4.0.6 plugin doesn't work with the %sociable% in footer juggledad New Versions, & Updating 0 Nov 22, 2011 05:29 AM
Sociable sprites not used in Atahualpa sidejack Plugins & Atahualpa 2 Sep 17, 2011 10:35 AM
[SOLVED] Atahualpa 3.5.3 and Sociable The Boat Galley Plugins & Atahualpa 1 Nov 21, 2010 07:49 PM
Sociable showing on Page without %sociable% tag inserted anywhere in Atahualpa jkovacs Plugins & Atahualpa 9 Jun 9, 2010 11:25 AM
Sociable 3.5.2 ehfquestions Plugins & Atahualpa 1 Jan 11, 2010 02:41 PM


All times are GMT -6. The time now is 11:38 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.