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.
When creating a report, and attempting to add a data block, we are receiving the following error:
Fatal error: Call to undefined method DatabaseStatementBase::xpath() in /home/dpidatamanager/public_html/sites/all/modules/forena/renderers/FrxRenderer.inc on line 629 Call Stack: 0.0002 648672 1. {main}() /home/dpidatamanager/public_html/index.php:0 0.5810 109375544 2. menu_execute_active_handler() /home/dpidatamanager/public_html/index.php:21 0.5847 110103176 3. call_user_func_array() /home/dpidatamanager/public_html/includes/menu.inc:517 0.5847 110103920 4. forena_report_block_preview() /home/dpidatamanager/public_html/includes/menu.inc:0 0.5847 110104368 5. forena_data_block_preview() /home/dpidatamanager/public_html/sites/all/modules/forena/forena.report.inc:907 0.6029 113244648 6. FrxEditor->addBlock() /home/dpidatamanager/public_html/sites/all/modules/forena/forena.data.inc:61 0.7881 115527152 7. FrxTable->generate() /home/dpidatamanager/public_html/sites/all/modules/forena/FrxEditor.inc:825 0.7883 115527816 8. FrxRenderer->columns() /home/dpidatamanager/public_html/sites/all/modules/forena/renderers/FrxTable.inc:48
It appears as though the $xml argument for FrxRenderer->columns($xml, $path) is being passed as a DatabaseStatementBase object.
Comment | File | Size | Author |
---|---|---|---|
#4 | xpath_undefined.patch | 631 bytes | metzlerd |
Comments
Comment #1
jamesdixon CreditAttribution: jamesdixon commentedAh okay I know why it's happening anyways. It's because the data block had:
Maybe in this case we send a message saying something like "Don't add raw data blocks via the interface".
Comment #2
metzlerd CreditAttribution: metzlerd commentedShouldbe quite fixable, but i am away from my computer for several days. Will get to this upon my return
Comment #3
jamesdixon CreditAttribution: jamesdixon commentedAwesome, thank you!
Comment #4
metzlerd CreditAttribution: metzlerd commentedHere's a patch that worked for me.
Comment #6
metzlerd CreditAttribution: metzlerd commentedComment #7
jamesdixon CreditAttribution: jamesdixon commentedThanks this has fixed the issue on our end as well!