• Making the cut with jQuery and MooTools in Joomla: The multiple jQuery libraries loading problem - Part 1

    Although the two libraries MooTools and jQuery can co-exist together, one problem remains as more and more such extensions are made available: each module, plugin, component or even template can come...
  • You may not need jQuery's Migrate plugin after all

    Migrate has been created to make jQuery code backup compatible with versions of jQuery prior to v1.9. It is packaged with the Joomla! framework (which will hopefully soon contain the latest version of...
Thu27Apr2017
Print

Troubleshoot: Fatal error

Article Details Article Details Profiles Image from Article Latest News Enhanced Latest News Enhanced Pro SYW Bare Responsive Trombinoscope Contacts Trombinoscope Contacts Pro Truly Responsive Slides Truly Responsive Slides Pro Weblink Logos Weblink Logos Pro
First published April 27, 2017
592 hits - No rating

 

For:
Any Simplify Your Web extension that has an output display

It's been reported a few times that suddenly, after an update, fatal errors occur when accessing an extension created by Simplify Your Web.

Although a major issue (since it may crash the site on some pages), it is easily fixable.

Most extensions we create use an external library that 'consolidates' code. That library is called the Simplify Your Web Extensions Library

It has many advantages, some of which are:

  • it limits the amount of code added to your site, especially if you use several of our extensions,
  • any update that fixes an issue on this code fixes issues in all the extensions at once,
  • it reduces errors and duplication of code.

In older extensions, it was required to download that library manually. Most recent installments include the library, and now updating an extension also updates that library (if outdated) or installs it if missing.

The issue

Unfortunately, the library may go missing at times, either removed manually (over an overzealous cleanup), or during an update or install of an extension or Joomla. The latest has not been identified and we have not been able to reproduce this behavior.

You may end up with an error similar to this one:

Fatal error: Class 'SYWHeaderFilesCache' not found in headerfilesmaster.php on line 13

If any error starts with Fatal error: Class 'SYW...', it is an indicator that the external library is missing.

The remedy

Just download and re-install the library. It should fix the issue.