Skip to content
This repository has been archived by the owner on Jan 28, 2025. It is now read-only.

Problem with adding a site to the configuration #249

Closed
antoine2711 opened this issue Dec 12, 2024 · 3 comments
Closed

Problem with adding a site to the configuration #249

antoine2711 opened this issue Dec 12, 2024 · 3 comments

Comments

@antoine2711
Copy link

When I try to install a new wiki (https://wiki.reseauadn.ca), I get this error:
Unable to find RSD URL in page: wiki.reseauadn.ca In addition, libxml had the following errors: , Misplaced DOCTYPE declaration

mw sites:add --url wiki.reseauadn.ca

In ReallySimpleDiscovery.php line 49:
                                                                                                                                   
  Unable to find RSD URL in page: wiki.reseauadn.ca In addition, libxml had the following errors: , Misplaced DOCTYPE declaration  
   (line 1), htmlParseStartTag: misplaced <html> tag                                                                               
   (line 2), htmlParseStartTag: misplaced <head> tag                                                                               
   (line 3), htmlParseStartTag: misplaced <body> tag                                                                               
   (line 21), Tag nav invalid                                                                                                      
   (line 139), Tag nav invalid                                                                                                     
   (line 157), Tag nav invalid                                                                                                     
   (line 174), Tag nav invalid                                                                                                     
   (line 201), Tag nav invalid                                                                                                     
   (line 218), Tag nav invalid                                                                                                     
   (line 276), Tag nav invalid                                                                                                     
   (line 293), Tag nav invalid                                                                                                     
   (line 309), Tag nav invalid                                                                                                     
   (line 325), Tag footer invalid                                                                                                  
   (line 345)                                                                                                                      
                                                                                                                                   

sites:add [-c|--config [CONFIG]] [--url URL]

Regards, Antoine

@samwilson
Copy link
Owner

mwcli should definitely handle this more gracefully, but it looks like there's an error in that website. There's an equals sign being output before the page content:

=<!DOCTYPE html>
<html class="client-nojs" lang="fr" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>Wiki des ADN</title>

It might be a typo in LocalSettings.php?

I'll look at improving the error handling.

@antoine2711
Copy link
Author

@samwilson : I've check my LocalSettings.php, couldn't find a problem. Maybe it comes from an outdated extension. I'll try to update the extensions and I'll keep you posted.

Regards, Antoine

@samwilson
Copy link
Owner

I've added slightly nicer error reporting in this situation (although actually it's just the same error, because that's sort of useful to have all the info, but it doesn't include the "In ReallySimpleDiscovery.php" bit).

Good luck finding your wayward equals sign! It does look a bit odd:

image

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

No branches or pull requests

2 participants