Jump to content

Extension talk:AuthJoomla2/Flow

About this board

Chdh (talkcontribs)

I have written a successor to AuthJoomla2: AuthJoomla 2023

I wonder if anyone is still interested.

Reply to "AuthJoomla 2023"

MediaWiki Login plugin

1
NH35 (talkcontribs)

Hi,

How to configure MediaWiki Login plugin in Joomla!? I mean Cookie Prefix and Cookie Path.

Reply to "MediaWiki Login plugin"
98.174.255.150 (talkcontribs)

Generates sporadic errors:

CAS update failed on user_touched for user ID '10' (read from slave); the version of the user to be saved is older than the current version.

#0 /home/seriou37/public_html/secure/secwiki/extensions/AuthJoomlaEasy/AuthJoomlaEasy.php(366): User->saveSettings()

#1 /home/seriou37/public_html/secure/secwiki/extensions/AuthJoomlaEasy/AuthJoomlaEasy.php(138): AuthJoomla2->updateUser(User)

#2 [internal function]: Auth_joomla_autologin_hook(User, NULL)

#3 /home/seriou37/public_html/secure/secwiki/includes/Hooks.php(195): call_user_func_array(string, array)

#4 /home/seriou37/public_html/secure/secwiki/includes/user/User.php(1196): Hooks::run(string, array, string)

#5 /home/seriou37/public_html/secure/secwiki/includes/user/User.php(408): User->loadFromSession()

#6 /home/seriou37/public_html/secure/secwiki/includes/user/User.php(2069): User->load()

#7 /home/seriou37/public_html/secure/secwiki/includes/user/User.php(3363): User->getId()

#8 /home/seriou37/public_html/secure/secwiki/includes/MediaWiki.php(690): User->isLoggedIn()

#9 /home/seriou37/public_html/secure/secwiki/includes/MediaWiki.php(519): MediaWiki->main()

#10 /home/seriou37/public_html/secure/secwiki/index.php(43): MediaWiki->run()

#11 {main}

Attempting to save edits results in error:

Sorry! We could not process your edit due to a loss of session data.

You might have been logged out. Please verify that you're still logged in and try again. If it still does not work, try logging out and logging back in, and check that your browser allows cookies from this site.

Logging in and out makes no difference, nor does clearing the cache.

Zer00CooL (talkcontribs)

Two users and more need help for this issue. Bridge Joomla 3.X + AuthJoomla2

My search in french : https://www.visionduweb.eu/wiki/index.php?title=Gerer_et_installer_des_extensions_avec_MediaWiki

Same errors :

2016-11-07 11:47:43: Fatal exception of type MWException

À la fin du fichier LocalSettings.php ajouter : $wgShowExceptionDetails = true;

Permet d'afficher les détails de l'erreur. L'erreur affiche maintenant :

MWException from line 3811 of /htdocs/wiki/includes/user/User.php: CAS update failed on user_touched for user ID '3' (read from slave); the version of the user to be saved is older than the current version.

Backtrace

  1. 0 /htdocs/wiki/extensions/AuthJoomlaEasy/AuthJoomlaEasy.php(366): User->saveSettings()
  2. 1 /htdocs/wiki/extensions/AuthJoomlaEasy/AuthJoomlaEasy.php(138): AuthJoomla2->updateUser(User)
  3. 2 [internal function]: Auth_joomla_autologin_hook(User, NULL)
  4. 3 /htdocs/wiki/includes/Hooks.php(195): call_user_func_array(string, array)
  5. 4 /htdocs/wiki/includes/user/User.php(1196): Hooks::run(string, array, string)
  6. 5 /htdocs/wiki/includes/user/User.php(408): User->loadFromSession()
  7. 6 /htdocs/wiki/includes/user/User.php(5043): User->load()
  8. 7 /htdocs/wiki/includes/user/User.php(2750): User->loadOptions()
  9. 8 /htdocs/wiki/includes/context/RequestContext.php(363): User->getOption(string)
  10. 9 /htdocs/wiki/includes/Message.php(679): RequestContext->getLanguage()
  11. 10 /htdocs/wiki/includes/context/RequestContext.php(457): Message->setContext(RequestContext)
  12. 11 [internal function]: RequestContext->msg(string)
  13. 12 /htdocs/wiki/includes/context/ContextSource.php(190): call_user_func_array(array, array)
  14. 13 /htdocs/wiki/includes/OutputPage.php(973): ContextSource->msg(string)
  15. 14 /htdocs/wiki/includes/page/Article.php(504): OutputPage->setPageTitle(string)
  16. 15 /htdocs/wiki/includes/actions/ViewAction.php(44): Article->view()
  17. 16 /htdocs/wiki/includes/MediaWiki.php(503): ViewAction->show()
  18. 17 /htdocs/wiki/includes/MediaWiki.php(288): MediaWiki->performAction(Article, Title)
  19. 18 /htdocs/wiki/includes/MediaWiki.php(745): MediaWiki->performRequest()
  20. 19 /htdocs/wiki/includes/MediaWiki.php(519): MediaWiki->main()
  21. 20 /htdocs/wiki/ index.php(43): MediaWiki->run()
  22. 21 {main}
  23. ------------------------ My way ------------------------
  24. # Ajouter cette ligne pourrait résoudre le problème ? Sans conviction - require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); (??)
  25. ---------
  26. # Une autre erreur Suite à la modification d'une page, l'erreur suivante est affichée, la page ne s'enregistre pas, ou, après plusieurs essais. Désolé, nous ne pouvons enregistrer votre modification à cause d’une perte d’informations concernant votre session. Vous avez peut-être été déconnecté. Veuillez vérifier que vous êtes toujours connecté et réessayer. Si cela échoue de nouveau, essayez en vous déconnectant, puis en vous reconnectant, et vérifiez que votre navigateur accepte les cookies de ce site.
  27. ---------
  28. Dans le fichier LocalSettings.php je n'ai pas configuré de cache. $wgMainCacheType = CACHE_NONE; $wgMemCachedServers = [];
  29. ---------
  30. Il faudrait mettre un répertoire session a la racine du site ? Testé. Ne fonctionne pas mieux.
Reply to "Not working with 1.27"

Patch when using via command line

1
78.236.210.211 (talkcontribs)

When using other extensions via command line (in my case, completing HaloACL's setup), a simple patch is needed :

Line 36

- require_once ( 'includes/AuthPlugin.php' );

+ require_once ( dirname(__FILE__) . '/../../includes/AuthPlugin.php' );

Reply to "Patch when using via command line"

Parameters Instructions

1
173.13.231.44 (talkcontribs)

It would be most helpful if you could provide more detailed info on how to modify the following parameters ;

  • $wgAuthJoomla_MySQL_Host
  • $wgAuthJoomla_MySQL_Username
  • $wgAuthJoomla_MySQL_Password
  • $wgAuthJoomla_MySQL_Database
  • $wgAuthJoomla_TablePrefix
  • $wgAuthJoomla_Path

The first four are easy enough I think.

The fifth ($wgAuthJoomla_TablePrefix) is hard to identify.

The last, ($wgAuthJoomla_Path) does not exist at all within the code as far as I can tell.

Maybe adding some more comment lines to document where to make substitutions so beginners don't struggle.

Reply to "Parameters Instructions"
There are no older topics