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

install error Required plugin not found #10

Open
gitban78 opened this issue Jan 14, 2025 · 12 comments
Open

install error Required plugin not found #10

gitban78 opened this issue Jan 14, 2025 · 12 comments

Comments

@gitban78
Copy link

Integrates Ultimate Member with Polylang. V 1.2.1

Ultimate Member V 2.9.1

install error

Required plugin not found

@umdevelopera
Copy link
Owner

Hello @gitban78
Have you installed both the Ultimate Member and Polylang plugins before installing the extension?

@gitban78
Copy link
Author

gitban78 commented Jan 16, 2025

YES
https://imgur.com/a/RNcGD4i

@umdevelopera
Copy link
Owner

Hello @gitban78
I don't see the Polylang plugin on the screenshot you attached. Have you installed this plugin?
Install the Polylang plugin if you didn't install it before. You can download this plugin here: https://wordpress.org/plugins/polylang/

@zodit
Copy link

zodit commented Feb 3, 2025

I have the same problem with Polylang PRO 3.6.5 and Ultimate Member 2.9.2.
I tried to comment the register_activation_hook and the controls in um_polylang_check_dependencies but it is still asking for dependencies, i don't know what else to do.

@gitban78
Copy link
Author

gitban78 commented Feb 4, 2025

I don't see the Polylang plugin on the screenshot you attached. Have you installed this plugin?
Install the Polylang plugin if you didn't install it before. You can download this plugin here:

Of course Polylang is enabled.

@umdevelopera
Copy link
Owner

umdevelopera commented Feb 4, 2025

Hello @zodit

Please take a screenshot with the Plugins table like this:
Image

Please also verify that the Polylang plugin's folder is polylang, not any other.
Try to remove this from the code if the Polylang plugin's folder differ from polylang.
Image

@zodit
Copy link

zodit commented Feb 5, 2025

Hello

I changed the row 11 with "polylang-pro". I was not aware of this instruction in the comment.
Mind that "polylang" and "polylang-pro" can't be installed together, because the PRO is standalone.
Also, the folders are different, in my case it is "polylang-pro".
I think you should change your code to support both versions.
Now I have the plugin installed but I am not sure if everything works as intended, I could do a test. What should I check to make sure it is working?

Here is the screenshot now:

Image

@umdevelopera
Copy link
Owner

Hello,

It may seem strange, but formally Polylang and Polylang PRO are two different plugins. WordPress identifies a plugin by its folder name and the name of the main plugin file. Although usually renaming the folder is not critical, it is better not to do it.

I created this extension for the Polylang plugin and have never tested it with the Polylang PRO. I don't have the Polylang PRO plugin.

@zodit
Copy link

zodit commented Feb 5, 2025

Yes, they are two different plugins. Sometimes developers make a fee "lite" version and then they add a "pro" extension. So the third parties can check for a class or a constant in the free version (like Elementor) and they are not concerned about Elementor PRO.
This is not the case of Polylang, they decided otherwise. I am not sure how you could check for the existence of any of these two plugins.
Now, I test the plugin and let you know if there are any issues. My goal is to fix the problems with forms and the logout link. They are configured for one language, and not working properly for the others.

@umdevelopera
Copy link
Owner

Thank you.

I thought the logout redirect URL is localized in the latest version. I'll test this again.

Both pages and forms need to be duplicated for every language. Then put a proper form shortcode into pages. So, the language of the form should match the language of the page.

Note that duplication of forms allows you to translate the field "Title", "Label", "Placeholder" and "Help Text". But you can not translate "Edit Choices" this way.
This is because Ultimate Member does not support the name-value structure for dropdown options unless you use the “Choices Callback” feature. This is a headache for translation. I thought about how to get around this, but with the existing hooks, all solutions turn out to be complex and unreliable.

@zodit
Copy link

zodit commented Feb 6, 2025

Sadly, after further evaluation, I had to uninstall your plugin, I think it is not compatible with Polylang PRO.

The website has serious issues:

  1. It crashes with "internal server error" when I switch language (I am not using your language switcher, I made my own, they are simple links though).
  2. It crashes after admin login.
  3. The weird thing is that I can't find errors in the error log, so I don't have any clue

For the forms I duplicated them, this is ok. Then, I understood how the logout is working: only the page of the main language is working, and that ID is configured in Ultimate Member. I use that page for all languages, when the user logout he is redirected to the home page of the main language, this is a minor issue and I am ok with that.

@umdevelopera
Copy link
Owner

Thanks for the info. I can't check it myself because I don't have Polylang PRO. I think I should add a warning to the extension description not to use it with Polylang PRO.

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

3 participants