#1069 – All images gone !!

Status: Closed - Category: Showtime Image Gallery
 I have a customer who just experienced that after editing an article - just the text - then all images in showtime image gallery, attached to that article are gone !!! That is a very serious bug ! I have now asked the hosting to roll back the site to yesterday, but this needs fixing asap.
I have now raised the php param max_input_vars from 5000 to 20000 - could that be the cause of the problem ?

Another thing: On the site there are custom fields attached to a parent article category. When you create an article in a sub category it works, but when you then afterwards move the article into anothe sub category (under the same parent category) - then alle images are gone ???
Today the customer gets this error when changing a category on an article:

An error has occurred.

0 Attempt to assign property "title" on bool

Call stack
# Function Location
1 () JROOT/plugins/fields/showtime/fields/showtime.php:57
2 JFormFieldShowtime->getInput() JROOT/libraries/src/Form/FormField.php:1029
3 Joomla\CMS\Form\FormField->renderField() JROOT/layouts/joomla/edit/fieldset.php:43
4 include() JROOT/libraries/src/Layout/FileLayout.php:128
5 Joomla\CMS\Layout\FileLayout->render() JROOT/libraries/src/Layout/LayoutHelper.php:76
6 Joomla\CMS\Layout\LayoutHelper::render() JROOT/layouts/joomla/edit/params.php:170
7 include() JROOT/libraries/src/Layout/FileLayout.php:128
8 Joomla\CMS\Layout\FileLayout->render() JROOT/libraries/src/Layout/LayoutHelper.php:76
9 Joomla\CMS\Layout\LayoutHelper::render() JROOT/administrator/components/com_content/tmpl/article/edit.php:112
10 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
11 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
12 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_content/src/View/Article/HtmlView.php:116
13 Joomla\Component\Content\Administrator\View\Article\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:645
14 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_content/src/Controller/DisplayController.php:64
15 Joomla\Component\Content\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:678
16 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
17 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
18 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
19 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
20 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
21 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
22 require_once() JROOT/administrator/index.php:32
By the way - I am running php 8, as I expect the extension to be compatible ?
Hi Ronny,

Custom fields can be assigned to specific categories. If your client has assigned a Showtime Image Gallery custom field to specific categories, and then changes to a category that does not have the field, it's normal that he doesn't see the field in the form anymore.
No images are lost of course. You can verify this by navigating to "Components" -> "Showtime Image Gallery" -> "Galleries". The gallery should be still there. If the gallery is not there, then probably has been deleted through Showtime Image Gallery component manually.

And that explains why he gets that error when changing category. I have already applied a fix for such cases. If you can't wait for the update just edit file plugins/fields/showtime/fields/showtime.php and add the following code on line 53:
		if (!$this->item)
			$this->item = (object) array();

Finally, all our extensions are compatible with PHP 8. Of course this is an ongoing process as always in such cases.

Please let me know if you face more issues.


So with that fix he won't loose the images of a custom field that is attached to a parrent category, if he changes the article category between two sub-categories of that parrent category ?
No, that fix is for the error he gets when changes category. I am still not able to reproduce the issue with the missing images.
And you have tried this setup

- Parrent Cat 1 - Custom field attached to this
--- Sub Cat 1
--- Sub Cat 2

Create article in Sub Cat 1, attach images. Then moved the article to Sub Cat 2 - that works for you and the images are still in attached to the article ??
Yes I tried that setup. Of course I assumed that the article is saved before the category is changed.

I will try to reproduce this again when I am back to the office.

So now my customer lost all his work again upon saving an article with images in a custom field with Showtime Image gallery. Both fields went empty upon saving the article !!??? What is going on here. I can see that the galleries are still there, BUT! The relation from the article to the gallery is gone in the fields_values table - how can this happen ??? How to recreate theese relations again ? Is it just adding new rows to the fields_values table or will this break something elsewhere ? Can you please fix this issue asap !!!
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Note: Our support team is currently on vacation, so please anticipate slightly longer response times. Thank you for your understanding!

Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review