Status: offline

manowar

Forum User
Regular Poster
Registered: 11/07/07
Posts: 81
It's posible install this plugin in geeklog 1.7.2(I'm upgrading my site), but the install give error.


This is error.log report
Thu 17 Mar 2011 17:51:50 CLST - Attempting to install the 'twitter_block' plugin
Thu 17 Mar 2011 17:51:50 CLST - Attempting to create 'Twitter Block Admin' group
Thu 17 Mar 2011 17:51:50 CLST - Attempting to add 'twitter_block' features
Thu 17 Mar 2011 17:51:50 CLST - Adding 'twitter_block.admin' feature to the 'Twitter Block Admin' group
Thu 17 Mar 2011 17:51:50 CLST - Attempting to give all users in the Root group access to the 'twitter_block' Admin group
Thu 17 Mar 2011 17:51:50 CLST - Registering 'twitter_block' plugin
Thu 17 Mar 2011 17:51:50 CLST - Plugin postinstall failed
Thu 17 Mar 2011 17:52:13 CLST - Auto-uninstalling plugin twitter_block:

Saludos desde Chile

How to install autotags, and how to learn to use it?


Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Strange, this is the first issue we've had with twitterblock install.

The only thing we accomplish in the postinstall is the creation of the actual block.
path_to_geeklog/plugins/twitter_block/autoinstall.php
Text Formatted Code

function plugin_postinstall_twitter_block($pi_name = 'twitter_block') {
    if (!defined('GVERSION')) {
        global $LANG_TWITTER_BLOCK_1, $_CONF;
        require_once $_CONF['path'].'plugins/twitter_block/functions.inc';

        // Add our block
        $success = TW_addblock('twitter_block', $LANG_TWITTER_BLOCK_1['block_title'], 'phpblock_twitter_block', 2);
        return $success;
    }
}
 

try changing that to:
Text Formatted Code

function plugin_postinstall_twitter_block($pi_name = 'twitter_block') {
        global $LANG_TWITTER_BLOCK_1, $_CONF;
        require_once $_CONF['path'].'plugins/twitter_block/functions.inc';

        // Add our block
        $success = TW_addblock('twitter_block', $LANG_TWITTER_BLOCK_1['block_title'], 'phpblock_twitter_block', 2);
        return $success;
}
 



I've tested this plugin to geeklog 1.8.x

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com

Status: offline

manowar

Forum User
Regular Poster
Registered: 11/07/07
Posts: 81
I not understand, but, reinstall all geeklog and delete the DB and now I can install geeklog and twitter_block plugin without problem.

Thank suprsidr