Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorarjunshah
    • CommentTimeNov 9th 2009 edited
     
    Hello, I have Plogger Installed and have been recently encountering errors in my logs. Plogger is not working!!

    Error
    PHP Fatal error: Cannot redeclare plog_tr() (previously declared in /beta/photos/plog-globals.php:41) in /beta/photos/plog-globals.php on line 41


    File where I have Plogger gallery included - abc.php file

    <?php require("gallery.php"); ?>

    <html>
    <head>
    <title>Purdue Cricket League - The Official Website</title>

    <?php the_gallery_head(); ?>

    <?php require("/beta/photos/gallery.php"); ?>

    </head>

    <body>

    <center>
    <table border="0" cellspacing="0" cellpadding="0" width="1000">
    <tr>
    <td width="1" valign="top" bgcolor="#d8d8d8"></td>
    <td width="998" valign="top" bgcolor="#ffffff">

    <center>
    <table border="0" cellspacing="3" cellpadding="3" width="990">
    <tr>

    <td width="200" valign="top">

    <font face="Arial" font style="font-size: 12px;">
    <div align="right">
    <font color="#969696">Upcoming Events</font> &nbsp; &nbsp; | &nbsp; &nbsp; </font>
    </div>

    </td>

    <td width="290" valign="top">

    <?php include("/beta/ssi/upcomingmatches.html"); ?>

    </td>


    <td width="500" valign="top">

    <font face="Arial" font style="font-size: 12px;">
    <div align="right">


    </font>
    </td>

    </tr>
    </table>


    <center>
    <table border="0" cellspacing="3" cellpadding="3" width="990">
    <tr><td width="400" valign="top">


    </td>
    <td width="90" valign="top"></td>
    <td width="500" valign="top">

    <?php include("/beta/ssi/top5news.php"); ?>

    </font>
    </td>
    </tr></table>




    <?php include("/beta/ssi/mainmenubar.php"); ?>


    <table border="0" cellspacing="3" cellpadding="3" width="958">
    <tr><td width="100%" valign="top">
    <center>
    <img src="http://www.purduecricketleague.com/beta/images/dotted_line.jpg"><br>
    </center>
    </td></tr></table>


    <center>

    <table border="0" cellspacing="4" cellpadding="4" width="98%">
    <tr><td width="738" valign="top">


    <font face="Arial" font style="font-size: 12px;">
    <font color="#969696">Current Location : </font>
    <br>


    <?php the_gallery(); ?>

    <br>

    <?php include("/beta/ssi/videochannel.php"); ?>

    </td>
    <td width="220" valign="top" bgcolor="#fffdf3">
    <br>





    </center>
    </td>
    </tr>
    </table>
    </center>

    <img src="http://www.purduecricketleague.com/beta/images/dotted_line.jpg"><br>


    <?php include("/beta/ssi/sitemap.php"); ?>


    <img src="http://www.purduecricketleague.com/beta/images/dotted_line.jpg"><br>
    <table border="0" cellspacing="2" cellpadding="2" width="100%">
    <tr><td width="100%" valign="top">
    <center>
    <font face="Arial" font style="font-size: 11px;">
    <center>
    &copy; Copyright 2007-2010. Purdue Cricket League. All Rights Reserved.<br><br>
    </center></font>
    </td></tr></table>

    </td>
    <td width="1" valign="top" bgcolor="#d8d8d8"></td>
    </tr>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" width="1000">
    <tr>
    <td width="1000" valign="top" bgcolor="#d8d8d8">
    <img src="thre.gif" width="1" height="1"><br>
    </td>
    </tr></table>
    </center>


    </body>
    </html></blockquote>


    Plog-global.php file
    <?php
    ini_set('include_path', ini_get('include_path'));
    @ini_set("arg_separator.output","&amp;");
    @ini_set("max_execution_time", "300");
    @ini_set("memory_limit", "64M");
    define('PLOGGER_DIR',dirname(__FILE__) . '/');
    define('TABLE_PREFIX','plogger_');
    $config_table = TABLE_PREFIX.'config';
    define('THUMB_SMALL',1);
    define('THUMB_LARGE',2);
    define('THUMB_RSS',3);
    define('THUMB_NAV',4);
    if (!headers_sent()){
    session_start();
    };
    if (!class_exists('streamreader'))
    {
    require_once(PLOGGER_DIR."lib/gettext/streams.php");
    require_once(PLOGGER_DIR."lib/gettext/gettext.php");
    }
    if (defined('PLOGGER_LOCALE') && PLOGGER_LOCALE!=='' && strlen(PLOGGER_LOCALE) >= 2)
    {
    $locale = PLOGGER_LOCALE;
    } else
    {
    $locale = "en_US";
    }
    $language = strtolower(substr($locale,0,2));
    $mofile = PLOGGER_DIR."plog-translations/".$locale.".mo";
    // If the mo file does not exist or is not readable, or if the locale is
    // en_US, do not load the mo.

    if ( is_readable($mofile) && ($locale != 'en_US') )
    {
    $input = new CachedFileReader($mofile);
    } else
    {
    $input = false;}$plog_l10n = new gettext_reader($input);
    // Return a translated string.

    function plog_tr($text)
    {
    global $plog_l10n;

    if (isset($plog_l10n))
    {
    return $plog_l10n->translate($text);
    } else
    {
    return $text;
    }
    }
    ?>


    PLEASE HELP!
    •  
      CommentAuthorsidtheduck
    • CommentTimeNov 9th 2009
     
    I think you're issue is here:
    <?php require("gallery.php"); ?>

    <html>
    <head>
    <title>Purdue Cricket League - The Official Website</title>

    <?php the_gallery_head(); ?>

    <?php require("/beta/photos/gallery.php"); ?>

    you have <?php require("gallery.php"); ?> as well as <?php require("/beta/photos/gallery.php"); ?> which seems to be including similar or the same code.