Support

Home Forums Event Espresso Premium EE4 People Addon Not Working after Upgrade to PHP 7+

EE4 People Addon Not Working after Upgrade to PHP 7+

Posted: July 23, 2017 at 9:12 pm

Viewing 3 reply threads


website@secpta.net

July 23, 2017 at 9:12 pm

Hello,

I just had my hosting provider (WP Engine) upgrade the server my site sits on to PHP 7. EE then stopped working when you go to an event page – it would show the image and the status icon (i.e., upcoming, etc), but nothing else below (literally nothing else – no further details, no ticket selector). I contacted WP Engine and they helped me identify that the People Addon was causing some error that then caused a 500 internal server error on any of my event pages. When I deactivated the People Addon plugin, everything looks to be working back to normal. I even re-installed the EE core and the people addon to see if I could resurrect the functionality of the plugin, and it stilled caused the error.

Any idea why this is happening? I would like to be able to use the people addon functionality if at all possible.

Also, WP Engine’s PHP7 compatability checker is showing the following errors in for the EE core plugin. Can you let me know if I should be concerned about these errors (i.e., are they false positives)?:

`FILE: /nas/content/live/secpta/wp-content/plugins/event-espresso-core-reg/core/libraries/rest_api/Model_Data_Translator.php
—————————————————————————————————————————
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————————————————
201 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
—————————————————————————————————————————

FILE: /nas/content/live/secpta/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Activation.helper.php
—————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————————————-
1709 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
—————————————————————————————————————-

FILE: /nas/content/live/secpta/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/dompdf.php
—————————————————————————————————————–
FOUND 1 ERROR AFFECTING 1 LINE
—————————————————————————————————————–
184 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; use preg_split instead
—————————————————————————————————————–

FILE: /nas/content/live/secpta/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/table_frame_decorator.cls.php
——————————————————————————————————————————————–
FOUND 1 ERROR AFFECTING 1 LINE
——————————————————————————————————————————————–
173 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
——————————————————————————————————————————————–

FILE: /nas/content/live/secpta/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/page_cache.cls.php
—————————————————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
—————————————————————————————————————————————————
41 | WARNING | Method name “Page_Cache::__query” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
—————————————————————————————————————————————————


Tony

  • Support Staff

July 24, 2017 at 5:51 am

Hi there,

I contacted WP Engine and they helped me identify that the People Addon was causing some error that then caused a 500 internal server error on any of my event pages.

Do you have the error that was being thrown? It should be within the servers error logs.

Of it you enable WP_DEBUG on the site and active the People add-on again you should see the error on the event page.

Also, WP Engine’s PHP7 compatability checker is showing the following errors in for the EE core plugin. Can you let me know if I should be concerned about these errors (i.e., are they false positives)?:

The errors posted are mostly from within DOMPDF which is a library we use to generate the PDF’s, they won’t be causing the fatal error.

I run EE and the people add-on on multiple test sites using PHP 7, are you using the latest version of EE core (4.9.44) and people add-on (1.0.6)?


website@secpta.net

July 24, 2017 at 8:27 pm

Hi Tony,

Thanks for the quick response. Yes, I am using the versions you mentioned. It looks like there are a couple of errors being generated – here are a few.

Thanks,
Marshall

[Mon Jul 24 02:09:19.362933 2017] [:error] [pid 9975] [client 184.59.139.146:64156] PHP Fatal error: Uncaught Error: Call to a member function get_first_related() on null in /nas/content/live/secpta/wp-content/plugins/eea-people-addon/admin/people/templates/person_to_cpt_details_metabox_content.template.php:25\nStack trace:\n#0 /nas/content/live/secpta/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(387): include()\n#1 /nas/content/live/secpta/wp-content/plugins/eea-people-addon/admin/people/People_Admin_Page.core.php(830): EEH_Template::display_template(‘/nas/content/li…’, Array)\n#2 [internal function]: People_Admin_Page->person_to_cpt_details(Object(WP_Post), Array)\n#3 /nas/content/live/secpta/wp-admin/includes/template.php(1050): call_user_func(Array, Object(WP_Post), Array)\n#4 /nas/content/live/secpta/wp-admin/edit-form-advanced.php(702): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))\n#5 /nas/content/live/secpta/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(1456): include_once(‘/nas/content/li…’)\n#6 [internal function]: EE_A in /nas/content/live/secpta/wp-content/plugins/eea-people-addon/admin/people/templates/person_to_cpt_details_metabox_content.template.php on line 25, referer: https://www.secpta.net/wp-admin/admin.php?page=espresso_people&action=edit&post=11541&edit_nonce=0499d04672&return=default

[Mon Jul 24 02:08:38.395425 2017] [:error] [pid 7229] [client 184.59.139.146:64036] PHP Fatal error: Uncaught Error: Call to a member function get_first_related() on null in /nas/content/live/secpta/wp-content/plugins/eea-people-addon/admin/people/templates/person_to_cpt_details_metabox_content.template.php:25\nStack trace:\n#0 /nas/content/live/secpta/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(387): include()\n#1 /nas/content/live/secpta/wp-content/plugins/eea-people-addon/admin/people/People_Admin_Page.core.php(830): EEH_Template::display_template(‘/nas/content/li…’, Array)\n#2 [internal function]: People_Admin_Page->person_to_cpt_details(Object(WP_Post), Array)\n#3 /nas/content/live/secpta/wp-admin/includes/template.php(1050): call_user_func(Array, Object(WP_Post), Array)\n#4 /nas/content/live/secpta/wp-admin/edit-form-advanced.php(702): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))\n#5 /nas/content/live/secpta/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(1456): include_once(‘/nas/content/li…’)\n#6 [internal function]: EE_A in /nas/content/live/secpta/wp-content/plugins/eea-people-addon/admin/people/templates/person_to_cpt_details_metabox_content.template.php on line 25, referer: https://www.secpta.net/wp-admin/admin.php?page=espresso_people&action=default&_wpnonce=6f85e38650&default_nonce=6f85e38650

[Mon Jul 24 02:10:03.582341 2017] [:error] [pid 8712] [client 184.59.139.146:64422] PHP Fatal error: Uncaught Error: Call to a member function get_first_related() on null in /nas/content/live/secpta/wp-content/plugins/eea-people-addon/admin/people/templates/person_to_cpt_details_metabox_content.template.php:25\nStack trace:\n#0 /nas/content/live/secpta/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(387): include()\n#1 /nas/content/live/secpta/wp-content/plugins/eea-people-addon/admin/people/People_Admin_Page.core.php(830): EEH_Template::display_template(‘/nas/content/li…’, Array)\n#2 [internal function]: People_Admin_Page->person_to_cpt_details(Object(WP_Post), Array)\n#3 /nas/content/live/secpta/wp-admin/includes/template.php(1050): call_user_func(Array, Object(WP_Post), Array)\n#4 /nas/content/live/secpta/wp-admin/edit-form-advanced.php(702): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))\n#5 /nas/content/live/secpta/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(1456): include_once(‘/nas/content/li…’)\n#6 [internal function]: EE_A in /nas/content/live/secpta/wp-content/plugins/eea-people-addon/admin/people/templates/person_to_cpt_details_metabox_content.template.php on line 25, referer: https://www.secpta.net/wp-admin/admin.php?page=espresso_people&action=default&default_nonce=6f85e38650


Josh

  • Support Staff

August 3, 2017 at 2:21 pm

Hi Marshall,

I’m sorry for the delay. Akismet flagged your reply as spam (quite likely the lengthy duplicated error messages triggered the spam filter). Anyway the fatal error is an indication of some broken database relationships. Were any of the tables within the database directly edited?

Viewing 3 reply threads

The support post ‘EE4 People Addon Not Working after Upgrade to PHP 7+’ 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