Hi, it seems this module gives WSOD if database tables are prefixed.
I have two separate drupal installations, one with tables prefixed and one without prefix. Taxonomy import works as intended (great module btw!) on the installation without prefix but gives WSOD on the one with table prefix.
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'MYMODULE_db.file_managed' doesn't exist: SELECT file_managed.uri FROM file_managed ORDER BY file_managed.fid DESC limit 1; Array ( ) in Drupal\taxonomy_import\Form\create_taxonomy() (line 87 of C:\MYMODULE\public_html\modules\contrib\taxonomy_import\src\Form\ImportForm.php).
Found a similar issue here.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3017222-7.patch | 703 bytes | vuil |
Issue fork taxonomy_import-3017222
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
bandana commentedChanging line 87 in /src/form/ImportForm.php
from this
$loc = db_query('SELECT file_managed.uri FROM file_managed ORDER BY file_managed.fid DESC limit 1', array());to this
$loc = db_query('SELECT {file_managed.uri} FROM {file_managed} ORDER BY {file_managed.fid} DESC limit 1', array());seems to have fixed the issue.
Comment #3
aswathyajish commentedHello,
Thanks for using this module.
Fixed the above mentioned issue and committed the change to development release.
Comment #5
andsigno82 commentedHi,
error still persists in stable release.
I would suggest this edit, working for prefixed and non-prefixed db's.
SELECT {file_managed}.uri FROM {file_managed} ORDER BY {file_managed}.fid DESC limit 1at line 85 of ImportForm.php
Comment #6
vuilComment #7
vuilComment #9
vuilComment #10
vuilComment #11
vuilComment #15
nuuou commentedBTW, this is not fixed, and the commit in comment #8 is also broken.
I've forked this with a new patch against the current 2.x branch, which is working for me for my current use-case.
Unfortunately I don't have permissions to re-open this issue.
Comment #16
vuilComment #17
nuuou commentedComment #18
vuil