ckeditor_insert.module on line 25 has a 'break' outside the switch statement.
In PHP7 that's a fatal error.
Moving the break just before closing the statement fixes it.

Comments

PaoloN created an issue. See original summary.

donnycarette’s picture

This patch will fix the issue

pene’s picture

edit: correct patch is on the way.

pene’s picture

The #2 contained "sites/all/modules/contrib/" in the path. Fixed.

wOOge’s picture

Status: Active » Reviewed & tested by the community

#4 Applies cleanly to dev dated 2015-May-11and I can enable the module.

workplaysleep’s picture

I can confirm that this works, would be great if this one is applied to RC & DEV

  • SebCorbin committed 686d4bf on 7.x-1.x authored by Pene
    Issue #2665948 by Pene, DonnyCarette: PHP7 Fatal Error - 'break' outside...
SebCorbin’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

polmaresma’s picture

Patch #4 worked for me after setting the file location.
Thank's for all!

denix’s picture

Version: 7.x-1.x-dev » 7.x-1.1

Can we have a new version 1.2 with this patch? This is quite an annoying bug now that PHP7.x is so widely distributed. Thanks

SebCorbin’s picture

denix’s picture

Sorry, my bad. I inherited an old dev version of this module and this is why it was not showing up in my drush up command. I have fixed it now and opened #3007388: Drupal 7 and PHP 5 compatibility with a patch for PHP5 support. Thanks again for your work!