Gallery2 "Error (ERROR_MISSING_OBJECT) : Parent 7 path" Error
I've got an embedded Gallery2 installation within my Drupal website at greg-willis.com/gallery. Once configured, it runs along pretty smoothly. But setting it up can be a bear -- especially if you want those SEO friendly clean URLs. It's been my experience on a couple of different servers that you have to tweak the main .htaccess file to get everyone playing nicely.
Not playing nicely means a huge Gallery2 error within Drupal that has something like "Error (ERROR_MISSING_OBJECT) : Parent 7 path" near the top. I have no real idea that all the erroring is about, but I did find a way to fix it.
In the .htaccess file at the root of your Drupal install, there's this line of code RewriteCond %{THE_REQUEST} /gallery/([^?]+)(\?.|\ .) You'll want to add a backwards slash in front of the first forward slash, like so RewriteCond %{THE_REQUEST} \ /gallery/([^?]+)(\?.|\ .)
The pain about this is that Drupal or Gallery2 will overwrite this when it touches that .htaccess file. Luckily, once the site is up and running, it'll keep working. And when you get the Big Block of Warning Text, you'll know what code to replace to fix it.