I tried this on a D7 multisite installation where I use table prefixes. As you can imagine, I got a huge list of errors!

I then tried it on a stand alone installation and it works great.

This is not even worth trying to find a solution.

Just please be advised that this only works on stand alone databases with no prefixes.

Just a thank you folks for this module. It's just the thing for trying out different modules, configurations etc.

MrPhilbert

CommentFileSizeAuthor
#7 1135814-7.patch638 bytesgaurav.kapoor
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ajaysolutions’s picture

Priority: Normal » Major

I've just installed Demo for the first time, on a D7 site using table prefixes, and confirmed - I get a page of errors and snapshots won't get created.

This must be a very common occurance, rendering Demo unusable - I'm surprised it's only been mentioned once before.

Look forward to an update. Thanks for the module! :)

lahode’s picture

7.x-1.x-dev works fine for me with prefixed tables, I just replace
if ($prefixes[$plain_table] == $table_prefix || $prefixes['default'] == $table_prefix) {
by
if ((isset ($prefixes[$plain_table]) && $prefixes[$plain_table] == $table_prefix) || $prefixes['default'] == $table_prefix) {
at line 628 in demo.admin.inc, to get rid of the anoying errors.

Cheers

ajaysolutions’s picture

Status: Active » Needs review

Thanks for posting a suggested fix lahode. I've changed the status of this issue so it can hopefully be reviewed and patched.

70111m’s picture

Subscribing

fedbccer’s picture

I had the same problem on D7
Applied patch in post #2 on demo-7.x-1.x-dev (2011-Feb-25)
Corrected the line 627 (not 628)
Tested the module creating a snapshot, installing a new module (Administration Menu), writing a page, and then reset

Now everything works fine
Thank you for the "demo" module and for the patch

izmeez’s picture

Issue summary: View changes

Could anyone using the fix in #2 offer it as a patch.

gaurav.kapoor’s picture

FileSize
638 bytes
gaurav.kapoor’s picture

Status: Needs review » Fixed
gaurav.kapoor’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.