Fatal error: Uncaught Error: Call to a member function getConnection() on null in /mnt/data/home/372739.cloudwaysapps.com/ccfwttqvmv/public_html/app/code/Lof/Gallery/Model/Album.php:168 Stack trace: #0 /mnt/data/home/372739.cloudwaysapps.com/ccfwttqvmv/public_html/app/code/Lof/Gallery/Model/Album.php(240): Lof\Gallery\Model\Album->getMediaGallery() #1 /mnt/data/home/372739.cloudwaysapps.com/ccfwttqvmv/public_html/app/code/Lof/Gallery/Block/Album/View.php(138): Lof\Gallery\Model\Album->getImages() #2 /mnt/data/home/372739.cloudwaysapps.com/ccfwttqvmv/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(1096): Lof\Gallery\Block\Album\View->_beforeToHtml() #3 /mnt/data/home/372739.cloudwaysapps.com/ccfwttqvmv/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(1101): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #4 /mnt/data/home/372739.cloudwaysapps.com/ccfwttqvmv/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(671): Magento\Framew in /mnt/data/home/372739.cloudwaysapps.com/ccfwttqvmv/public_html/app/code/Lof/Gallery/Model/Album.php on line 168