Not signed in (Sign In)

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

  1.  
    In this link a description is given to embed a Plogger gallery into a Wordpress blog. I have this working for my site but after the upgrade to Wordpress 2.7 I just get a blank page.

    It seems that after

    require_once(ABSPATH . "../plogger/gallery.php");

    Nothing happens any more. Any suggestions on how to proceed?
  2.  
    I've upgraded my Plogger to trunk version 588 and now I get the following error:

    Fatal error: Cannot redeclare get_comments() (previously declared in /srv/www/htdocs/wordpress/wp-includes/comment.php:180) in /srv/www/htdocs/plogger/plog-includes/plog-functions.php on line 2735
    •  
      CommentAuthorkimparsell
    • CommentTimeDec 18th 2008 edited
     
    Kees -

    The error is caused by a naming conflict between a Plogger function (get_comments()) and a WordPress function.

    Open /plog-includes/plog-functions.php and go to line 2721 and replace that line ( function get_comments($picture_id) { ) with the following:
    function plogger_get_comments($picture_id) {
    Then open plog-xml.php and go to line 269 and replace that line ( $comments = get_comments($picture["id"], "mod", "DESC"); ) with the following:
    $comments = plogger_get_comments($picture['id'], 'mod', 'DESC');
    Upload both files to their respective folders on your server, overwriting the existing files.

    That should get rid of the fatal error. Thanks for bring that to our attention - it will be fixed in the next SVN commit.

    For your original error, can you post the contents of the file that you are using to include your Plogger gallery into WordPress, and a link to your gallery please?
  3.  
    OK, made the changes and I'm now getting:

    Notice: Undefined index: theme_dir in /srv/www/htdocs/plogger/plogger.php on line 106

    Notice: Undefined index: theme_url in /srv/www/htdocs/plogger/plogger.php on line 107

    Notice: Undefined index: thumb_num in /srv/www/htdocs/plogger/plog-includes/plog-functions.php on line 1502

    Notice: Undefined index: thumb_num in /srv/www/htdocs/plogger/plog-includes/plog-functions.php on line 1512
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

    SELECT * FROM `plogger_collections` WHERE `id` IN (-1,1,2) ORDER BY id DESC LIMIT 0,

    In file: /index.php

    On line: 1905


    The URL to the Wordpress page is: http://82.215.29.124/foto-album/
    The URL to the Plogger page is: http://82.215.29.124/plogger/

    Adjusted theme files are:
    - http://82.215.29.124/wordpress/wp-content/themes/default/header-plogger.php
    - http://82.215.29.124/wordpress/wp-content/themes/default/page_plogger.php
  4.  
    I've done some more testing and found that the Plogger configuration is not properly loaded. For a direct call I get the following trace of $config in init_plogger_collections():


    *config[thumb_num] = 20*
    *config[admin_username] = admin*
    *config[admin_password] = 7fc1e0bfeaea14a143690d9aceb04a58*
    *config[admin_email] = kees@halfje-bruin.nl*
    *config[date_format] = d F Y*
    *config[compression] = 75*
    *config[default_sortby] = filename*
    *config[default_sortdir] = ASC*
    *config[album_sortby] = name*
    *config[album_sortdir] = ASC*
    *config[collection_sortby] = name*
    *config[collection_sortdir] = ASC*
    *config[gallery_name] = Mijn foto\'s*
    *config[allow_dl] = 0*
    *config[allow_comments] = 0*
    *config[allow_print] = 0*
    *config[truncate] = 0*
    *config[square_thumbs] = 1*
    *config[feed_num_entries] = 15*
    *config[feed_title] = Plogger Photo Feed*
    *config[use_mod_rewrite] = 0*
    *config[gallery_url] = http://82.215.29.124/plogger/*
    *config[comments_notify] = 0*
    *config[comments_moderate] = 0*
    *config[feed_language] = en-us*
    *config[theme_dir] = default*
    *config[thumb_nav_range] = 0*
    *config[enable_thumb_nav] = 0*
    *config[allow_fullpic] = 1*
    *config[activation_key] = *
    *config[basedir] = /srv/www/htdocs/plogger/*
    *config[baseurl] = http://82.215.29.124/plogger/*
    *config[embedded] = 0*
    *config[theme_url] = http://82.215.29.124/plogger/plog-content/themes/default/*
    *config[charset] = utf-8*
    *config[version] = Version 1.0Beta3, Rev LastChangedRevision*
    *config[truncate_breadcrumb] = *


    When running embedded I get:


    *Plogger is embedded*

    Notice: Undefined index: theme_dir in /srv/www/htdocs/plogger/plogger.php on line 106
    Notice: Undefined index: theme_url in /srv/www/htdocs/plogger/plogger.php on line 107
    Notice: Undefined index: thumb_num in /srv/www/htdocs/plogger/plog-includes/plog-functions.php on line 1502
    Notice: Undefined index: thumb_num in /srv/www/htdocs/plogger/plog-includes/plog-functions.php on line 1512

    *config[truncate_breadcrumb] = *

    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

    SELECT * FROM `plogger_collections` WHERE `id` IN (-1,1,2) ORDER BY id DESC LIMIT 0,

    In file: /index.php

    On line: 1909


    Because the config settings are not available the SQL statement is incorrect.

    I've tried renaming the $config to $plogger_config to rule out a possible conflict with Wordpress but this didn't help.
  5.  
    Added a trace to $config in plog-load-config.php right after the SQL statement to fetch the config data and it shows the correct information. So it seems that $config is trashed in embedded mode.