A lot of folks are having the “line 97” problem. There’s a fix posted at https://blog.idahocline.info but it didn’t work for me, and it doesn’t seem to work for many others as well. I did a var_dump on $wpdb inside the psnCPGGetConfig() function, and it comes up NULL. My guess is there’s something about my ISP’s PHP and/or web server configuration that’s making global WP variables like this unavailable in certain contexts. Specifically, they come up null if you follow the instructions and attempt to load the plugin directly in your browser, thus causing the error on line 97. The var_dump does return a positive value as long as I’m not just pointing my browser directly to the plugin.
I decided to skip past this issue and see if I could get the plugin working anyway. I loaded wp-admin/psnCPGAmin.php in my browser. The page came up blank. I compared its code to my other plugins and noticed it was lacking the line
require_once('admin.php');
so I added that at the top of the file and then the page came up correctly. I can now see the albums and photos in the admin page. (I’m using WP 1.5, BTW).
The psnGallery tags also work for me in my posts. So even though the wp-content/plugins/psnGallery2.php?setup link still doesn’t work for me, the plugin itself does. In looking through the code for psnGallery2.php, I find no reference to the setup argument, so I don’t think it does anything anyway.
Note on the admin page: if you’re trying to figure out the Picture ID of a picture when viewing it on the admin page, you need to mouse over it so the title info will pop-up – the Picture ID is the first number in the title.