Support

Home Forums Event Espresso Premium EE3 on PHP 7.2

EE3 on PHP 7.2

Posted: December 31, 2018 at 3:39 pm

Viewing 2 reply threads


WebmasterPTC

December 31, 2018 at 3:39 pm

I see that EE4 is compatible with PHP 7 acc. to https://www.google.com/url?q=https://eventespresso.com/topic/php-7-2-errors/&sa=U&ved=0ahUKEwjC7J_Xj8vfAhWTFjQIHRLgBT0QFggHMAE&client=internal-uds-cse&cx=001896001632934406587:WMX1478031034&usg=AOvVaw0GCy9wfNQtAq7rb_ylgkkx

But what about EE3 ? When I run the compatibility checker plugin I get these errors and warnings:

Name: Event Espresso

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/tpc/dompdf/dompdf_config.inc.php
———————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————————————————
417 | WARNING | Use of __autoload() function is deprecated since PHP 7.2
———————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/tpc/dompdf/dompdf.php
—————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————————————-
227 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
—————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/tpc/dompdf/include/page_frame_reflower.cls.php
—————————————————————————————————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————————————————————————————————
237 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.
—————————————————————————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/tpc/dompdf/include/renderer.cls.php
—————————————————————————————————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————————————————————————————————
233 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.
—————————————————————————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/tpc/dompdf/include/autoload.inc.php
————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
————————————————————————————————————
83 | WARNING | Use of __autoload() function is deprecated since PHP 7.2
————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/tpc/dompdf/include/frame_reflower.cls.php
——————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
——————————————————————————————————————
233 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
——————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/tpc/dompdf/include/page_cache.cls.php
—————————————————————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
—————————————————————————————————————————————————-
73 | WARNING | Method name “Page_Cache::__query” is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
—————————————————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/tpc/dompdf/include/table_frame_decorator.cls.php
————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————-
189 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
————————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/tpc/dompdf/include/style.cls.php
———————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————————————————
790 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
———————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/tpc/dompdf/include/text_frame_reflower.cls.php
———————————————————————————————————————–
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
———————————————————————————————————————–
380 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
388 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
416 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
———————————————————————————————————————–

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/tpc/dompdf/include/text_renderer.cls.php
—————————————————————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
—————————————————————————————————————————————————-
155 | WARNING | Targeting a ‘switch’ control structure with a ‘continue’ statement is strongly discouraged and will throw a warning as of PHP 7.3.
—————————————————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/event-management/add_to_calendar.php
———————————————————————————————————————————————
FOUND 15 ERRORS AFFECTING 4 LINES
———————————————————————————————————————————————
19 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
19 | ERROR | Function mysql_escape_string() is deprecated since PHP 5.3 and removed since PHP 7.0; Use mysqli::real_escape_string() instead
20 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
20 | ERROR | Function mysql_escape_string() is deprecated since PHP 5.3 and removed since PHP 7.0; Use mysqli::real_escape_string() instead
20 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
20 | ERROR | Function mysql_escape_string() is deprecated since PHP 5.3 and removed since PHP 7.0; Use mysqli::real_escape_string() instead
21 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
21 | ERROR | Function mysql_escape_string() is deprecated since PHP 5.3 and removed since PHP 7.0; Use mysqli::real_escape_string() instead
21 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
21 | ERROR | Function mysql_escape_string() is deprecated since PHP 5.3 and removed since PHP 7.0; Use mysqli::real_escape_string() instead
21 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
21 | ERROR | Function mysql_escape_string() is deprecated since PHP 5.3 and removed since PHP 7.0; Use mysqli::real_escape_string() instead
21 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
21 | ERROR | Function mysql_escape_string() is deprecated since PHP 5.3 and removed since PHP 7.0; Use mysqli::real_escape_string() instead
27 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
———————————————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/event-management/event_list.php
—————————————————————————————————————–
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
—————————————————————————————————————–
14 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
30 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
—————————————————————————————————————–

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/category-management/index.php
—————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
—————————————————————————————————————
20 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
—————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-files/locale-management/index.php
————————————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
————————————————————————————————————————-
21 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
————————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-files/form-builder/groups/delete_group.php
———————————————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————————————————————————-
6 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
———————————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-files/form-builder/questions/delete_question.php
—————————————————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
—————————————————————————————————————————————-
6 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
—————————————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-files/coupon-management/add_discount.php
——————————————————————————————————————————–
FOUND 1 ERROR AFFECTING 1 LINE
——————————————————————————————————————————–
26 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
——————————————————————————————————————————–

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-files/coupon-management/delete_discount.php
———————————————————————————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————————————————————————–
6 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
———————————————————————————————————————————–

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-files/dashboard_widget.php
——————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
——————————————————————————————————————
11 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
——————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-files/venue-management/index.php
————————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
————————————————————————————————————————
20 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
————————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-files/staff-management/index.php
————————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
————————————————————————————————————————
21 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
————————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-files/email-manager/index.php
———————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————————————————————
20 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
———————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-files/email-manager/update_email.php
—————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————————————————-
18 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
—————————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-files/email-manager/add_email_to_db.php
——————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
——————————————————————————————————————————-
19 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
——————————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/functions/main.php
———————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————————————————
5 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
———————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/functions/time_date.php
—————————————————————————————————————-
FOUND 4 ERRORS AFFECTING 4 LINES
—————————————————————————————————————-
419 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
421 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
422 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
425 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
—————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-reports/process_payments.php
——————————————————————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
——————————————————————————————————————–
10 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
——————————————————————————————————————–

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/includes/admin-reports/event_list_attendees.php
————————————————————————————————————————
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
————————————————————————————————————————
25 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
53 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
————————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/eway/Eway.php
—————————————————————————————————————-
FOUND 2 ERRORS AFFECTING 1 LINE
—————————————————————————————————————-
210 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0; Use pcre instead
210 | ERROR | Function eregi() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_match() instead
—————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/worldpay/Worldpay.php
—————————————————————————————————————-
FOUND 2 ERRORS AFFECTING 1 LINE
—————————————————————————————————————-
165 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0; Use pcre instead
165 | ERROR | Function eregi() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_match() instead
—————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/worldpay/worldpaycallback.php
—————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
—————————————————————————————————————
10 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
—————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/usaepay_onsite/EE_Usaepay.class.php
———————————————————————————————————————
FOUND 5 ERRORS AND 1 WARNING AFFECTING 4 LINES
———————————————————————————————————————
223 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
1200 | ERROR | preg_replace() – /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
1240 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0; Use pcre instead
1240 | ERROR | Function ereg() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_match() instead
1241 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0; Use pcre instead
1241 | ERROR | Function ereg() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_match() instead
———————————————————————————————————————

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/realauth/Realauth.php
——————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
——————————————————————————————————-
17 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
——————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/paypal_pro/includes/paypal.nvp.class.php
————————————————————————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
————————————————————————————————————————–
26 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
————————————————————————————————————————–

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/paypal_pro/includes/paypal.ap.class.php
————————————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
————————————————————————————————————————-
22 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
————————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/firstdata/lphp.php
—————————————————————————————————-
FOUND 0 ERRORS AND 13 WARNINGS AFFECTING 13 LINES
—————————————————————————————————-
47 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
52 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
78 | WARNING | Function dl() is deprecated since PHP 5.3
143 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
148 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
618 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
625 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
628 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
641 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
661 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
668 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
671 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
684 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
—————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/paytrace/paytrace.class.php
————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————-
49 | ERROR | Functions can not have multiple parameters with the same name since PHP 7.0
————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/paypal/Paypal.php
—————————————————————————————————————-
FOUND 2 ERRORS AFFECTING 1 LINE
—————————————————————————————————————-
168 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0; Use pcre instead
168 | ERROR | Function eregi() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_match() instead
—————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/wepay/Wepay.php
—————————————————————————————————————-
FOUND 2 ERRORS AFFECTING 1 LINE
—————————————————————————————————————-
375 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0; Use pcre instead
375 | ERROR | Function eregi() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_match() instead
—————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/nab/Nab.php
—————————————————————————————————————-
FOUND 2 ERRORS AFFECTING 1 LINE
—————————————————————————————————————-
131 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed since PHP 7.0; Use pcre instead
131 | ERROR | Function eregi() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_match() instead
—————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/gateways/stripe/stripe-php-1.5.19/lib/Stripe/Object.php
———————————————————————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————————————————————————————————-
171 | WARNING | Method name “Stripe_Object::__toArray” is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
———————————————————————————————————————————————————-

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/class/fpdf/font/makefont/makefont.php
————————————————————————————————————–
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————–
304 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
————————————————————————————————————–

FILE: /Users/rainer/Sites/riverdaleptc/wp-content/plugins/event-espresso/class/fpdf/fpdf.php
————————————————————————————————————
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
————————————————————————————————————
75 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
1076 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
1080 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
1571 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
————————————————————————————————————


Josh

  • Support Staff

January 3, 2019 at 8:05 am

Hi Rainer,

In practice, EE3 mostly works with PHP7, but it’s recommended to update to EE4 if you’re going to update to PHP7.


WebmasterPTC

January 3, 2019 at 9:43 pm

Hi Josh,
thank you for your answer re. PHP 7. I’d like to go to EE4, but I have to wait for recurring events support. On trello I saw that it’s in-progress.
Rainer.

Viewing 2 reply threads

The support post ‘EE3 on PHP 7.2’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso