I also got the “line 97” error but the “famous fix” did nothing.
I also add the require_once(‘admin.php’); which also did not help.
Since I actually have no clue psnGallery2.php?setup is supposed to be accomplishing anyway, I just edited psnGallery2.php and changed the Description to:
Once it is activated, <a href="http://my-url-com/wp-admin/psnCPGAdmin.php">Configure the Coppermine values</a> !
Cheating? Perhaps, but it gets me to where I can view the PictureIDs…
It’s working fine for me, if I add the code (as datter mentioned above) to wp-content/themes/{theme-name}/index.php but what a drag to have to edit the index.php of each individual theme…
Looks like it might be time for some enterprising plugin author to step in and save the day 🙂
Scott