<![CDATA[ Error in BlOX core with PHP 7.1 - My Forums]]> https://forums.modx.com/thread/?thread=102690 <![CDATA[Error in BlOX core with PHP 7.1]]> https://forums.modx.com/thread/102690/error-in-blox-core-with-php-7-1#dis-post-553187
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]]>
sriananda Aug 15, 2017, 11:30 AM https://forums.modx.com/thread/102690/error-in-blox-core-with-php-7-1#dis-post-553187
<![CDATA[Re: Error in BlOX core with PHP 7.1 (Best Answer)]]> https://forums.modx.com/thread/102690/error-in-blox-core-with-php-7-1#dis-post-563420 jimmyjazz Jan 03, 2019, 01:54 PM https://forums.modx.com/thread/102690/error-in-blox-core-with-php-7-1#dis-post-563420 <![CDATA[Re: Error in BlOX core with PHP 7.1]]> https://forums.modx.com/thread/102690/error-in-blox-core-with-php-7-1#dis-post-563404 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]]>
jimmyjazz Dec 31, 2018, 12:55 PM https://forums.modx.com/thread/102690/error-in-blox-core-with-php-7-1#dis-post-563404