Not signed in (Sign In)

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

    • CommentAuthorjack
    • CommentTimeDec 1st 2006
     
    I don't know if this will get solved 'by itself', but when installing the latest nightly I get this error:

    Fatal error: Cannot redeclare class streamreader in /srv/lilian/www/www.ls-design.nl/portfolio/lib/gettext/streams.php on line 26

    This function must be new and I don't know what it does, but it stops Plogger from working :(. On some sites I read that it could be a conflict with some WP-plugin.
    Can I disable it and how?
    •  
      CommentAuthormike
    • CommentTimeDec 1st 2006
     
    GETTEXT is the localization framework we are using to translate Plogger to different languages. It happens to be the one that Wordpress uses as well. I am guessing that you are trying to use both simultaneously.

    You could probably fix this by removing the gettext localization include statement... I think they are in plog-globals.php,

    require_once("lib/gettext/streams.php");
    require_once("lib/gettext/gettext.php");

    comment those out, reupload, and try it.
    • CommentAuthorjack
    • CommentTimeDec 2nd 2006 edited
     
    Already tried that (thought I was clever ;) ). That works as far as the gallery is concerned, but after logging in to Plogger I get this message:

    Fatal error: Cannot instantiate non-existent class: gettext_reader in /srv/lilian/www/www.ls-design.nl/portfolio/plog-globals.php on line 35

    so I can't reach the admin section.

    Correction:
    When I also comment out lines 35 and 40 I can reacht the admin section, although it seems to be not ready. Missing text everywhere.
    Perhaps better to download the latest beta ;)
    • CommentAuthorMurdock
    • CommentTimeDec 26th 2006
     
    Hello,
    I have the same problems when I commend Those out i Have no text at all.

    Someone Have any News in that Point ?

    thanx
    • CommentAuthorMurdock
    • CommentTimeJan 8th 2007 edited
     
    I found something that is maybe not the best solution, but could mybe help someone out till the next Plogger Version is out.

    Comment those lines out, like they told ya in the messages above.

    then open the files "plog-admin.php" , "plog-options.php" , "plog-upload.php" and "plog-themes.php" that are located in the "plogger/admin" folder and erase all "plog_tr" tags.

    For example in the "plog-admin.php" file, edit line 46 - 54 from:

    $tabs['upload'] = array('url' => 'plog-upload.php','caption' => plog_tr('<em>U</em>pload'));
    $tabs['import'] = array('url' => 'plog-import.php','caption' => plog_tr('<em>I</em>mport'));
    $tabs['manage'] = array('url' => 'plog-manage.php','caption' => plog_tr('<em>M</em>anage'));
    $tabs['feedback'] = array('url' => 'plog-feedback.php','caption' => plog_tr('<em>F</em>eedback'));
    $tabs['options'] = array('url' => 'plog-options.php','caption' => plog_tr('<em>O</em>ptions'));
    $tabs['themes'] = array('url' => 'plog-themes.php','caption' => plog_tr('<em>T</em>hemes'));
    $tabs['view'] = array('url' => $config['gallery_url'],'caption' => plog_tr('<em>V</em>iew'), 'onclick' => 'return GB_show('Live Gallery', ''.$config['baseurl'].'', 600, 800)');
    $tabs['support'] = array('url' => 'http://www.plogger.org/forum/','caption' => plog_tr('<em>S</em>upport'), 'onclick' => 'return GB_show('Plogger Support Forum', 'http://www.plogger.org/forum/', 700, 800)');
    $tabs['logout'] = array('url' => $_SERVER["PHP_SELF"].'?action=log_out','caption' => plog_tr('<em>L</em>og out'));

    to:

    $tabs['upload'] = array('url' => 'plog-upload.php','caption' => ('<em>U</em>pload'));
    $tabs['import'] = array('url' => 'plog-import.php','caption' => ('<em>I</em>mport'));
    $tabs['manage'] = array('url' => 'plog-manage.php','caption' => ('<em>M</em>anage'));
    $tabs['feedback'] = array('url' => 'plog-feedback.php','caption' => ('<em>F</em>eedback'));
    $tabs['options'] = array('url' => 'plog-options.php','caption' => ('<em>O</em>ptions'));
    $tabs['themes'] = array('url' => 'plog-themes.php','caption' => ('<em>T</em>hemes'));
    $tabs['view'] = array('url' => $config['gallery_url'],'caption' => ('<em>V</em>iew'), 'onclick' => 'return GB_show('Live Gallery', ''.$config['baseurl'].'', 600, 800)');
    $tabs['support'] = array('url' => 'http://www.plogger.org/forum/','caption' => ('<em>S</em>upport'), 'onclick' => 'return GB_show('Plogger Support Forum', 'http://www.plogger.org/forum/', 700, 800)');
    $tabs['logout'] = array('url' => $_SERVER["PHP_SELF"].'?action=log_out','caption' => ('<em>L</em>og out'));

    do the same for the "plog-options.php" , "plog-upload.php" and "plog-themes.php" file and upload all.
    Now You have back the english AdminMenuText, so that you can use the Menu till a newer version will come out..
    I hope maybe that will help one or two of you using the Beta3 with wordpress...

    have fun
    •  
      CommentAuthoranti
    • CommentTimeJan 15th 2007
     
    Jack: are you using Plogger as a standalone installation or is it ingegrated into some other code base?
    • CommentAuthorjack
    • CommentTimeJul 21st 2007 edited
     
    Sometimes... i have so many questions on so many forums that I sometimes forget some... until I stumble into the same problem later on.
    Like now, when I finally upgraded my Plogger installation to beta 3.

    Just like above I still get this error-message

    [code]Fatal error: Cannot redeclare class streamreader in /srv/jackdaw/www/www.spoenk.nl/weblog/wp-includes/streams.php on line 26[/code]

    and Anti, I'm using Plogger next to WordPress but in a different directory:
    /fotografie (plogger)
    /weblog (wordpress)

    Edit........................

    I did what Murdock suggested. So after commenting those lines out I got back my site (but not my admin) and after that deleted all the plog_tr from those 4 files. Now the admin also works again, but I had hoped this would have been solved with beta 3, because this means that everyone who is using WordPress and Plogger beta 3 will get these errors, or am I wrong?
    • CommentAuthortmhai
    • CommentTimeAug 1st 2007
     
    is there a fix to this yet?
    • CommentAuthorise
    • CommentTimeAug 27th 2007
     
    commenting out the requires is obviously not going to work out, unless you access the admin also captured in wordpress otherwise gettext won't be included even when it is needed.

    The simplest, quickest fix is to intelligently test ie

    if (!class_exists(streamreader)) {
    require_once("lib/gettext/streams.php");
    require_once("lib/gettext/gettext.php");
    }

    require_once/include_once isn't clever enough on its own.

    But, the real problem is in the gettext code which ought to anticipate multiple inclusion and protect the class/variable definitions correctly.