Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
214 views
in Plugins by
edited by

Gate Overflow posted a plugin that was created by @pupi1985.
The problem that some of us are facing is that once the plugin is activated, the site throws errors and it's unusable. 

Below are the errors:

AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Class "PUPI_SL\\Config" not found in /home/admin/domains/domain.com/public_html/qa-plugin/q2a-social-login-main/qa-plugin.php:22\nStack trace:\n#0 /home/admin/domains/domain.com/public_html/qa-include/Q2A/Plugin/PluginManager.php(91): require_once()\n#1 /home/admin/domains/domain.com/public_html/qa-include/Q2A/Plugin/PluginManager.php(114): Q2A_Plugin_PluginManager->loadPlugins()\n#2 /home/admin/domains/domain.com/public_html/qa-include/qa-base.php(405): Q2A_Plugin_PluginManager->loadPluginsAfterDbInit()\n#3 /home/admin/domains/biblyoverflow.com/public_html/qa-include/qa-page.php(36): qa_initialize_postdb_plugins()\n#4 /home/admin/domains/domain.com/public_html/qa-include/qa-index.php(189): require('...')\n#5 /home/admin/domains/domain.com/public_html/index.php(27): require('...')\n#6 {main}\n  thrown in /home/admin/domains/domain.com/public_html/qa-plugin/q2a-social-login-main/qa-plugin.php on line 22'

I have no idea what is causing this or how to fix it. If I can fix the first error then that should take care of the other errors. 

The plugin  readme.md  file gives no information about the plugin. I am hoping someone can share some light on this for me from this community. Google has not been any help with this.

Server Operating System: Ubuntu 22.0 - Linux
PHP version: 8.3.13
Q2A version: 1.8.8

Q2A version: 1.8.8
by
+1
I'm guessing that might have something to do with path location for Windows vs Linux filesystems.
Either that or a case sensitive 'path location' somewhere, that is allowed on windows, but not on Linux. Just can't point it out where exactly.

For me the plugin seems to be working fine. I'm running on PHP 8.2; Q2A 1.8.8; on Windows.
by
+1
Thank you @gold-developer for confirming. I see that line number 22 on qa-plugin.php is the problem. Some Windows user can fix it and give a PR.

I'm brainstorming a setup to create a demo q2a site with all working plugins included. The difference from the official website will be the addition of working plugins and only open code will be part of it. Will try to do it before 2024 end.
by
I am leaning more on a case sensitive path issue somewhere, just not sure where yet. However, I could be wrong but, all the information that I have gathered is pointing to that.
by
@GATEOverflow That's great for live testing the available free open-source plugins. Although it might be too high maintenance in the long run.

I've created a pull request for the Q2A Docs with a solution to show badges for the up-to-date plugins.
If it ends up being merged, people just need to update their plugins `metadata.json` files once a year, and it will automatically reflect on the Q2A Docs. (screenshots included there)
https://github.com/q2a/q2a.github.io/pull/90

* Plugins that have been updated within a year, will show up with a - Green badge.
* Plugins updated within a 2 year span - Blue badge
* 3 years - Yellow
* 4 years and up - Grey
* Older plugins that do not have a `metadata.json` file will show as - Unknown

If we know that the plugins we use/develop are currently working properly, we just have to update their `metadata.json` dates once a year, or create pull requests for other people's plugins that we know they're working properly.

> NOTE: Only the 'date' needs to be updated on the `metadata.json` file, the plugin version can remain the same.

Please log in or register to answer this question.

...