Closed (fixed)
Project:
Demonstration site (Sandbox / Snapshot)
Version:
7.x-1.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2011 at 20:07 UTC
Updated:
9 Jan 2018 at 20:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
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 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 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 commentedSubscribing
Comment #5
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 commentedCould anyone using the fix in #2 offer it as a patch.
Comment #7
gaurav.kapoor commentedComment #8
gaurav.kapoor commentedComment #9
gaurav.kapoor commented