Support

Support is part of Event Gallery Extended.

Please get a subscription if you need support. Feel free to use the ticket system or the contact form for reporting defects or pre-sale questions. Make sure you're logged in in order to be able to create a new ticket.

For general information you can also jump to the manual.

Subscribe now!

#4693 Gallery not accessible anymore: Call to a member function getLazyThumbImgTag() on null

Posted in ‘Event Gallery - General’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

PHP Version
7.3.33
Joomla Version
3.9.8
Test URL
http://bc-la.com/index.php?option=com_eventgallery&view=events&Itemid=130

Latest post by sbluege on Monday, 01 April 2024 09:50 UTC

cpernul

Hi,

my website moved to another webhost provider, which is now Magenta in Austria. I think since then the Eventgallery cannot be accessed anymore on the homepage (however I am able to access the backend of the extension without issues).

When accessing the page I get the following error message with this stacktrace in debug mode:

0 Call to a member function getLazyThumbImgTag() on null
Call stack # Function Location 1 () JROOT/components/com_eventgallery/views/snippets/tmpl/events/default_event.php:55 2 include() JROOT/components/com_eventgallery/library/common/view.php:114 3 EventgalleryLibraryCommonView->loadSnippet() JROOT/components/com_eventgallery/views/snippets/tmpl/events/default.php:21 4 include() JROOT/components/com_eventgallery/library/common/view.php:114 5 EventgalleryLibraryCommonView->loadSnippet() JROOT/components/com_eventgallery/views/events/tmpl/default.php:24 6 include() JROOT/libraries/src/MVC/View/HtmlView.php:697 7 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:230 8 Joomla\CMS\MVC\View\HtmlView->display() JROOT/components/com_eventgallery/views/events/view.html.php:80 9 EventgalleryViewEvents->display() JROOT/libraries/src/MVC/Controller/BaseController.php:672 10 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/components/com_eventgallery/controller.php:53 11 EventgalleryController->display() JROOT/components/com_eventgallery/controllers/Events.php:16 12 EventgalleryControllerEvents->display() JROOT/libraries/src/MVC/Controller/BaseController.php:710 13 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/components/com_eventgallery/eventgallery.php:60 14 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402 15 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377 16 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:194 17 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:233 18 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:196 19 Joomla\CMS\Application\CMSApplication->execute() JROOT/index.php:49

 

Is it possible that somehow my PHP version does not match anymore with the used Eventgallery version? I tried to find release notes with that info, but I only found version 3.11.4 as oldest and there my PHP version is fine as it requires >7.

How can I solve this issue?

Thanks for your help

Christoph

sbluege

Hi, 

there are multiple options for this error to happen: 

What happens if you unpublish all Events/galleries? If there is no error, publish the events one by one. Also, you can try to update to a newer version.

cpernul

Hi,

thank you for the very fast response!

I unpublished the latest events, and actually it turned out that one of those lead to the error. I removed it from eventgallery, after that it was accessible again on the website.

However, after I deleted the whole affected folder containing the 17 photos from the server and added the photos again, I get (after syncing the folder and files in eventgallery) the following error when I try to edit the event in eventgallery in the backend:

Es ist ein Fehler aufgetreten!
0 Cannot write to log file.
/var/www/vhosts/host-1728.webhosting.myprovider.at/httpdocs/bc-la.com/libraries/src/Log/Logger/FormattedtextLogger.php:293
Call stack # Function Location 1 () JROOT/libraries/src/Log/Logger/FormattedtextLogger.php:293 2 Joomla\CMS\Log\Logger\FormattedtextLogger->initFile() JROOT/libraries/src/Log/Logger/FormattedtextLogger.php:167 3 Joomla\CMS\Log\Logger\FormattedtextLogger->addEntry() JROOT/libraries/src/Log/Log.php:320 4 Joomla\CMS\Log\Log->addLogEntry() JROOT/libraries/src/Log/Log.php:166 5 Joomla\CMS\Log\Log::add() JROOT/libraries/src/MVC/Controller/BaseController.php:886 6 Joomla\CMS\MVC\Controller\BaseController->holdEditId() JROOT/libraries/src/MVC/Controller/FormController.php:416 7 Joomla\CMS\MVC\Controller\FormController->edit() JROOT/libraries/src/MVC/Controller/BaseController.php:710 8 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_eventgallery/eventgallery.php:69 9 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402 10 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377 11 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101 12 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159 13 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:196 14 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/index.php:51

Interestingly this error occurs only when I want to edit the event. I am able to see the photos and reorder them in the backend, and am also able to publish the event (which results in no error in the frontend anymore, I can see the gallery and also all images of this event).

Do you have an idea what could be the issue here?


Thank you very much!

sbluege

Please verify that your log-folder is writable. It should be /logs or /administrator/logs. 

cpernul

Yes there is a /logs folder and I am able to create new files and write to them. However, the folder seems to be empty beside an `index.html` and `error.php` as well as `1.error.php`.

This path is also set in the Joomla configuration under System -> Protocol folder.

And as you expected I guess, the editing is not working for any event, so it has nothing to do with a specific one. I cannot see any setting in Eventgallery related to logging, do you think it is an Joomla issue? 

I get a similar error concerning a phpVersionCheck, which has something to do with the quickicon plugin, when I go to the control center for example.

sbluege

Moving to another server is sometimes tricky because file access permissions got broken. At least your frontend seems to work. 

Please double-check that PHP can write to this folder. Joomla helps with the "system information" page here and tells if a folder is writable. 

cpernul

You are right. 

I think the path to the log folder was not configured correctly by the system during migration of the server, while interestingly the path to the temp folder was correct. I changed the base path for the log folder and now I can edit the events again. 
Thank you for your help!

sbluege

You're welcome :)