Closed gdnwebmedia closed 2 years ago
Workaround added via https://github.com/pods-framework/pods/commit/66b3bed23466c1e8beb6a01ed1421ed81e025a71
Will be included in Pods 2.8.11 when it goes out.
Going to report this to the Tribe Common repo as well but this does look like an Oxygen compatibility issue specifically.
To be addressed by the Oxygen team, hopefully they don't release 4.0 without solving this.
https://github.com/soflyy/oxygen-bugs-and-features/issues/2595
Solved in Oxygen 4.0 Beta 1
Description
Thanks for the great work with Pods!
The only change I made was installing Oxygen builder 4.0.2 Alpha. I originally thought it was a problem with their installation but then I found a possible solution on the Pods code itself.
This is the full error message:
[Fatal error: Uncaught ArgumentCountError: Too few arguments to function Tribe\Service_Providers\Shortcodes::filter_do_shortcode_tag(), 2 passed in /home/[DOMAIN-NAME]/srdwszzbts/public_html/wp-includes/class-wp-hook.php on line 307 and exactly 4 expected in /home/[DOMAIN-NAME]/srdwszzbts/public_html/wp-content/plugins/pods/tribe-common/src/Tribe/Service_Providers/Shortcodes.php:118 Stack trace: #0 /home/[DOMAIN-NAME]/srdwszzbts/public_html/wp-includes/class-wp-hook.php(307): Tribe\Service_Providers\Shortcodes->filter_do_shortcode_tag() #1 /home/[DOMAIN-NAME]/srdwszzbts/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters() #2 /home/[DOMAIN-NAME]/srdwszzbts/public_html/wp-content/plugins/oxygen/component-framework/includes/templates.php(66): apply_filters() #3 /home/[DOMAIN-NAME]/srdwszzbts/public_html/wp-content/plugins/oxygen/component-framework/components/classes/link-wrapper.class.php(74): do_oxygen_elements() #4 in /home/[DOMAIN-NAME]/srdwszzbts/public_html/wp-content/plugins/pods/tribe-common/src/Tribe/Service_Providers/Shortcodes.php on line 118]
Version
2.8.10
Testing Instructions
1) I installed Oxygen Builder 4.0.2 Alpha 2) Cleared cache and shortcodes 3) wp-admin was working fine... 4) when tried to go to any page in the front end, I see the error
Screenshots / Screencast
No response
Possible Workaround
I went to /wp-content/plugins/pods/tribe-common/src/Tribe/Service_Providers/Shortcodes.php on line 118
located line 118:
public function filter_do_shortcode_tag( $output, $tag, $attr, $m ) { return $this->container->make( Manager::class )->filter_do_shortcode_tag( $output, $tag, $attr, $m ); }
and changed it to:
public function filter_do_shortcode_tag( $output = NULL, $tag = NULL, $attr = NULL, $m = NULL ) { return $this->container->make( Manager::class )->filter_do_shortcode_tag( $output, $tag, $attr, $m ); }
that temporarily solved the problem.
Site Health Information
Pods Package
No response