Support

Home Forums Event Espresso Premium EE_Admin_Page error

EE_Admin_Page error

Posted: January 26, 2024 at 6:23 pm

Viewing 4 reply threads


Meg Benedicte

January 26, 2024 at 6:23 pm

I need help resolving this issue.

Error Details
=============
An error of type E_ERROR was caused in line 1156 of the file /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php. Error message: Uncaught TypeError: EE_Admin_Page_CPT::modify_edit_post_link(): Argument #1 ($link) must be of type string, null given, called in /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/class-wp-hook.php on line 326 and defined in /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php:1165
Stack trace:
#0 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/class-wp-hook.php(326): EE_Admin_Page_CPT->modify_edit_post_link()
#1 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/link-template.php(1499): apply_filters()
#3 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Traits/Helpers/Wp.php(584): get_edit_post_link()
#4 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Traits/Helpers/Vue.php(274): AIOSEO\Plugin\Common\Utils\Helpers->getPostEditLink()
#5 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Traits/Helpers/Vue.php(69): AIOSEO\Plugin\Common\Utils\Helpers->setPostData()
#6 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Admin/PostSettings.php(88): AIOSEO\Plugin\Common\Utils\Helpers->getVueData()
#7 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/class-wp-hook.php(324): AIOSEO\Plugin\Common\Admin\PostSettings->enqueuePostSettingsAssets()
#8 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#9 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#10 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-admin/admin-header.php(118): do_action()
#11 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-admin/edit-form-advanced.php(425): require_once(‘/home/92406.clo…’)
#12 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(1416): include_once(‘/home/92406.clo…’)
#13 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(1477): EE_Admin_Page_CPT->loadEditorTemplate()
#14 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(1149): EE_Admin_Page_CPT->_edit_cpt_item()
#15 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(399): EE_Admin_Page->_route_admin_request()
#16 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(747): EE_Admin_Page_CPT->_load_page_dependencies()
#17 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/class-wp-hook.php(324): EE_Admin_Page->load_page_dependencies()
#18 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#19 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#20 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-admin/admin.php(237): do_action()
#21 {main}

Next RuntimeException: Page route "_edit_cpt_item" with the supplied arguments () threw the following exception: EE_Admin_Page_CPT::modify_edit_post_link(): Argument #1 ($link) must be of type string, null given, called in /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/class-wp-hook.php on line 326 in /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php:1156
Stack trace:
#0 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(399): EE_Admin_Page->_route_admin_request()
#1 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(747): EE_Admin_Page_CPT->_load_page_dependencies()
#2 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/class-wp-hook.php(324): EE_Admin_Page->load_page_dependencies()
#3 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /home/92406.cloudwaysapps.com/bqhnabkvak/public_html/wp-admin/admin.php(237): do_action()
#6 {main}
thrown


Rio

  • Support Staff

January 26, 2024 at 7:39 pm

Can you give us information about your install,

PHP version
WP Version
EE Version.

Can you also tell us, if you can still access your site backend? Do you remember what was the recent changes you made and you notice this issue?

Thanks


Meg Benedicte

January 29, 2024 at 6:02 am

WordPress version 6.4.2
Active theme: Divi (version 4.23.4)
Current plugin: Event Espresso (version 5.0.11.p)
PHP version 8.0.30

yes, the backend is accessible. Besides some plugin updates nothing has changed.


Tony

  • Support Staff

January 29, 2024 at 6:45 am

AIOSEO\Plugin\Common\Utils\Helpers->getPostEditLink()

It looks like AllInOneSEO is hooking in there and possibly making changes to return null for the post link, EE is expecting a value but getting nothing so throws an error.

Digging into this currently.


Tony

  • Support Staff

February 1, 2024 at 1:06 pm

Hi there,

We’ll have a fix for this in the next version of Event Espresso (due out on Monday)/

AIOSEO is calling for the post link and null is being returned whilst a string is expected, we will be relaxing the typing a little to allow for this and prevent the fatal.

You can temporarily stop that fatal by changing plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php:1165 from this:

public function modify_edit_post_link(string $link, int $id): string

To this:

public function modify_edit_post_link(?string $link, int $id): ?string

Viewing 4 reply threads

The support post ‘EE_Admin_Page error’ 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