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

PHP Notice for alias #9

Open
krabina opened this issue Sep 10, 2019 · 6 comments
Open

PHP Notice for alias #9

krabina opened this issue Sep 10, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@krabina
Copy link
Contributor

krabina commented Sep 10, 2019

The following PHP notice is dispayed when the extension is activated:

Notice: Did not find alias for special page 'SparqlResultFormat'. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in ../includes/specialpage/SpecialPageFactory.php at line 683] in .../includes/debug/MWDebug.php on line 309

I am using MW 1.31 on PHP 7

@gcornacchia
Copy link
Collaborator

Hi @krabina, the notice is displayed when you try to see the special page? or in every page?
can you attach a screenshot?

@krabina
Copy link
Contributor Author

krabina commented Sep 12, 2019

Only on the page where I use {{#sparql2table:

Notice: Undefined index: prefixes in ...i/extensions/SparqlResultFormat/SparqlResultFormat_body.php on line 21

Warning: Invalid argument supplied for foreach() in ...extensions/SparqlResultFormat/SparqlResultFormat_body.php on line 163

@gcornacchia
Copy link
Collaborator

can you try the newly released 1.0.13 https://github.com/imolainformatica/SparqlResultFormat/releases/tag/v1.0.13.
?

@krabina
Copy link
Contributor Author

krabina commented Sep 12, 2019

This works fine now, thank you!

@krabina krabina closed this as completed Sep 12, 2019
@krabina
Copy link
Contributor Author

krabina commented Sep 12, 2019

no, sorry, the notice and warning are gone in the test page, but these ones are still present at the Special page:

Notice: Did not find alias for special page 'SparqlResultFormat'. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in /home/kdz/testwiki/includes/specialpage/SpecialPageFactory.php at line 683] in ../includes/debug/MWDebug.php on line 309

Notice: Did not find alias for special page 'SparqlResultFormat'. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in /home/kdz/testwiki/includes/specialpage/SpecialPageFactory.php at line 683] in ../testwiki/includes/debug/MWDebug.php on line 309

Thoug these are only notices I am seeing because it is a test wiki. Might want to look here:
https://www.mediawiki.org/wiki/Manual:Special_pages#The_aliases_file

@krabina krabina reopened this Sep 12, 2019
@gcornacchia
Copy link
Collaborator

I think is an i18n issue. I will investigate further

@gcornacchia gcornacchia added the bug Something isn't working label Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants