Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Critical error "Uncaught Error: Call to undefined function trailingslashit()" after updating plugin to 4.5.15 #203

Closed
relaxdd opened this issue Dec 2, 2022 · 4 comments

Comments

@relaxdd
Copy link

relaxdd commented Dec 2, 2022

Server (please complete the following information)

  • Operating System
  • PHP Version => 7.4
  • Web Server => OpenServer
  • Using PHP-FPM? => No
  • Using WordPress Cron? => No
  • WordPress version 6.1.1

How did you install the plugin?
Did you install via composer, a git checkout, wordpress.org, freemius? => No

@jawngee
Copy link
Contributor

jawngee commented Dec 2, 2022

Did it say what file or line? trailingslashit is a wordpress function so it should always be available, unless you are trying to run this code outside of wordpress somehow.

@jawngee
Copy link
Contributor

jawngee commented Dec 2, 2022

Yeah 4.5.15 doesn't even use trailingslashit in any of its changes (see 0326322).

4.5.14 changes do have the use of trailingslashit in one place in the changeset but its in a class that has already been using that function for six years now.

My guess is that something is either messed up with your wordpress install, or if you updated the plugin from wordpress.org or freemius, maybe the plugin didn't install 100%. I'd delete the plugin and reinstall it again.

I'm going to close this for now, but if you can get me a file and line number to see where the error is, I'll take a look at it.

@jawngee jawngee closed this as completed Dec 2, 2022
@jawngee
Copy link
Contributor

jawngee commented Dec 4, 2022

@relaxdd did you get it sorted?

@relaxdd
Copy link
Author

relaxdd commented Dec 4, 2022

@jawngee yes, most likely the problem was that the plugin was not updated correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants