I'm also new to plogger and have just downloaded and installed version 3 - look great.
I also get many PHP Notices for Undefined Variables & Undefined Index.
I hope this can be resolved in future realeases as agreed all variable should be defined. For now I guess I need to add: error_reporting(E_ALL); to your scripts.
I am working through looking for issues. I'm new to PHP so, I find it useful to keep the notices displayed as they catch loads of the simple bugs I miss, I'm happy to find them and clean up these as I find them as long as someone can add them to the trunk for me:
from: function plog_picture_manager($id,$from,$limit) { plogger_init_pictures(array( to: function plog_picture_manager($id,$from,$limit) { $output = ''; plogger_init_pictures(array(
function generate_albums_menu($albums) { $output = '<select name="albums_menu" onclick="var k=document.getElementsByName(\'destination_radio\');k[0].checked=true;">'; foreach($albums as $album_id => $album) {
$selected = "";
// If we are on the current album then set it to be the default option if (isset($_REQUEST["albums_menu"]) && isset($_REQUEST["new_album_name"])) if ($_REQUEST["albums_menu"] == $album_id || $_REQUEST["new_album_name"] == $album['album_name']) $selected = " selected='selected'";
Line 30: $output = "<h1>" . plog_tr("Manage Themes") . "</h1>"; Line 39: if (isset($_REQUEST["activate"])) { // activate new theme by setting configuration dir Line 92: $output .= "<td><a href=\"${_SERVER['PHP_SELF']}?activate=$theme_folder_basename\">" . plog_tr('Activate') . "</a></td>";
I'm not sure what line 32 is meant to be doing, but I've removed it:
// redirect back to picture page if (isset($rv["errors"])) { // will this work? $_SESSION["comment_post_error"] = $rv["errors"]; } else if ($config['comments_moderate']) { $_SESSION["comment_moderated"] = 1; } header("Location: $redirect");
Thanks for posting, MSummerville! I was actually working on this as well (but then left for vacation). I'll check to make sure I caught all of the instances that you did.
EDIT: checked and I've now picked up all of yours (some I had already picked up, but was missing others you caught, plus I found a couple more). There is one or two more that I just noticed as well, so I'll fix those and then add to the trunk today. Thanks again!
No problem - am more than happy to help. I really like plogger and like the clean design, good work.
Brilliant - thanks very much for adding these to SVN. Much appreciated. I've found one more this morning that occurs when you subscribe to an RSS feed from the root collection. To fix, I changed line 1413 of plog-functions.php to:
I've downloaded and merged r536 and all looks good. I think the problems that I've raised about pagination have gone away too, but it might be worth having a look at these again if people report issues with large galleries, or large numbers of albums.
Nice! I've added the new missing index to my code (plus I found a few more on the RSS especially with mod_rewrite on). I'll wait until the end of the day to commit in case we find some more. That way I'll add them all at once.
ETA: I added all the additional instances I found plus yours to the SVN trunk (r538). I'll keep the ticket open in case we run into any other ones, but all the obvious ones that I could find are now fixed.