Skip to content

Conversation

@nikosdion
Copy link
Contributor

Pull Request for Issue #11672 .

Pinging @wilsonge and @mbabker – This PR addresses PHP 7.0 and 7.1 compatibility issues. See the bold stuff under Bugfixes

Summary of Changes

Updated FOF to 2.5.5. The following improvements and bug fixes have been implemented since version 2.4.3 (what is currently included in Joomla! 3.6.2):

Improvements

  • Now compatible with Joomla! 1.6, 1.7, 2.5, 3.0, 3.1, 3.2, 3.3, 3.4 and 3.5 (best used with Joomla! 3.3 or later)
  • F0FUtilsIniFile to parse INI files even on broken hosts
  • F0FUtilsConfigHelper to get component configuration parameters without going through JComponentHelper
  • F0FUtilsUpdate improvements
  • Clear the OPcache when installing / updating an extension as long as it uses F0FUtilsInstallscript
  • F0FUtilsIp: let the workarounds be disabled
  • Update administrator/components/com_config/models/component.php #584 removeHeader method added in Form, allowing you to remove a header from an XML form.
  • utf8mb4 support in schema installer under Joomla! 3.5+

Bugfixes

  • [HIGH] mcrypt is deprecated in PHP 7.1. This will cause Two Factor Authentication to fail under PHP 7.1 unless you apply this PR.
  • [HIGH] Platform 12.3 #593 Cannot use multiple behaviours under PHP 7. This was breaking many FOF extensions using the old version in Joomla! 3.5 and 3.6 under PHP 7.
  • [HIGH] If you declared onBefore/onAfter Controller methods public FOF would erroneously treat them as tasks
  • [HIGH] Crazy code for JDatabaseInterface in Joomla! causes fatal errors when using the Joomla! db driver in FOF in CLI
  • [HIGH] The caching ID was always wrong since JCache::makeId() is never called any more in Joomla!.
  • [LOW] F0FUtilsUpdate had a wrong version_compare which didn't allow the automatic update to proceed
  • [HIGH] F0FUtilsUpdateJoomla could not detect Joomla! updates due to changes in Joomla! XML update sources

Testing Instructions

After applying the PR make sure that the two core features using FOF still work.

  1. Two Factor Authentication feature works. Espeially for @brainteeman : If you don't remember how TFA works please RTFM that I kindly provided back in 2012 https://docs.joomla.org/J3.x:Two_Factor_Authentication
  2. The Post-installation Messages component. Install a BRAND NEW copy of Joomla!. Log in to the Administrator. You will see some post-installation messages. Make sure you can still dismiss them. Especially for @brianteeman : Since that core component may still have bugs and you have a propensity to bumping into bugs please make sure that any bugs you spot are NOT reproducible in plain old Joomla! 3.6.2. If they are please file a different GitHub issue and at-mention me.

Documentation Changes Required

None.

@brianteeman
Copy link
Contributor

thanks for the update.

Quick question - there have been a few reports in recent weeks of some missing strings and other stuff with f0f but because you had said it was unsupported they were not dealt with.

@brianteeman
Copy link
Contributor

@wilsonge I am confused now why you have been asking for people to rewrite the existing plugins to not use fof

@nikosdion
Copy link
Contributor Author

Can you please link me to the reports for missing strings? Most likely it's some extension not loading FOF's language strings or FOF's language strings are not being in Joomla translation package.

Regarding the core TFA plugins, since Joomla! 4 will NOT include FOF there's a good reason to decouple them. Luckily for @wilsonge , the code I've written for the FOFEncrypt package can be easily ported into the CMS library package (e.g. JAes) without many changes. If you're interested I can do it. The code is GPL2 and I've signed the JCA a long time ago so it should all be fairly straightforward. I just don't know if it makes sense to PR against staging or a different branch. Any feedback on that welcome (even on sidechannels – let's leave this issue's conversation clean).

@wilsonge wilsonge merged commit c1b0295 into joomla:staging Aug 19, 2016
@zero-24
Copy link
Contributor

zero-24 commented Aug 19, 2016

@wilsonge can you add the Milestone please?

If you're interested I can do it.

FYI: To not waste your time 😄

#11553
#11546

@brianteeman
Copy link
Contributor

The missing strings were listed in this issue #10798

@Bakual Bakual added this to the Joomla 3.6.3 milestone Aug 19, 2016
ggppdk pushed a commit to ggppdk/joomla-cms that referenced this pull request Aug 19, 2016
@nikosdion
Copy link
Contributor Author

nikosdion commented Aug 21, 2016 via email

@brianteeman
Copy link
Contributor

brianteeman commented Aug 21, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants