On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hi,

    After upgrading my Modx site form 2.3.5 to the latest version and pimping my server from php 5.6 to php 7.1 I get this error :

    Backend fatal error: PHP Fatal error:  'break' not in the 'loop' or 'switch' context in xxx/public_html/core/components/blox/inc/adodb-time.inc.php on line 1009\n, referer: https:xxxx.com/


    How can I fix this please ?

    The page that uses Migx Calendar with BLOX is a White Screen Of Death Now ...

    I commented out that function on line 1009, and the page loads again, but I don't know if this will impair the good functioning of the Migx Calendar.
    Now I get another (not WSOD) PHP ERROR:

    Backend log: PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; xettcal has a deprecated constructor in xxx/public_html/core/components/blox/inc/xettcal.class.inc.php on line 2\n, referer: https:xxxx.com/



    thanks

    This question has been answered by jimmyjazz. See the first response.

    [ed. note: sriananda last edited this post 1 year, 10 months ago.]
    • Quote from: sriananda at Aug 15, 2017, 11:30 AM
      Hi,

      After upgrading my Modx site form 2.3.5 to the latest version and pimping my server from php 5.6 to php 7.1 I get this error :

      Backend fatal error: PHP Fatal error:  'break' not in the 'loop' or 'switch' context in xxx/public_html/core/components/blox/inc/adodb-time.inc.php on line 1009\n, referer: https:xxxx.com/


      How can I fix this please ?

      The page that uses Migx Calendar with BLOX is a White Screen Of Death Now ...

      I commented out that function on line 1009, and the page loads again, but I don't know if this will impair the good functioning of the Migx Calendar.
      Now I get another (not WSOD) PHP ERROR:

      Backend log: PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; xettcal has a deprecated constructor in xxx/public_html/core/components/blox/inc/xettcal.class.inc.php on line 2\n, referer: https:xxxx.com/



      thanks

      Did you find a solution for this?

      I'm facing the same issue
      • discuss.answer
        I fixed it by removing 'break' from the line of code