code in teaser

toma - June 28, 2008 - 14:55
Project:Post Also
Version:5.x-1.0-beta1
Component:Code
Category:bug report
Priority:critical
Assigned:toma
Status:active
Description

Thanks for this module, it works fine, i test it in my multisite installation and do work well! some strange errors happend in my teaser view below the teaser content

Array
(
    [0] => Array
        (
            [date] => 1214662001
            [error] =>
            [result] => 5641
        )

)

I am using PHP 5 and some modules enabled like panels 2

Thanks

#1

mi-sjo - September 25, 2008 - 08:56

Same issue here (tested with Drupal core versions 5.7 and 5.10). After enabling the postalso module and
posting content to remote site, the "Array" message appears below most of the content (content that has not
been "involved" in postalso before). These messages appear on the source site.

Seems to have something to do with this part in the postalso.module:

$history[$rid] = array(
'date' => time(),
'error' => $error,
'result' => $post_result,
);

// we can't use form_set_error() since we're redirected away from the form.
//FIXME: find something more meaningful than print_r
drupal_set_message(print_r($post_result, true), $message_type);
watchdog('postalso', print_r($post_result, true),
// should I use WATCHDOG_ERROR?
$error ? WATCHDOG_WARNING : WATCHDOG_NOTICE, $link);

Can this be fixed? Can't see that postalso can be used as long as these messages are showing..

Mike

 
 

Drupal is a registered trademark of Dries Buytaert.