Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#7 | 1135814-7.patch | 638 bytes | gaurav.kapoor |
Comments
Comment #1
ajaysolutions CreditAttribution: ajaysolutions commentedI'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! :)
Comment #2
lahode CreditAttribution: lahode commented7.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
Comment #3
ajaysolutions CreditAttribution: ajaysolutions commentedThanks for posting a suggested fix lahode. I've changed the status of this issue so it can hopefully be reviewed and patched.
Comment #4
70111m CreditAttribution: 70111m commentedSubscribing
Comment #5
fedbccer CreditAttribution: fedbccer commentedI 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
Comment #6
izmeez CreditAttribution: izmeez commentedCould anyone using the fix in #2 offer it as a patch.
Comment #7
gaurav.kapoor CreditAttribution: gaurav.kapoor commentedComment #8
gaurav.kapoor CreditAttribution: gaurav.kapoor commentedComment #9
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs commented