Topic on Extension talk:AutoSitemap

Invalid Response From Server

10
Summary by Martynov Maxim

Fixed in v1.6

Pukethirst (talkcontribs)

When I save an edit on a post, it gives the message above. The XML file is created and populated, and it appears that the edit on the page saves, but it still gives that error every time. As soon as i disable the extension the error goes away.

Product Version
MediaWiki 1.35.1
PHP 7.4.13 (apache2handler)
MySQL 8.0.22
ICU 66.1

can anyone help me figure out whats going on with this?

Martynov Maxim (talkcontribs)

Hi.


Can you please provide here the extension settings?

Pukethirst (talkcontribs)

everything is currently default, the only thing i have in my LocalSettings.php is wfLoadExtension( 'AutoSitemap' );

i didnt want to add anything else until everything was working as it should be.

Martynov Maxim (talkcontribs)

Do you have any other sitemap related extensions installed?

Pukethirst (talkcontribs)

this is the only one

Martynov Maxim (talkcontribs)

Could you please enable debug on your site (check Manual:How to debug for more details) and post here full error message after editing the page?

Josua Koenig (talkcontribs)

I have the same error with the Visual Editor: Invalid Response From Server. It saves the changes, but this is not shown in the Visual Editor.


I still use the Moderation extension. There it throws the following error:

Deprecated: Use of Revision::__construct was deprecated in MediaWiki 1.31. [Called from MediaWiki\Revision\RevisionStore::insertRevisionOn in /var/www/html/includes/Revision/RevisionStore.php at line 535] in /var/www/html/includes/debug/MWDebug.php on line 376

Deprecated: Use of RevisionInsertComplete hook (used in AutoSitemap::writeSitemap) was deprecated in MediaWiki 1.31. [Called from MediaWiki\HookContainer\HookContainer::run in /var/www/html/includes/HookContainer/HookContainer.php at line 137] in /var/www/html/includes/debug/MWDebug.php on line 376

Deprecated: Use of PageContentSaveComplete hook (used in AutoSitemap::writeSitemap) was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::run in /var/www/html/includes/HookContainer/HookContainer.php at line 137] in /var/www/html/includes/debug/MWDebug.php on line 376

I have deactivated the AutoSitemap extension at the moment. But I would like to use it, can someone help me?

Software Version
MediaWiki 1.36.0
PHP 7.4.19 (apache2handler)
MariaDB 10.5.9-MariaDB-1:10.5.9+maria~focal
ICU 63.1
Lua 5.1.5
Martynov Maxim (talkcontribs)

Hello.


Please try the latest extension version

Josua Koenig (talkcontribs)

Thanks a lot. Unfortunately, it doesn't quite work yet. Now it only has one error:

Deprecated:  Use of Revision::__construct was deprecated in MediaWiki 1.31. [Called from MediaWiki\Storage\PageUpdater::MediaWiki\Storage\{closure} in /var/www/html/includes/Storage/PageUpdater.php at line 1554] in /var/www/html/includes/debug/MWDebug.php on line 376

These hooks are also still deprecated:

Manual:Hooks/ArticleRevisionUndeleted

Manual:Hooks/TitleMoveComplete

Manual:Hooks/PageContentInsertComplete

Manual:Hooks/ArticleRollbackComplete

Now it works for me. My new extension.json:

{
 "name": "AutoSitemap",
 "author": "Dolfinus",
 "url": "https://www.mediawiki.org/wiki/Extension:AutoSitemap",
 "description": "Creates a XML Sitemap file automatically.",
 "version": "1.6",
 "license-name": "GPL-3.0+",
 "type": "other",
 "ExtensionMessagesFiles": {
   "AutoSitemap": "AutoSitemap.i18n.php"
 },
 "AutoloadClasses": {
   "AutoSitemap": "AutoSitemap_body.php"
 },
 "Hooks": {
   "AfterImportPage": [
     "AutoSitemap::writeSitemap"
   ],
   "PageDeleteComplete": [
     "AutoSitemap::writeSitemap"
   ],
   "ArticleUndelete": [
     "AutoSitemap::writeSitemap"
   ],
   "PageMoveComplete": [
     "AutoSitemap::writeSitemap"
   ],
   "ArticleMergeComplete": [
     "AutoSitemap::writeSitemap"
   ],
   "UploadComplete": [
     "AutoSitemap::writeSitemap"
   ],
   "RevisionUndeleted": [
     "AutoSitemap::writeSitemap"
   ],
   "RevisionRecordInserted": [
     "AutoSitemap::writeSitemap"
   ],
   "PageSaveComplete": [
     "AutoSitemap::writeSitemap"
   ]
 },
 "manifest_version": 1
}
Martynov Maxim (talkcontribs)

Thank you, I've updated hooks list.