#1472 Posted in ‘Showtime Image Gallery’

Latest post by Lefteris Kavadas on Wednesday, 14 January 2026 12:13 EET

Nicolas OLIVIER

Hi,

Tonight, iafter a upgrade to 1.10.1 I had hard time to understand why my front send me a raw "0 - Call to undefined method Joomla\Filesystem\File::exists()" without any stack trace even with debug option activated...

At the I had to edit some of your files (JROOT/administrator/components/com_showtime/models/images.php:225  and a pluginslayout for folder:exist )And because I have try to uninstall and resinstall I had to restore images and mysql dump for getting back my categories and galleries...

These function seems obsolete but i can't be the only one with this issue ?

Joomla 5.3, Showtime 1.9 to 1.10.1 PHP 8.1 (Now I can upgrade to php 8.4 and Joomla 5.4)

 

Lefteris Kavadas

Hi Nicolas,

Thank you for the detailed report and for taking the time to investigate the issue.

What you are experiencing is related to changes in the Joomla core between versions 5.3 and 5.4.

In Joomla 5.3, certain filesystem helper methods (including File::exists()) were temporarily removed/refactored, which caused this fatal error in Showtime 1.10.1 when running on that specific Joomla version.

In Joomla 5.4, these filesystem methods are available again, and the issue is fully resolved without any code changes.

So to clarify:

  • Updating to Joomla 5.4 fixes the problem
  • It is not a PHP issue (PHP 8.1 / 8.4 is fine)
  • No manual file edits are required once Joomla is updated

After upgrading to Joomla 5.4, you should be able to run Showtime normally without any further action.

If anything persists after the upgrade, please let me know.

Best regards,
Lefteris

Nicolas OLIVIER

Ok thanks for your answser. Even if upgrading to J!5.4 solve the issue, updating the code to the new namespace seems to be a good move and a simple one : replacing folder::exist by is_dir(Path::clean()) and same file::exist by is_file

 

 

Lefteris Kavadas

You’re absolutely right that using native PHP functions like is_dir() and is_file() is a perfectly valid (and future-proof) approach.

In the latest versions of Showtime, however, we are already using the new Joomla namespaces:

use Joomla\Filesystem\File;
use Joomla\Filesystem\Folder;

The exists() wrapper methods provided by Joomla are currently back in the core, work correctly in Joomla 5.4+, and are not marked as deprecated. Because of that, we can safely continue using them without compatibility issues.

That said, your suggestion makes sense from a defensive-coding point of view, especially considering the temporary regression in Joomla 5.3. I’ll keep this in mind for future refactoring so we can better guard against similar core changes.

Thanks again for the constructive feedback and for taking the time to share your workaround — it’s appreciated.

Best regards,
Lefteris

Nicolas OLIVIER

Thank you for this exchange.

In the same vein, I was wondering about the uninstallation process of the component. When I uninstalled it, all my gallery and image tables were emptied, as well as the corresponding folder. This can be a real issue when, like me, you’re only trying to fix a technical problem.

I think that an uninstallation process offering the option to keep the data for a future reinstallation, or an option to export the galleries (a package including both the database and the files) for migration or reinstallation, would be a real plus and would help avoid unpleasant situations like the one I experienced.

Thank you.

Lefteris Kavadas

Thank you for bringing this up — that’s a very valid point, and I completely understand the frustration this can cause.

Currently, Showtime’s uninstall process performs a full cleanup (database tables and media folders). This is intentional and follows the default Joomla component behavior, ensuring that no orphaned data or files are left behind when a user explicitly uninstalls the extension.

That said, you are absolutely right that this can be problematic in troubleshooting scenarios, where the goal is to reset the extension code rather than permanently remove the content.

Your suggestions are very sensible:

  • An option to keep data on uninstall
  • A gallery export / backup package (database + files) for migration or safe reinstallation

Both are good ideas and align well with real-world usage. While Joomla does not natively provide an uninstall “keep data” prompt, this can be implemented at the extension level, and I agree it would be a valuable improvement.

I can’t promise an immediate change, but I’ll seriously consider adding:

  • a “Preserve data on uninstall” option, and/or
  • a backup/export tool inside the component for safe migration and recovery

In the meantime, for future reference, when the goal is to fix a technical issue, I strongly recommend disabling the component or reinstalling over the existing version, rather than uninstalling, to avoid data loss.

Thank you again for the constructive feedback — it’s exactly this kind of input that helps improve the extension in meaningful ways.

Best regards,
Lefteris

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 .

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